Skip to content

Commit 71d59ba

Browse files
committed
Get rid of redundant Button Component
1 parent 9e4691d commit 71d59ba

File tree

5 files changed

+10
-41
lines changed

5 files changed

+10
-41
lines changed

src/components/button/button.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/components/button/index.tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.
5.04 KB
Loading

src/content/pages/programme/voting.mdx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Voting
33
subtitle: Your opinion for a great conference!
44
---
55

6+
import { Image } from "astro:assets";
7+
import voteOptions from "../images/voting.png";
8+
69
# Community Voting
710

811
Welcome to EuroPython Community Voting! We want feedback about what YOU would
@@ -67,14 +70,7 @@ to receive a new confirmation link.
6770

6871
For each submission, you can choose only one of four options
6972

70-
<div style={{textAlign: "center", marginBottom: 8}}>
71-
<Button>Must see</Button>
72-
<Button>Want to see</Button>
73-
</div>
74-
<div style={{textAlign: "center", marginBottom: 8}}>
75-
<Button>Maybe</Button>
76-
<Button>Not interested</Button>
77-
</div>
73+
<Image src={voteOptions} alt="Vote Options" width="1200" class="w-full h-auto border-4 border-white rounded-lg shadow-lg" />
7874

7975
- Your vote for each submission is automatically saved, but you can change it
8076
at any time before the voting phase ends.
@@ -93,9 +89,12 @@ programme team who curate and are responsible for the final programme, but one
9389
of the major factors upon which they rely, will be the preferences of the
9490
community through this voting process.
9591

96-
<div style={{textAlign: "center", marginBottom: 10}}>
97-
<ButtonLink url="https://voting.europython.eu">Go to the community voting</ButtonLink>
98-
</div>
92+
<ButtonLink
93+
url="https://voting.europython.eu"
94+
className="flex justify-center mb-10"
95+
>
96+
Go to the community voting
97+
</ButtonLink>
9998

10099

101100
**[Subscribe to our newsletter](https://blog.europython.eu/#/portal/signup)**

src/pages/[...slug].astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Layout from "../layouts/Layout.astro";
44
55
import Prose from "../components/prose/prose.astro";
66
import ButtonLink from "../components/button-link/button-link.astro";
7-
import { Button } from "../components/button";
87
import { Separator } from "../components/separator/separator";
98
import { Map } from "../components/map";
109
import { MapSprints } from "../components//map-for-sprints";
@@ -37,7 +36,6 @@ const description = post.data.subtitle;
3736
<Content
3837
components={{
3938
ButtonLink,
40-
Button,
4139
Map,
4240
MapSprints,
4341
YouTube,

0 commit comments

Comments
 (0)