ElonMuskTeslaMarketingDepartment commited on
Commit
6539c85
·
verified ·
1 Parent(s): 0e82382

Rename style.css to styles.css

Browse files
Files changed (2) hide show
  1. style.css +0 -28
  2. styles.css +180 -0
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
styles.css ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ font-family: Arial, sans-serif;
6
+ }
7
+
8
+ body {
9
+ overflow-x: hidden;
10
+ }
11
+
12
+ .logo-link {
13
+ position: absolute;
14
+ top: 20px;
15
+ left: 20px;
16
+ z-index: 1;
17
+ }
18
+
19
+ .logo {
20
+ width: 50px;
21
+ height: auto;
22
+ }
23
+
24
+ .hero-section {
25
+ height: 100vh;
26
+ position: relative;
27
+ }
28
+
29
+ .hero-carousel .hero-slide {
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ width: 100%;
34
+ height: 100%;
35
+ opacity: 0;
36
+ transition: opacity 0.5s ease;
37
+ }
38
+
39
+ .hero-carousel .hero-slide.active {
40
+ opacity: 1;
41
+ }
42
+
43
+ .hero-carousel img {
44
+ width: 100%;
45
+ height: 100%;
46
+ object-fit: cover;
47
+ }
48
+
49
+ .hero-content {
50
+ position: absolute;
51
+ top: 50%;
52
+ left: 50%;
53
+ transform: translate(-50%, -50%);
54
+ text-align: center;
55
+ color: white;
56
+ }
57
+
58
+ .hero-content h1 {
59
+ font-size: 32px;
60
+ }
61
+
62
+ .hero-content p {
63
+ font-size: 16px;
64
+ }
65
+
66
+ .buttons {
67
+ display: flex;
68
+ gap: 8px;
69
+ flex-direction: column;
70
+ }
71
+
72
+ button {
73
+ padding: 10px;
74
+ background-color: #007bff;
75
+ color: white;
76
+ border: none;
77
+ cursor: pointer;
78
+ border-radius: 4px;
79
+ }
80
+
81
+ .carousel {
82
+ position: relative;
83
+ height: 250px;
84
+ }
85
+
86
+ .slide {
87
+ position: absolute;
88
+ top: 0;
89
+ left: 0;
90
+ width: 100%;
91
+ height: 100%;
92
+ opacity: 0;
93
+ transition: opacity 0.5s ease;
94
+ }
95
+
96
+ .slide.active {
97
+ opacity: 1;
98
+ }
99
+
100
+ .slide img {
101
+ width: 100%;
102
+ height: 100%;
103
+ object-fit: cover;
104
+ }
105
+
106
+ .caption {
107
+ position: absolute;
108
+ bottom: 10px;
109
+ left: 10px;
110
+ color: white;
111
+ }
112
+
113
+ .caption h2 {
114
+ font-size: 24px;
115
+ }
116
+
117
+ .offers {
118
+ padding: 20px;
119
+ display: flex;
120
+ gap: 10px;
121
+ flex-direction: column;
122
+ }
123
+
124
+ .offer-card {
125
+ background: #f4f4f4;
126
+ padding: 10px;
127
+ border-radius: 4px;
128
+ }
129
+
130
+ .offer-images {
131
+ display: flex;
132
+ gap: 5px;
133
+ }
134
+
135
+ .offer-images img {
136
+ width: 33%;
137
+ height: auto;
138
+ }
139
+
140
+ .fsd-carousel, .solar-carousel {
141
+ padding: 20px;
142
+ }
143
+
144
+ .charging iframe {
145
+ width: 100%;
146
+ height: 200px;
147
+ }
148
+
149
+ footer {
150
+ padding: 20px;
151
+ text-align: center;
152
+ font-size: 12px;
153
+ color: gray;
154
+ }
155
+
156
+ @media (min-width: 768px) and (max-width: 1024px) {
157
+ .buttons {
158
+ flex-direction: row;
159
+ }
160
+
161
+ .offers {
162
+ flex-direction: row;
163
+ }
164
+
165
+ .carousel {
166
+ height: 400px;
167
+ }
168
+
169
+ .caption h2 {
170
+ font-size: 32px;
171
+ }
172
+
173
+ .hero-content h1 {
174
+ font-size: 48px;
175
+ }
176
+
177
+ .charging iframe {
178
+ height: 300px;
179
+ }
180
+ }