Skip to content

Commit 8edf974

Browse files
committed
Better Scaling and responsiveness
1 parent a93beaf commit 8edf974

File tree

4 files changed

+40
-14
lines changed

4 files changed

+40
-14
lines changed

src/components/Future/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export function Future() {
1414
].join(" "),
1515
[
1616
"It will be very easy to use, in desktops, web and most importantly,",
17-
"in virtual and augmented reality(in the future).",
17+
"in virtual and augmented reality (in the future).",
1818
].join(" "),
1919
];
2020

2121
return (<>
2222
<Section
2323
icon={<RectangleGoggles />}
24-
name="The Future of Programming is Coming!"
24+
name="Programming Like The Future"
2525
>
2626
{contents.map(text => <p key={text}>{text}</p>)}
2727
</Section>

src/components/Hero/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
.brand-logo {
26-
width: min(50vw, 20rem);
26+
width: min(50vw, 15rem);
2727
aspect-ratio: 1;
2828
}
2929

src/components/Navbar/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
align-items: center;
2424
height: 100%;
2525
gap: 0.5rem;
26-
padding: 1rem;
26+
padding: 0.5rem;
2727
border-radius: 0.5rem;
28-
font-size: 1.2rem;
28+
font-size: 1rem;
2929
position: relative;
3030
background: var(--gradient);
31-
opacity: 0.5;
31+
opacity: 0.3;
3232
}
3333

3434
.nav-links:hover {
@@ -40,7 +40,7 @@
4040
text-decoration: none;
4141
cursor: pointer;
4242
position: relative;
43-
padding: 0.5rem 1rem;
43+
padding: 0.5rem 0.75rem;
4444
border-radius: 0.5rem;
4545
}
4646

@@ -51,7 +51,7 @@
5151
.nav-link-sep {
5252
display: block;
5353
width: 0.125rem;
54-
height: 2rem;
54+
height: 1rem;
5555
background: white;
5656
transition: width 0.3s ease-in-out;
5757
}

src/components/Section/style.css

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
.section {
22
display: flex;
3-
padding: 4rem;
4-
gap: 4rem;
3+
padding: 2rem;
54
align-items: start;
65
}
76

87
.section-icon {
98
flex: 1;
10-
padding: 0rem 5rem;
9+
padding: 0rem 2rem;
1110
position: sticky;
1211
top: 0;
1312
display: flex;
@@ -27,20 +26,22 @@
2726
flex-direction: column;
2827
justify-content: center;
2928
align-items: center;
30-
gap: 4rem;
29+
gap: 2rem;
3130
}
3231

3332
.section-name {
3433
background: var(--gradient);
3534
display: flex;
3635
padding: 1rem 2rem;
3736
border-radius: 1rem;
38-
font-size: 2.5rem;
37+
font-size: 2rem;
3938
font-weight: 600;
39+
text-wrap-style: balance;
40+
text-align: center;
4041
}
4142

4243
.section-description {
43-
font-size: 2rem;
44+
font-size: 1.5rem;
4445
text-align: left;
4546
color: var(--text-secondary);
4647
line-height: 1.5;
@@ -50,3 +51,28 @@
5051
gap: 1rem;
5152
}
5253

54+
.section-description p {
55+
text-align: left;
56+
}
57+
58+
@media (max-width: 1000px) {
59+
.section {
60+
flex-direction: column;
61+
align-items: center;
62+
}
63+
64+
.section-icon {
65+
width: min(50vw, 20rem);
66+
position: relative;
67+
}
68+
69+
.section-content {
70+
padding: 2rem;
71+
width: 100%;
72+
}
73+
74+
.section-description {
75+
text-wrap-style: balance;
76+
}
77+
}
78+

0 commit comments

Comments
 (0)