Skip to content

Commit 575e5df

Browse files
authored
Merge pull request #245 from kossiitkgp/responsive24
Fixed styling for KWoC'24 website
2 parents a8b0914 + 5bdf67e commit 575e5df

File tree

9 files changed

+204
-112
lines changed

9 files changed

+204
-112
lines changed

src/components/Testimonials.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Testimonials() {
2020
return (
2121
<div className="testimonials-container">
2222
<section className="testimonials-header">
23-
<h1 className="testimonials-title center mb-12 text-4xl font-extrabold leading-none tracking-tight md:text-5xl mt-12 lg:text-8xl lg:mb-36" style={{color:"#ffe336",fontSize:"4rem", fontWeight:"900", fontStyle:"italic"}}>
23+
<h1 className="testimonials-title">
2424
<em >What Past Participants Say</em>
2525
</h1>
2626
<p className="testimonials-subtitle" style={{color:"white", fontSize: "2rem", fontWeight: "600" }}>

src/styles/About.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,31 @@
88
}
99

1010
.about-text {
11-
padding: 8rem;
11+
padding: 1rem;
1212
background-color: #fff;
1313
}
1414

1515
.about-container h1 {
1616
margin: 0;
17-
font-size: 6rem;
17+
font-size: 4rem;
1818
}
1919

2020
.about-container p {
2121
text-align: left;
22-
font-size: 2rem;
22+
font-size: 1.2rem;
23+
}
24+
25+
@media (min-width: 768px) {
26+
.about-text {
27+
padding: 8rem;
28+
}
29+
.about-container h1 {
30+
font-size: 6rem;
31+
}
32+
33+
.about-container p {
34+
font-size: 2rem;
35+
}
2336
}
2437

2538
.about-container img {

src/styles/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ body {
66
justify-content: center;
77
height: 100%;
88
width: 100%;
9+
overflow-x: hidden;
910
}
1011

1112
#root {

src/styles/Footer.css

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.footer {
22
text-align: center;
33
color: #1a1a1a;
4+
margin-top: -400px;
45
font-family: Arial, sans-serif;
56
}
67

@@ -14,9 +15,10 @@
1415

1516
.footer-columns {
1617
display: flex;
18+
flex-direction: column;
1719
justify-content: space-around;
18-
align-items: flex-start;
19-
padding: 250px 0 100px;
20+
align-items: center;
21+
padding: 500px 0 100px;
2022
background-image: url('../assets/Group-16.png');
2123
background-size: cover;
2224
background-repeat: no-repeat;
@@ -27,17 +29,46 @@
2729
}
2830

2931
.footer-column {
30-
background-color: #ffffff;
3132
padding: 40px 0;
32-
margin-top: 180px;
33+
margin-top: 10px;
3334
margin-bottom: -100px;
3435
text-align: center;
35-
font-size: large;
36+
font-size: medium;
3637
color: #000000;
3738
max-width: 200px;
3839
height: 10%;
3940
}
4041

42+
@media (min-width: 768px) {
43+
.footer {
44+
margin-top: 0px;
45+
}
46+
.footer-columns {
47+
display: flex;
48+
flex-direction: row;
49+
justify-content: space-around;
50+
align-items: flex-start;
51+
padding: 250px 0 100px;
52+
background-image: url('../assets/Group-16.png');
53+
background-size: cover;
54+
background-repeat: no-repeat;
55+
margin-bottom: -40px;
56+
background-position: center 135px;
57+
position: relative;
58+
color: #fff;
59+
}
60+
61+
.footer-column {
62+
padding: 40px 0;
63+
margin-top: 180px;
64+
margin-bottom: -100px;
65+
text-align: center;
66+
font-size: large;
67+
color: #000000;
68+
max-width: 200px;
69+
height: 10%;
70+
}
71+
}
4172
.footer-column h2 {
4273
font-weight: bold;
4374
margin-bottom: 10px;

src/styles/Header.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
11
.header-container {
2+
width: 100vw;
23
display: flex;
34
flex-direction: row;
45
align-items: center;
56
justify-content: space-between;
67
margin-top: 0;
7-
padding: 2rem;
8+
padding: 2rem 0 1rem 0;
9+
}
10+
11+
.nav-bar {
12+
float: right;
13+
display: flex;
14+
align-content: baseline;
15+
padding: 0.5rem;
16+
}
17+
18+
.nav-element {
19+
padding: 0.5rem 3rem;
20+
color: #fff;
21+
text-decoration: none;
22+
transition: scale 300ms, text-decoration 300ms;
23+
white-space: nowrap;
24+
overflow: hidden;
25+
}
26+
27+
.nav-element:hover {
28+
scale: 1.25;
29+
color: #ffe336;
30+
text-decoration: underline;
831
}

src/styles/Hero.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@
2424
}
2525

2626
.hero-title h1 {
27-
font-size: 5rem;
27+
font-size: 3rem;
2828
color: #d9d9d9;
2929
padding: 0;
3030
margin-top: 1rem;
3131
margin-bottom: 4rem;
3232
}
3333

34+
@media (min-width: 768px) {
35+
.hero-title h1 {
36+
font-size: 5rem;
37+
}
38+
}
39+
3440
.yellow-text {
3541
color: #ffe336;
3642
}

src/styles/Navbar.css

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.navbar {
22
display: flex;
3-
width: 90vw;
3+
width: 100vw;
4+
padding: 0 1rem;
45
margin: auto;
56
justify-content: space-between;
7+
position: relative;
68
}
79

810
.logo {
@@ -17,17 +19,17 @@
1719
font-size: 1.3rem;
1820
flex-direction: column;
1921
justify-content: start;
20-
padding: 50px;
22+
padding: 6vw;
2123
padding-top: 100px;
2224
align-items: center;
23-
gap: 30px;
25+
gap: 0.7rem;
2426
position: absolute;
25-
width: 450px;
27+
width: 70vw;
2628
max-width: 80vw;
2729
border-radius: 10px;
2830
top: 1vh;
29-
right: -110%;
30-
bottom: 1vh;
31+
right: -150vw;
32+
height: 50vh;
3133
background-color: aquamarine;
3234
list-style: none;
3335
background: rgba(255, 255, 255, 0.1);
@@ -47,12 +49,13 @@
4749

4850
.burger {
4951
position: absolute;
50-
right: 40px;
51-
font-size: 1.6rem;
52+
right: 1rem;
53+
font-size: 1.3rem;
5254
cursor: pointer;
53-
top: 60px;
54-
height: 70px;
55-
width: 70px;
55+
top: 50%;
56+
transform: translateY(-50%);
57+
height: 40px;
58+
width: 40px;
5659
background-color: #242424;
5760
color: #393939;
5861
display: flex;
@@ -83,6 +86,8 @@
8386
box-shadow: none;
8487
border: none;
8588
right: 0;
89+
height: auto;
90+
margin-right: 3rem;
8691
}
8792

8893
.burger {
@@ -91,7 +96,7 @@
9196
}
9297

9398
.link-container.open {
94-
right: 30px;
99+
right: 9vw;
95100
}
96101

97102
.link {

0 commit comments

Comments
 (0)