Skip to content

Commit 8cd52cb

Browse files
authored
mobile (#24)
* Updated intro text * Figuring out mobile sizing * Can only apply to individual parts * Mobile friendly * Better spacing
1 parent 3652344 commit 8cd52cb

File tree

9 files changed

+168
-78
lines changed

9 files changed

+168
-78
lines changed

public/ufh-2025.pdf

-19.2 KB
Binary file not shown.

src/components/Graphics.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const { imageMetadatas, alt } = Astro.props;
1111
imageMetadatas.then((metadatas) => (
1212
<!--suppress HtmlUnknownTag -->
1313
<graphics-element data-image-srcs={JSON.stringify(metadatas.map(({default: {src}}) => src))}>
14-
<img class="max-h-dvh object-contain rounded-xl" src={metadatas[0].default.src} width={metadatas[0].default.width}
14+
<img class="max-h-dvh object-contain rounded-xl" src={metadatas[0].default.src}
15+
width={metadatas[0].default.width}
1516
height={metadatas[0].default.height} alt={alt}/>
1617
</graphics-element>
1718
))

src/components/Spacer.astro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,11 @@
22
33
---
44

5-
<div class="h-1/4dvh"/>
5+
<!-- Large screen spacer -->
6+
<div class="hidden lg:block h-1/4dvh"/>
7+
8+
<!-- Small screen spacer. -->
9+
<div class="lg:hidden">
10+
<br/>
11+
<br/>
12+
</div>

src/components/TextCardPair.astro

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
import Article from "./Article.astro";
3+
---
4+
<div class="hero">
5+
<div class="hero-content flex-col lg:flex-row w-full pt-0 pb-0">
6+
<!-- Content side. -->
7+
<div class="basis-1/2 self-stretch flex items-center">
8+
<Article>
9+
<slot/>
10+
</Article>
11+
</div>
12+
13+
<!-- Graphics side. -->
14+
<div class="basis-1/2 self-stretch">
15+
<slot name="graphics"/>
16+
</div>
17+
</div>
18+
</div>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
import Article from "./Article.astro";
33
---
44
<div class="hero">
5-
<div class="hero-content flex-col lg:flex-row-reverse w-full p-0">
6-
<!-- Graphics side. -->
7-
<div class="basis-1/2 self-stretch">
8-
<slot name="graphics"/>
9-
</div>
10-
5+
<div class="hero-content flex-col lg:flex-row w-full pt-0 pb-0">
116
<!-- Content side. -->
127
<div class="basis-1/2 self-stretch">
138
<div class="sticky top-1/3">
@@ -16,5 +11,10 @@ import Article from "./Article.astro";
1611
</Article>
1712
</div>
1813
</div>
14+
15+
<!-- Graphics side. -->
16+
<div class="basis-1/2 self-stretch">
17+
<slot name="graphics"/>
18+
</div>
1919
</div>
2020
</div>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
---
33
<div class="hero">
4-
<div class="hero-content flex-col lg:flex-row-reverse w-full p-0">
4+
<div class="hero-content flex-col lg:flex-row-reverse w-full pt-0 pb-0">
55
<!-- Graphics side. -->
6-
<div class="basis-1/2 self-stretch">
7-
<div class="h-dvh sticky top-0 flex justify-center items-center">
6+
<div class="hidden lg:block basis-1/2 self-stretch">
7+
<div class="lg:h-dvh sticky top-0 flex justify-center items-center">
88
<slot name="graphics"/>
99
</div>
1010
</div>
1111

1212
<!-- Content side. -->
13-
<div class="basis-1/2">
13+
<div class="lg:basis-1/2">
1414
<slot/>
1515
</div>
1616
</div>

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { imageSrcs } = Astro.props;
99
<html lang="en" class="scroll-smooth">
1010
<head>
1111
<meta charset="UTF-8"/>
12-
<meta name="viewport" content="width=device-width"/>
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
1313
<link rel="icon" type="image/svg+xml" href="/favicon.ico"/>
1414
<meta name="generator" content={Astro.generator}/>
1515
<title>Pinpoint</title>

0 commit comments

Comments
 (0)