Skip to content

Commit 900ed0c

Browse files
nikoshellegeakman
andauthored
Update subscribers. (#1134)
Close #1087 --------- Co-authored-by: Ege Akman <[email protected]>
1 parent 3102b38 commit 900ed0c

File tree

10 files changed

+44
-83
lines changed

10 files changed

+44
-83
lines changed

public/icons/bluesky.svg

-4
This file was deleted.

public/icons/instagram.svg

-7
This file was deleted.

public/icons/linkedin.svg

-16
This file was deleted.

public/icons/mastodon.svg

-2
This file was deleted.

public/icons/x.svg

-1
This file was deleted.

public/icons/youtube.svg

-6
This file was deleted.

src/components/BaseHead.astro

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
interface Props {
43
title: string;
54
description: string;

src/components/sections/subscribe.astro

+42-45
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Button from "@ui/Button.astro";
23
const socialLinks = [
34
{ href: "https://linkedin.com/company/europython/", icon: "linkedin" },
45
{ href: "https://instagram.com/europython/", icon: "instagram" },
@@ -10,56 +11,52 @@ const socialLinks = [
1011
---
1112

1213
<div class="full-bleed w-full bg-[#d4d5e5] flex flex-col items-center justify-center py-08 px-4 text-center">
13-
<div class="w-full bg-[#d4d5e5] flex flex-col items-center justify-center py-20 px-4 text-center relative z-10">
14-
<h1 class="text-4xl md:text-6xl font-bold mb-10 leading-tight text-[#17223A]">
15-
Follow us<br />for updates
16-
</h1>
14+
<div class="w-full bg-[#d4d5e5] flex flex-col items-center justify-center py-20 px-4 text-center relative z-10">
15+
<h1 class="text-4xl md:text-6xl font-bold mb-10 leading-tight text-[#17223A]">
16+
Follow us<br />for updates!
17+
</h1>
1718

18-
<div class="flex justify-center flex-wrap gap-6 mb-8">
19-
{socialLinks.map(({ href, icon }) => (
20-
<a
21-
href={href}
22-
target="_blank"
23-
rel="noopener noreferrer"
24-
class="w-16 h-16 flex items-center justify-center border-2 border-yellow-400 rounded-full hover:scale-110 transition-transform"
25-
>
26-
<img src={`/icons/${icon}.svg`} alt={icon} class="w-6 h-6" />
27-
</a>
28-
))}
29-
</div>
19+
<div class="flex justify-center flex-wrap gap-6 mb-8">
20+
{socialLinks.map(({ href, icon }) => (
21+
<a
22+
href={href}
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
class="w-16 h-16 flex items-center justify-center border-2 border-yellow-400 rounded-full hover:scale-110 transition-transform"
26+
>
27+
<i class={`fab fa-${icon} text-2xl text-[#17223A]`}></i>
28+
</a>
29+
))}
30+
</div>
3031

31-
<p class="text-[#151f38] mb-8 text-sm md:text-base">
32-
Subscribe to our conference newsletter and get<br />
33-
the latest updates and special deals
34-
</p>
32+
<p class="text-[#151f38] mb-8 text-sm md:text-base">
33+
Subscribe to our conference newsletter and get<br />
34+
the latest updates and special deals
35+
</p>
3536

36-
<form
37-
id="subscribeForm"
38-
class="flex flex-col sm:flex-row justify-center items-center gap-4"
39-
>
40-
<input
41-
id="emailInput"
42-
type="email"
43-
name="email"
44-
placeholder="Your email"
45-
required
46-
class="px-4 py-3 rounded-[10px] bg-white text-black text-base font-medium w-72 text-center"
47-
/>
48-
<button
49-
type="submit"
50-
class="font-bold text-lg px-4 py-4 bg-button rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose outline-solid outline bg-transparent text-xl text-secondary outline-secondary text-black"
37+
<form
38+
id="subscribeForm"
39+
class="flex flex-col sm:flex-row justify-center items-center gap-4"
5140
>
52-
Subscribe
53-
</button>
54-
</form>
41+
<input
42+
id="emailInput"
43+
type="email"
44+
name="email"
45+
placeholder="Your email"
46+
required
47+
class="px-4 py-3 rounded-[10px] bg-white text-black text-base font-medium w-72 text-center"
48+
/>
5549

56-
<p
57-
id="subscribeMessage"
58-
class="hidden mt-4 text-green-600 text-lg font-medium transition-opacity duration-500 opacity-0"
59-
>
60-
Please check your email to confirm. 📬
61-
</p>
62-
</div>
50+
<Button outline type="submit"> Subscribe </Button>
51+
</form>
52+
53+
<p
54+
id="subscribeMessage"
55+
class="hidden mt-4 text-green-600 text-lg font-medium transition-opacity duration-500 opacity-0"
56+
>
57+
Please check your email to confirm. 📬
58+
</p>
59+
</div>
6360
</div>
6461

6562
<script>

src/components/ui/Button.astro

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const {
66
url,
77
id,
88
class: className = "",
9+
type,
910
secondary = false,
1011
outline = false,
1112
disabled = false,
@@ -44,6 +45,7 @@ const slotContent = await Astro.slots.render('default');
4445
${disabled ? disabledClasses : ""}
4546
${className}`}
4647
aria-disabled={disabled}
48+
type={type}
4749
{...(resolvedIsExternal ? { target: "_blank", rel: "noopener noreferrer" } : {})}
4850
{...restProps}
4951
>

src/layouts/Layout.astro

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import "@src/styles/search.css";
1010
import "@fontsource-variable/inter";
1111
import "@fortawesome/fontawesome-free/css/all.min.css";
1212
13-
1413
export interface Props {
1514
title: string;
1615
description: string;

0 commit comments

Comments
 (0)