Skip to content

Commit 5de4d6e

Browse files
feat: new layout
1 parent 50310f8 commit 5de4d6e

3 files changed

Lines changed: 74 additions & 92 deletions

File tree

src/components/old/AppNavbar.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ const isLink = (state: CollectionEntry<"state">) =>
6666
</div>
6767
</div>
6868

69-
<div class="compact-section" style="font-family: 'Inter', sans-serif; font-size: 1.5rem; text-align: center; margin-top: 2em;">
69+
<div class="compact-section email-section">
7070
<div class="email-line">
71-
Cartazes de shows, só mandar por email:
72-
<a href="mailto:undershowsbr@gmail.com">undershowsbr@gmail.com</a><br>
71+
Cartazes de shows, só mandar por email: undershowsbr@gmail.com<br>
7372
</div>
7473
</div>
7574

src/components/old/GigList.astro

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -129,52 +129,4 @@ const gigsByMonth = R.pipe(
129129
</>
130130
))}
131131
</>
132-
))}
133-
134-
<style>
135-
.gig-container {
136-
width: 100%;
137-
max-width: 100%;
138-
padding: 0 12px;
139-
box-sizing: border-box;
140-
}
141-
142-
.gig-poster {
143-
max-width: 100%;
144-
height: auto;
145-
display: block;
146-
margin: 0 auto;
147-
}
148-
149-
.tickets-btn {
150-
display: block;
151-
width: 100%;
152-
max-width: 600px;
153-
margin: 0 auto;
154-
padding: 0.5rem;
155-
box-sizing: border-box;
156-
border-radius: 0 0 10px 10px;
157-
text-decoration: none;
158-
background-color: #66223d;
159-
color: #fff;
160-
}
161-
162-
.tickets-btn:hover .tickets-btn__text {
163-
text-decoration: underline;
164-
}
165-
166-
.tickets-btn__icon {
167-
display: inline-block;
168-
width: 30px;
169-
height: 30px;
170-
margin-right: 0.5rem;
171-
}
172-
173-
.tickets-btn__text {
174-
display: inline-block;
175-
padding-top: 0.2rem;
176-
vertical-align: top;
177-
font-family: Arial, Helvetica, sans-serif;
178-
font-size: 1.3rem;
179-
}
180-
</style>
132+
))}

src/styles/old.css

