Skip to content

Commit 2de5713

Browse files
authored
Merge pull request #165 from Utsavladia/fix-issue-160
Fixed the types of dark page content going out of screen
2 parents 1e53926 + 45d57fb commit 2de5713

File tree

1 file changed

+109
-113
lines changed

1 file changed

+109
-113
lines changed
+109-113
Original file line numberDiff line numberDiff line change
@@ -1,154 +1,150 @@
1-
2-
31
#hero {
4-
background: url('/static/img/know-about-hero-img.jpg') no-repeat center center/cover;
5-
height: 60vh;
6-
display: flex;
7-
justify-content: center;
8-
align-items: center;
9-
text-align: center;
10-
color: #fff;
11-
margin-top: 6rem;
2+
background: url("/static/img/know-about-hero-img.jpg") no-repeat center
3+
center/cover;
4+
height: 60vh;
5+
display: flex;
6+
justify-content: center;
7+
align-items: center;
8+
text-align: center;
9+
color: #fff;
10+
margin-top: 6rem;
1211
}
1312

1413
.hero-text h1 {
15-
font-size: 3.5rem;
16-
margin-bottom: 1rem;
17-
animation: fadeInDown 1s;
18-
font-family: var(--font-primary);
19-
14+
font-size: 3.5rem;
15+
margin-bottom: 1rem;
16+
animation: fadeInDown 1s;
17+
font-family: var(--font-primary);
2018
}
2119

2220
.hero-text p {
23-
font-size: 1.2rem;
24-
margin-bottom: 2rem;
25-
animation: fadeInUp 1s;
26-
font-family: var(--font-secondary);
21+
font-size: 1.2rem;
22+
margin-bottom: 2rem;
23+
animation: fadeInUp 1s;
24+
font-family: var(--font-secondary);
2725
}
2826

2927
.section-cls {
30-
padding: 5rem 0;
31-
text-align: center;
28+
padding: 5rem 0;
29+
text-align: center;
3230
}
3331

3432
.container {
35-
width: 80%;
36-
margin: 0 auto;
33+
width: 80%;
34+
margin: 0 auto;
3735
}
38-
.container h2{
39-
font-size: 2rem;
36+
.container h2 {
37+
font-size: 2rem;
4038
font-family: var(--font-secondary);
4139
}
4240
.patterns-grid {
43-
display: flex;
44-
flex-direction: column;
45-
justify-content: space-around;
46-
align-items: center;
47-
height: 1000px;
48-
flex-wrap: wrap;
49-
margin-top: 2rem;
41+
width: 100%;
42+
display: flex;
43+
flex-direction: row;
44+
justify-content: space-evenly;
45+
align-items: center;
46+
height: auto;
47+
flex-wrap: wrap;
48+
margin-top: 2rem;
5049
}
5150

5251
.pattern {
53-
flex: 1;
54-
max-width: 40%;
55-
margin: 1rem;
56-
padding: 2rem;
57-
background: #f4f4f4;
58-
border-radius: 10px;
59-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
60-
transition: transform 0.3s;
61-
}
62-
.pattern h3{
63-
font-size: 1.5rem;
64-
margin-bottom: 1rem;
65-
font-family: var(--font-primary);
66-
color: #333;
67-
52+
width: 30%;
53+
margin: 1rem;
54+
padding: 2rem;
55+
background: #f4f4f4;
56+
border-radius: 10px;
57+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
58+
transition: transform 0.3s;
59+
}
60+
.pattern h3 {
61+
font-size: 1.5rem;
62+
margin-bottom: 1rem;
63+
font-family: var(--font-primary);
64+
color: #333;
6865
}
6966
.pattern p {
70-
font-size: 1.2rem;
71-
font-family: var(--font-secondary);
72-
padding: 12px 0 ;
73-
67+
font-size: 1.2rem;
68+
font-family: var(--font-secondary);
69+
padding: 12px 0;
7470
}
7571
.pattern:hover {
76-
transform: scale(1.05);
72+
transform: scale(1.05);
7773
}
7874

7975
.pattern i {
80-
font-size: 2rem;
81-
margin-bottom: 1rem;
82-
color: var(--color-primary);
76+
font-size: 2rem;
77+
margin-bottom: 1rem;
78+
color: var(--color-primary);
8379
}
8480

85-
8681
@keyframes fadeInDown {
87-
from {
88-
opacity: 0;
89-
transform: translateY(-50px);
90-
}
91-
to {
92-
opacity: 1;
93-
transform: translateY(0);
94-
}
82+
from {
83+
opacity: 0;
84+
transform: translateY(-50px);
85+
}
86+
to {
87+
opacity: 1;
88+
transform: translateY(0);
89+
}
9590
}
9691

9792
@keyframes fadeInUp {
98-
from {
99-
opacity: 0;
100-
transform: translateY(50px);
101-
}
102-
to {
103-
opacity: 1;
104-
transform: translateY(0);
105-
}
93+
from {
94+
opacity: 0;
95+
transform: translateY(50px);
96+
}
97+
to {
98+
opacity: 1;
99+
transform: translateY(0);
100+
}
106101
}
107102

108-
109103
/* responsive props */
110104

111105
@media (max-width: 768px) {
112-
.nav-links {
113-
display: none;
114-
flex-direction: column;
115-
width: 100%;
116-
position: absolute;
117-
top: 60px;
118-
left: 0;
119-
background: #333;
120-
}
121-
122-
.nav-links li {
123-
margin: 1.5rem 0;
124-
}
125-
126-
.menu-icon {
127-
display: block;
128-
}
129-
130-
.patterns-grid {
131-
flex-direction: column;
132-
}
106+
.nav-links {
107+
display: none;
108+
flex-direction: column;
109+
width: 100%;
110+
position: absolute;
111+
top: 60px;
112+
left: 0;
113+
background: #333;
114+
}
115+
.container {
116+
width: 100%;
117+
}
118+
119+
.nav-links li {
120+
margin: 1.5rem 0;
121+
}
122+
123+
.menu-icon {
124+
display: block;
125+
}
126+
127+
.patterns-grid {
128+
flex-direction: column;
129+
}
133130

134-
.pattern {
135-
max-width: 100%;
136-
}
137-
#top-div{
138-
margin-top: 4rem;
139-
140-
}
141-
.hero-text h1 {
142-
font-size: 2.5rem;
143-
}
144-
131+
.pattern {
132+
max-width: 80%;
133+
width: 80%;
134+
}
135+
#top-div {
136+
margin-top: 4rem;
137+
}
138+
.hero-text h1 {
139+
font-size: 2.5rem;
140+
}
145141
}
146142

147-
@media only screen and (max-width:1250px){
148-
.patterns-grid{
149-
height: auto;
150-
}
151-
.pattern {
152-
max-width: 80%;
153-
}
154-
}
143+
@media only screen and (max-width: 1250px) {
144+
.patterns-grid {
145+
height: auto;
146+
}
147+
.pattern {
148+
max-width: 80%;
149+
}
150+
}

0 commit comments

Comments
 (0)