1
-
2
-
3
1
# 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 ;
12
11
}
13
12
14
13
.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 );
20
18
}
21
19
22
20
.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 );
27
25
}
28
26
29
27
.section-cls {
30
- padding : 5rem 0 ;
31
- text-align : center;
28
+ padding : 5rem 0 ;
29
+ text-align : center;
32
30
}
33
31
34
32
.container {
35
- width : 80% ;
36
- margin : 0 auto;
33
+ width : 80% ;
34
+ margin : 0 auto;
37
35
}
38
- .container h2 {
39
- font-size : 2rem ;
36
+ .container h2 {
37
+ font-size : 2rem ;
40
38
font-family : var (--font-secondary );
41
39
}
42
40
.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 ;
50
49
}
51
50
52
51
.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 ;
68
65
}
69
66
.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 ;
74
70
}
75
71
.pattern : hover {
76
- transform : scale (1.05 );
72
+ transform : scale (1.05 );
77
73
}
78
74
79
75
.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 );
83
79
}
84
80
85
-
86
81
@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
+ }
95
90
}
96
91
97
92
@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
+ }
106
101
}
107
102
108
-
109
103
/* responsive props */
110
104
111
105
@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
+ }
133
130
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
+ }
145
141
}
146
142
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