Skip to content

Commit 571cd21

Browse files
feat: add responsive layout for cities date poster name and logo
1 parent 473a84c commit 571cd21

3 files changed

Lines changed: 116 additions & 32 deletions

File tree

src/components/old/AppNavbar.astro

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,11 @@ const isLink = (state: CollectionEntry<"state">) =>
4646
}
4747
</style>
4848

49+
<img src="/images/undershows_logo.png" alt="Undershows logo" class="logo"/>
50+
4951
<p class="normal">
50-
<img
51-
src="/images/undershows_logo.png"
52-
alt="Undershows logo"
53-
class="logo"
54-
/>
5552

56-
<p style="text-align: center; font-size: 24px; font-weight: bold; margin-top: 16px;">ESTADOS/STATES</p>
53+
<p class="estados-titulo">ESTADOS/STATES</p>
5754

5855
<div class="grid-states">
5956
{
@@ -70,13 +67,13 @@ const isLink = (state: CollectionEntry<"state">) =>
7067
</div>
7168
</p>
7269

73-
<div class="compact-section" style="text-align: center; line-height: 1.6; font-size: 23px; color: #000;">
74-
<b>-ˋˏ✄---------------------------------------------------------------</b><br>
75-
<div style="margin-bottom: 2px;">
76-
<b>Cartazes de shows, só mandar por email:
77-
<a href="mailto:undershowsbr@gmail.com" style="color: #002aff; text-decoration: none;">undershowsbr@gmail.com</a></b>
78-
</div>
79-
<b>-ˋˏ✄---------------------------------------------------------------</b><br>
70+
<div class="compact-section">
71+
<div class="scissor-line">-ˋˏ✄---------------------------------------------------------------</div>
72+
<div class="email-line">
73+
Cartazes de shows, só mandar por email:
74+
<a href="mailto:undershowsbr@gmail.com">undershowsbr@gmail.com</a>
75+
</div>
76+
<div class="scissor-line">-ˋˏ✄---------------------------------------------------------------</div>
8077
</div>
8178

8279
<Content />

src/components/old/GigList.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ const gigsByMonth = R.pipe(
9595

9696
{gigsByMonth.map(([monthNumber, GigsByDaysGroup]: GigsByMonth) => (
9797
<>
98-
<p style="font-size:30px; text-align:center;">
98+
<p class="gig-month">
9999
{getFormattedMonthName(monthNumber)}
100100
</p>
101101
{GigsByDaysGroup.map(([daysGroup, gigs]: GigsByDaysGroup) => (
102102
<>
103-
<p style="font-size:20px; text-align:center;">
103+
<p class="gig-day">
104104
<b>{daysGroup}</b>
105105
</p>
106106
{gigs.map((gig: ParsedGig) => (
107107
<>
108-
<p style="font-size:20px; text-align:center;">
108+
<p class="gig-city">
109109
<b>{gig.city}/{state.data.abbr} ↓↓↓</b>
110110
</p>
111111
<div class="gig-container">

src/styles/old.css

Lines changed: 103 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ img {
66
}
77

88
.logo {
9-
max-width: 200px;
10-
height: auto;
119
display: block;
1210
margin: 0 auto;
11+
height: auto;
12+
max-width: 200px;
1313
}
1414

1515
p.normal {
@@ -28,7 +28,7 @@ body {
2828
grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
2929
gap: 6px;
3030
justify-items: center;
31-
max-width: 900px; /* aumentamos no desktop */
31+
max-width: 900px;
3232
margin: 0 auto;
3333
padding: 12px 0;
3434
}
@@ -54,19 +54,6 @@ body {
5454
border: 2px solid white;
5555
}
5656

57-
@media (max-width: 600px) {
58-
.class1 {
59-
font-size: 14px;
60-
padding: 6px 8px;
61-
max-width: 60px;
62-
}
63-
64-
.grid-states {
65-
max-width: 100%;
66-
grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
67-
}
68-
}
69-
7057
a.class1:link,
7158
a.class1:visited,
7259
a.class1:hover,
@@ -130,4 +117,104 @@ a.class2:active {
130117
vertical-align: top;
131118
font-family: Arial, Helvetica, sans-serif;
132119
font-size: 1.3rem;
120+
}
121+
122+
.compact-section {
123+
text-align: center;
124+
line-height: 1.6;
125+
font-size: 23px;
126+
color: #000;
127+
padding: 8px;
128+
}
129+
130+
.scissor-line {
131+
font-weight: bold;
132+
word-break: break-word;
133+
overflow-wrap: break-word;
134+
}
135+
136+
.email-line {
137+
margin: 4px 0;
138+
font-weight: bold;
139+
}
140+
141+
.email-line a {
142+
color: #002aff;
143+
text-decoration: none;
144+
}
145+
146+
.estados-titulo {
147+
text-align: center;
148+
font-size: 24px;
149+
font-weight: bold;
150+
margin-top: 16px;
151+
}
152+
153+
.gig-month {
154+
font-size: 30px;
155+
text-align: center;
156+
}
157+
158+
.gig-day {
159+
font-size: 20px;
160+
text-align: center;
161+
}
162+
163+
.gig-city {
164+
font-size: 20px;
165+
text-align: center;
166+
}
167+
168+
@media (max-width: 600px) {
169+
.class1 {
170+
font-size: 14px;
171+
padding: 6px 8px;
172+
max-width: 60px;
173+
}
174+
175+
.grid-states {
176+
max-width: 100%;
177+
grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
178+
}
179+
180+
.compact-section {
181+
font-size: 16px;
182+
}
183+
184+
.scissor-line {
185+
font-size: 14px;
186+
}
187+
188+
.email-line {
189+
font-size: 15px;
190+
}
191+
192+
.estados-titulo {
193+
font-size: 16px;
194+
}
195+
196+
.gig-month {
197+
font-size: 20px;
198+
}
199+
200+
.gig-day {
201+
font-size: 16px;
202+
}
203+
204+
.gig-city {
205+
font-size: 16px;
206+
}
207+
208+
.tickets-btn__text {
209+
font-size: 0.9rem !important;
210+
}
211+
212+
.tickets-btn__icon {
213+
width: 20px !important;
214+
height: 20px !important;
215+
}
216+
217+
.logo {
218+
max-width: 120px !important;
219+
}
133220
}

0 commit comments

Comments
 (0)