Skip to content

Commit 1788bfa

Browse files
committed
Add images to overview sections
1 parent e7eceac commit 1788bfa

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed

public/overview/placeholder.png

7.76 KB
Loading

src/pages/overview.astro

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import Layout from "../layouts/Layout.astro";
33
import Headline from "@ui/Headline.astro"
44
import Section from "@ui/Section.astro";
55
6+
import { Image } from "astro:assets";
7+
8+
const imageStyle = "m-2 md:float-right max-w-[300px] md:max-w-[400px] lg:max-w-[300px] w-full border-4 border-white rounded-lg shadow-lg ";
69
---
710

811
<Layout
@@ -18,6 +21,15 @@ import Section from "@ui/Section.astro";
1821
<div class="events-grid">
1922
<div class="event-category">
2023
<h3>Talks, Tutorials & Posters</h3>
24+
25+
<Image
26+
src="/overview/placeholder.png"
27+
alt=""
28+
height={250}
29+
width={250}
30+
class={imageStyle}
31+
/>
32+
2133
<ul class="event-list">
2234
<li><a href="/sessions/">~120 talks</a></li>
2335
<li><a href="/sessions/">~20 tutorials</a></li>
@@ -28,6 +40,15 @@ import Section from "@ui/Section.astro";
2840

2941
<div class="event-category">
3042
<h3>Summits</h3>
43+
44+
<Image
45+
src="/overview/placeholder.png"
46+
alt=""
47+
height={250}
48+
width={250}
49+
class={imageStyle}
50+
/>
51+
3152
<ul class="event-list">
3253
<li><a href="/session/rust-summit/">Rust Summit</a></li>
3354
<li><a href="/session/webassembly-summit">WASM Summit</a></li>
@@ -37,13 +58,31 @@ import Section from "@ui/Section.astro";
3758

3859
<div class="event-category">
3960
<h3>PyLadies Sessions</h3>
61+
62+
<Image
63+
src="/overview/placeholder.png"
64+
alt=""
65+
height={250}
66+
width={250}
67+
class={imageStyle}
68+
/>
69+
4070
<ul class="event-list">
4171
<li>Will be added soon!</li>
4272
</ul>
4373
</div>
4474

4575
<div class="event-category">
4676
<h3>Beginner Workshops</h3>
77+
78+
<Image
79+
src="/overview/placeholder.png"
80+
alt=""
81+
height={250}
82+
width={250}
83+
class={imageStyle}
84+
/>
85+
4786
<ul class="event-list">
4887
<li><a href="/beginners-day#django-girls">Django Girls</a></li>
4988
<li><a href="/beginners-day#humble-data">Humble Data</a></li>
@@ -52,13 +91,31 @@ import Section from "@ui/Section.astro";
5291

5392
<div class="event-category">
5493
<h3>Community Organizers' Sessions</h3>
94+
95+
<Image
96+
src="/overview/placeholder.png"
97+
alt=""
98+
height={250}
99+
width={250}
100+
class={imageStyle}
101+
/>
102+
55103
<ul class="event-list">
56104
<li>Will be added soon!</li>
57105
</ul>
58106
</div>
59107

60108
<div class="event-category">
61109
<h3>Social & Networking Events</h3>
110+
111+
<Image
112+
src="/overview/placeholder.png"
113+
alt=""
114+
height={250}
115+
width={250}
116+
class={imageStyle}
117+
/>
118+
62119
<ul class="event-list">
63120
<li><a href="/speakers-dinner/">Speakers' dinner</a></li>
64121
<li><a href="/beginners-day#beginners-day-unconference">Beginners’ Day Unconference</a></li>
@@ -68,13 +125,31 @@ import Section from "@ui/Section.astro";
68125

69126
<div class="event-category">
70127
<h3>Open spaces</h3>
128+
129+
<Image
130+
src="/overview/placeholder.png"
131+
alt=""
132+
height={250}
133+
width={250}
134+
class={imageStyle}
135+
/>
136+
71137
<ul class="event-list">
72138
<li>Will be added soon!</li>
73139
</ul>
74140
</div>
75141

76142
<div class="event-category">
77143
<h3>Sprints</h3>
144+
145+
<Image
146+
src="/overview/placeholder.png"
147+
alt=""
148+
height={250}
149+
width={250}
150+
class={imageStyle}
151+
/>
152+
78153
<ul class="event-list">
79154
<li>10+ open-source projects</li>
80155
</ul>
@@ -118,7 +193,7 @@ import Section from "@ui/Section.astro";
118193

119194
.events-grid {
120195
display: grid;
121-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
196+
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
122197
gap: 2rem;
123198
}
124199

0 commit comments

Comments
 (0)