Skip to content

Commit 21db8be

Browse files
fix: mobile layout
1 parent 8c866a8 commit 21db8be

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

src/pages/index.astro

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function formatDate(dateStr) {
5555
<meta name="apple-mobile-web-app-capable" content="yes">
5656
<meta name="apple-mobile-web-app-title" content="Undershows">
5757
<meta name="apple-mobile-web-app-status-bar-style" content="black">
58+
<link rel="preload" as="image" href="https://undershows.nyc3.cdn.digitaloceanspaces.com/logo-undershows.webp" />
5859

5960
<style>
6061
* {
@@ -85,12 +86,6 @@ function formatDate(dateStr) {
8586
display: block;
8687
}
8788

88-
h1 {
89-
margin: 8px 0 20px;
90-
font-size: 1.4rem;
91-
letter-spacing: 0.08em;
92-
}
93-
9489
.states-grid {
9590
display: flex;
9691
flex-wrap: wrap;
@@ -164,15 +159,15 @@ function formatDate(dateStr) {
164159
}
165160

166161
.shows {
167-
margin-top: 24px;
162+
margin-top: 16px;
168163
display: flex;
169164
flex-direction: column;
170-
gap: 24px;
165+
gap: 12px;
171166
}
172167

173168
.show-card {
174169
text-align: center;
175-
margin: 0 auto 32px;
170+
margin: 0 auto 12px;
176171
max-width: 460px;
177172
}
178173

@@ -236,8 +231,16 @@ function formatDate(dateStr) {
236231

237232
<body>
238233
<main>
239-
<img src="/logo-undershows.png" alt="Undershows" class="logo" />
240-
<h1>ESTADOS / STATES</h1>
234+
<picture>
235+
<source srcset="https://undershows.nyc3.cdn.digitaloceanspaces.com/logo-undershows.webp" type="image/webp" />
236+
<img
237+
src="https://undershows.nyc3.cdn.digitaloceanspaces.com/logo-undershows.png"
238+
alt="Undershows"
239+
class="logo"
240+
width="180"
241+
height="180"
242+
/>
243+
</picture>
241244

242245
<div class="states-grid">
243246
{states.map((uf) => (

0 commit comments

Comments
 (0)