1
+ html , body {
2
+ overflow : hidden;
3
+ width : 100% ;
4
+ height : 100% ;
5
+ margin : 0 ;
6
+ padding : 0 ;
7
+ }
8
+
1
9
body {
2
10
color : rgb (30 , 30 , 30 );
3
11
background : rgb (250 , 247 , 204 );
12
+ font-family : Arial, Helvetica, sans-serif;
4
13
}
5
14
6
- .cityTriangle {
7
- width : 0 ;
8
- height : 0 ;
9
- border-left : 250px solid transparent;
10
- border-right : 1050px solid transparent;
11
- border-bottom : 500px solid rgb (255 , 165 , 30 );
12
- margin : 350px -600px ;
13
- }
14
15
16
+
17
+ /* city name object */
15
18
.cityRectWide {
16
- background : rgb (255 , 82 , 0 );
17
- width : 800 px ;
19
+ background : rgb (255 , 82 , 0 );
20
+ width : 600 px ;
18
21
height : 120px ;
19
22
border-radius : 20px ;
20
- margin : -80% 70% ;
23
+ margin : -1150px 70% ;
24
+ position : relative;
25
+ box-shadow : 0px 4px 80px rgba (0 , 0 , 0 , 0.4 );
21
26
}
22
-
23
27
h1 {
24
- position : fixed;
25
- font-family : Arial, Helvetica, sans-serif;
26
-
28
+ width : 450px ;
29
+ height : 75px ;
30
+ border-radius : 20px ;
31
+ background : transparent;
32
+ position : absolute;
33
+ top : 0 ;
34
+ left : 0 ;
35
+ font-size : 40px ;
36
+ color : rgb (30 , 30 , 30 );
37
+ outline : none;
38
+ border : 0px ;
39
+ left : 20px ;
40
+ top : 5px ;
27
41
}
28
42
43
+
44
+
45
+ /* Return object */
29
46
.cityCircleReturn {
30
47
background : rgb (255 , 82 , 0 );
31
48
width : 80px ;
32
49
height : 80px ;
33
50
border-radius : 50% ;
34
51
display : grid;
35
- margin : 0 auto;
52
+ margin : -79% 8% ;
53
+ position : relative;
54
+ box-shadow : 0px 4px 100px rgba (0 , 0 , 0 , 0.80 );
55
+ }
56
+ .cityReturn {
57
+ width : 80px ;
58
+ height : 80px ;
59
+ border-radius : 50% ;
60
+ background : transparent;
61
+ font-size : 60px ;
62
+ position : absolute;
63
+ left : 0 ;
64
+ top : -4px ;
65
+ outline : none;
66
+ border : 0px ;
36
67
}
68
+ .return {
69
+ border : solid black;
70
+ border-width : 0 3px 3px 0 ;
71
+ display : inline-block;
72
+ padding : 3px ;
73
+ transform : rotate (135deg );
74
+ -webkit-transform : rotate (135deg );
75
+ position : absolute;
76
+ left : 35px ;
77
+ }
78
+
37
79
80
+
81
+ /* Weather object */
38
82
.cityCircle {
39
- background : rgb (0 , 173 , 56 );
83
+ background : rgb (0 , 173 , 56 );
40
84
width : 700px ;
41
85
height : 700px ;
42
86
border-radius : 50% ;
43
- display : grid;
44
- margin : 0px ;
87
+ display : flex;
88
+ justify-content : center;
89
+ align-items : center;
90
+ position : relative;
91
+ overflow : hidden;
92
+ margin : 990px 30% ;
93
+ box-shadow : 0px 6px 40px rgba (0 , 0 , 0 , 0.5 );
45
94
}
46
-
47
95
p {
48
- height : 300 px ;
49
- width : 300 px ;
96
+ height : 650 px ;
97
+ width : 650 px ;
50
98
position : relative;
51
- animation : effect 8 s linear infinite;
99
+ animation : effect 15 s linear infinite;
52
100
}
53
-
54
101
@keyframes effect {
55
102
0% {
56
- transform : rotate (0deg );
103
+ transform : rotate (0deg );
57
104
}
58
105
100% {
59
- transform : rotate (360deg );
106
+ transform : rotate (360deg );
60
107
}
61
108
}
62
-
63
109
span {
64
110
position : absolute;
65
111
left : 50% ;
66
- transform-origin : 0px 150 px ;
112
+ transform-origin : 0px 325 px ;
67
113
transform-style : flat;
68
- font-family : "Gill Sans" , "Gill Sans MT" , Calibri, "Trebuchet MS" , sans-serif;
69
114
text-transform : uppercase;
70
115
font-weight : 900 ;
71
- color : # fff ;
72
- }/*# sourceMappingURL=index.css.map */
116
+ color : rgb (30 , 30 , 30 );
117
+ font-size : 1rem ;
118
+ }
119
+
120
+
73
121
122
+ /* Image carousel container */
74
123
.cityRectCarousel {
75
124
background : rgb (35 , 58 , 108 );
76
- width : 650 px ;
77
- height : 450 px ;
125
+ width : 530 px ;
126
+ height : 370 px ;
78
127
border-radius : 20px ;
79
- margin : 0 ;
128
+ margin : 1300px 8% ; /* Centering the carousel */
129
+ box-shadow : 0px 4px 30px rgba (0 , 0 , 0 , 0.5 );
130
+ position : relative;
131
+ overflow : hidden;
132
+ }
133
+ /* Carousel container */
134
+ .carousel {
135
+ display : flex;
136
+ align-items : center;
137
+ overflow : hidden;
138
+ position : relative;
139
+ height : 100% ;
140
+ }
141
+ /* Slides container */
142
+ .slides {
143
+ display : flex;
144
+ transition : transform 0.5s ease-in-out;
145
+ scroll-behavior : smooth;
146
+ width : 100% ;
147
+ }
148
+ /* Individual slides (images) */
149
+ .slides img {
150
+ flex : 0 0 90% ;
151
+ width : 90% ;
152
+ height : auto;
153
+ margin : 0 auto;
154
+ display : block;
155
+ }
156
+ .prev , .next {
157
+ position : absolute;
158
+ top : 50% ;
159
+ transform : translateY (-50% );
160
+ padding : 10px 20px ;
161
+ background-color : rgb (255 , 82 , 0 );
162
+ color : # ededed ;
163
+ border : none;
164
+ cursor : pointer;
165
+ border-radius : 5px ;
166
+ z-index : 1 ;
167
+ }
168
+ .next {
169
+ right : 20px ;
170
+ }
171
+ .prev {
172
+ left : 20px ;
173
+ }
174
+ .back {
175
+ border : solid black;
176
+ border-width : 0 3px 3px 0 ;
177
+ display : inline-block;
178
+ padding : 2px ;
179
+ transform : rotate (135deg );
180
+ -webkit-transform : rotate (135deg );
181
+ position : absolute;
182
+ left : 15px ;
183
+ top : 7px
80
184
}
185
+ .forward {
186
+ border : solid black;
187
+ border-width : 0 3px 3px 0 ;
188
+ display : inline-block;
189
+ padding : 2px ;
190
+ transform : rotate (315deg );
191
+ -webkit-transform : rotate (315deg );
192
+ position : absolute;
193
+ left : 15px ;
194
+ top : 7px
195
+ }
196
+
81
197
198
+
199
+ /* Currency and About object */
82
200
.cityRectTall {
83
- background : rgb (255 , 165 , 30 );
84
- width : 400px ;
85
- height : 750px ;
201
+ background : rgb (255 , 165 , 30 );
202
+ width : 350px ;
203
+ height : 500px ;
204
+ border-radius : 20px ;
205
+ margin : 500px 1050px ;
206
+ position : relative;
207
+ box-shadow : 0px 3px 30px rgba (0 , 0 , 0 , 0.7 );
208
+ }
209
+ h3 {
210
+ width : 450px ;
211
+ height : 75px ;
212
+ border-radius : 20px ;
213
+ background : transparent;
214
+ position : absolute;
215
+ margin : 0 auto;
216
+ font-size : 30px ;
217
+ color : rgb (30 , 30 , 30 );
218
+ outline : none;
219
+ border : 0px ;
220
+ left : 20px ;
221
+ top : 20px ;
222
+ }
223
+ h4 {
224
+ width : 450px ;
225
+ height : 75px ;
86
226
border-radius : 20px ;
87
- margin : -80% 1100px ;
88
- }
89
-
90
- .cityHexagon {
91
- height : 200px ;
92
- width : 120px ;
93
- background : rgb (0 , 173 , 56 );
94
- position : relative;
95
- left : 50px ;
96
- box-sizing : border-box;
97
- }
98
- .cityHexagon ::before , .cityHexagon ::after {
99
- content : "" ;
100
- position : absolute;
101
- height : 0 ;
102
- width : 0 ;
103
- top : 0 ;
104
- /* half height */
105
- border-top : 100px solid transparent;
106
- border-bottom : 100px solid transparent;
107
- }
108
- .cityHexagon ::before {
109
- left : -50px ;
110
- border-right : 50px solid rgb (0 , 173 , 56 );
111
- }
112
- .cityHexagon ::after {
113
- right : -50px ;
114
- border-left : 50px solid rgb (0 , 173 , 56 );
227
+ background : transparent;
228
+ position : absolute;
229
+ margin : 0 auto;
230
+ font-size : 30px ;
231
+ color : rgb (30 , 30 , 30 );
232
+ outline : none;
233
+ border : 0px ;
234
+ left : 20px ;
235
+ top : 100px ;
236
+ }
237
+
238
+
239
+
240
+ /* Time object */
241
+ .cityTimeCircle {
242
+ background : rgb (35 , 58 , 108 );
243
+ width : 290px ;
244
+ height : 290px ;
245
+ border-radius : 50% ;
246
+ margin : -1130px 53% ;
247
+ position : relative;
248
+ box-shadow : 0px 4px 60px rgba (0 , 0 , 0 , 0.8 );
249
+ }
250
+ h2 {
251
+ width : 450px ;
252
+ height : 75px ;
253
+ border-radius : 20px ;
254
+ background : transparent;
255
+ position : absolute;
256
+ margin : 100px auto;
257
+ font-size : 40px ;
258
+ color : rgb (30 , 30 , 30 );
259
+ outline : none;
260
+ border : 0px ;
261
+ left : 90px ;
262
+ top : 10px ;
263
+ align-items : center;
264
+ }
265
+
266
+
267
+
268
+ /* Background image */
269
+ .cityTriangle {
270
+ width : 0 ;
271
+ height : 0 ;
272
+ border-left : 250px solid transparent;
273
+ border-right : 1050px solid transparent;
274
+ border-bottom : 500px solid rgb (255 , 165 , 30 );
275
+ margin : 350px -600px ;
115
276
}
0 commit comments