Lines changed: 71 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* Estilos globais */
12
img {
23
display: block;
34
margin: 0 auto;
@@ -7,46 +8,46 @@ img {
78

89
.logo {
910
display: block;
10-
margin-top: 2rem !important;
11+
margin-top: 0;
1112
margin-left: auto;
1213
margin-right: auto;
1314
height: auto;
14-
max-width: 200px;
15+
max-width: 120px;
1516
}
1617

18+
/* Layout principal */
1719
html, body {
1820
width: 100%;
1921
max-width: 100%;
2022
min-width: 0;
2123
min-height: 100vh;
2224
overflow-x: hidden;
2325
margin: 0;
24-
padding-left: 0.5rem;
25-
padding-right: 0.5rem;
26+
padding: 0 0.5rem;
2627
box-sizing: border-box;
27-
background-image: radial-gradient(ellipse at center, pink, gray);
28+
background-image: radial-gradient(ellipse at center, #f05291, gray);
2829
background-repeat: no-repeat;
2930
background-size: cover;
3031
}
3132

33+
/* Grid de estados */
3234
.grid-states {
3335
display: grid;
3436
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
3537
gap: 6px;
3638
justify-items: center;
3739
max-width: 900px;
38-
margin: 0 auto;
40+
margin: 0 auto 1rem;
3941
padding-top: 4px;
40-
padding-bottom: 0;
41-
margin-bottom: 1rem;
4242
}
4343

44+
/* Botões de estado */
4445
.class1 {
4546
display: inline-block;
4647
padding: 10px 14px;
4748
font-size: 18px;
48-
background-color: red;
49-
color: white;
49+
background-color: #f05291;
50+
color: black;
5051
border-radius: 6px;
5152
text-align: center;
5253
text-decoration: none;
@@ -60,15 +61,16 @@ html, body {
6061

6162
.class1.active {
6263
font-weight: bold;
63-
border: 2px solid white;
64+
border: 3px solid black;
6465
}
6566

67+
/* Links padrão e secundário */
6668
a.class1:link,
6769
a.class1:visited,
6870
a.class1:hover,
6971
a.class1:active {
70-
background-color: red;
71-
color: white;
72+
background-color: #f05291;
73+
color: black;
7274
text-decoration: none;
7375
}
7476

@@ -87,24 +89,32 @@ a.class2:active {
8789
text-decoration: underline;
8890
}
8991

92+
/* Área de shows e seção compacta */
9093
.gig-container,
9194
.compact-section {
9295
max-width: 900px;
9396
width: 100%;
94-
margin: 0 auto;
95-
margin-bottom: 20px;
97+
margin: 0 auto 20px;
9698
text-align: center;
9799
padding: 0 1rem;
98100
box-sizing: border-box;
99101
}
100102

103+
/* Cartazes dos shows */
104+
.gig-container img {
105+
border: 4px solid #f05291;
106+
border-radius: 8px;
107+
box-sizing: border-box;
108+
}
109+
110+
/* Mensagem quando não há shows */
101111
.no-gigs-message {
102112
text-align: center;
103113
font-family: 'Inter', sans-serif;
104114
font-size: clamp(1rem, 2.5vw, 1.3rem);
105115
line-height: 1.6;
106116
padding: 0 1rem;
107-
margin: 1rem auto 0 auto;
117+
margin: 1rem auto 0;
108118
max-width: 900px;
109119
width: 100%;
110120
box-sizing: border-box;
@@ -114,28 +124,40 @@ a.class2:active {
114124
justify-content: center;
115125
}
116126

127+
/* Botão de ingressos */
117128
.tickets-btn {
118129
display: block;
119130
width: 100%;
120131
max-width: 600px;
121132
margin: 0 auto;
122133
padding: 0.5rem;
123134
box-sizing: border-box;
135+
border: 3px solid #f05291;
124136
border-radius: 0 0 10px 10px;
125137
text-decoration: none;
126-
background-color: #66223d;
138+
background-color: #000;
127139
color: #fff;
140+
transition: background-color 0.3s ease, border-color 0.3s ease;
141+
}
142+
143+
.tickets-btn:hover {
144+
background-color: #222;
145+
border-color: #d44881;
128146
}
129147

130148
.tickets-btn:hover .tickets-btn__text {
131149
text-decoration: underline;
132150
}
133151

152+
/* Ícone e texto do botão de ingressos */
134153
.tickets-btn__icon {
135154
display: inline-block;
136155
width: 30px;
137156
height: 30px;
138157
margin-right: 0.5rem;
158+
background-color: transparent;
159+
border: none;
160+
filter: brightness(0) invert(1);
139161
}
140162

141163
.tickets-btn__text {
@@ -146,65 +168,79 @@ a.class2:active {
146168
font-size: 1.3rem;
147169
}
148170

171+
/* Texto adicional geral */
149172
.compact-section {
150173
text-align: center;
151174
line-height: 1.6;
152175
font-size: 23px;
153176
color: #000;
154177
padding: 8px;
155-
margin-top: 0 !important;
178+
margin-top: 0;
156179
}
157180

181+
/* Linha do separador tipo \"tesoura\" */
158182
.scissor-line {
159183
font-weight: bold;
160184
word-break: break-word;
161185
overflow-wrap: break-word;
162186
font-family: monospace;
163187
}
164188

189+
/* Linha de email e estilo de links */
190+
.email-section {
191+
font-family: 'Inter', sans-serif;
192+
font-size: 1.2rem;
193+
text-align: center;
194+
margin-top: 1rem;
195+
}
196+
165197
.email-line {
166-
margin: 4px 0;
198+
margin: 0.5rem 0;
167199
font-weight: bold;
168200
}
169201

170202
.email-line a {
171-
color: #002aff;
203+
color: inherit;
172204
text-decoration: none;
173205
}
174206

207+
/* Títulos e textos gerais */
175208
.estados-titulo {
176209
font-family: sans-serif;
177-
text-align: center;
178210
font-size: 24px;
179211
font-weight: bold;
180-
margin-top: 16px;
181-
margin-bottom: 0;
212+
text-align: center;
213+
margin: 16px 0 0;
182214
}
183215

216+
/* Ajustes de margem entre mês, dia e cidade */
184217
.gig-month {
185218
font-family: sans-serif;
186219
font-size: 24px;
187220
text-align: center;
188221
font-weight: bold;
222+
margin-bottom: 0; /* cola no dia */
189223
}
190224

191225
.gig-day {
192226
font-family: sans-serif;
193227
font-size: 20px;
194228
text-align: center;
229+
margin-top: 0; /* cola no mês */
230+
margin-bottom: 1rem; /* espaço para a cidade */
195231
}
196232

197233
.gig-city {
198234
font-family: sans-serif;
199-
200235
font-size: 20px;
201236
text-align: center;
237+
margin-bottom: 0; /* cola no cartaz */
202238
}
203239

240+
/* Responsividade (até 600px) */
204241
@media (max-width: 600px) {
205242
html, body {
206-
padding-left: 0.5rem;
207-
padding-right: 0.5rem;
243+
padding: 2rem 0.5rem 0 0.5rem;
208244
}
209245

210246
.class1 {
@@ -221,42 +257,36 @@ a.class2:active {
221257
.compact-section {
222258
font-size: 16px;
223259
padding: 0 0.5rem;
224-
margin-top: 0 !important;
260+
margin-top: 0;
225261
}
226262

227263
.email-line {
228264
font-size: 15px;
229265
}
230266

231-
.estados-titulo {
232-
font-size: 16px;
233-
font-weight: bold;
234-
}
235-
267+
.estados-titulo,
236268
.gig-month {
237269
font-size: 16px;
238270
font-weight: bold;
239271
}
240272

241-
.gig-day {
242-
font-size: 16px;
243-
}
244-
273+
.gig-day,
245274
.gig-city {
246275
font-size: 16px;
247276
}
248277

249278
.tickets-btn__text {
250-
font-size: 0.9rem !important;
279+
font-size: 0.9rem;
251280
}
252281

253282
.tickets-btn__icon {
254-
width: 20px !important;
255-
height: 20px !important;
283+
width: 20px;
284+
height: 20px;
256285
}
257286

258287
.logo {
259-
max-width: 120px !important;
288+
max-width: 120px;
289+
margin-top: 0;
260290
}
261291

262292
.no-gigs-message {
@@ -265,6 +295,7 @@ a.class2:active {
265295
}
266296
}
267297

298+
/* Espaçamento padrão entre parágrafos */
268299
p {
269300
margin: 0 0 8px 0;
270301
}

0 commit comments

Comments
 (0)