Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add newsletter #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/lib/components/home/newsletter.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<script lang="ts">
import UnderlinedTitle from '$components/UnderlinedTitle.svelte'
const label_id = 'newsletter-title'
</script>

<section aria-labelledby={label_id}>
<div class="newsletter-section">
<UnderlinedTitle id={label_id}>Inscription à notre newsletter</UnderlinedTitle>
<div class="embedded-substack">
<iframe
title="embedded-substack"
src="https://pauseia.substack.com/embed"
frameborder="0"
scrolling="no"
></iframe>
</div>
</div>
</section>

<style>
.newsletter-section {
text-align: center;
align-items: center;
}
.embedded-substack {
width: 480px;
height: 320px;
margin: auto;
}

.embedded-substack iframe {
/* border:1px solid #000000; */
border: 1px solid var(--brand);
background: white;
width: 100%;
height: 100%;
}

@media (max-width: 550px) {
.embedded-substack {
width: 90%;
}
}
</style>
4 changes: 4 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import Hero from '$components/home/hero.svelte'
import Lead from '$components/home/lead.svelte'
import Risks from '$components/home/risks.svelte'
import Newsletter from '$components/home/newsletter.svelte'
import Articles from '$components/home/articles.svelte'
import Faq from '$components/home/faq.svelte'
import Videos from '$components/home/videos.svelte'
Expand All @@ -20,6 +21,9 @@

<Risks />

<Newsletter />


<!-- <Supporters /> -->

<Articles />
Expand Down