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

Fix the FAQ section width jumping around on different viewport widths #51

Open
wants to merge 1 commit into
base: master
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
48 changes: 22 additions & 26 deletions src/components/landing/donate.astro
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
<section class="donate">
<div class="container">
<div
class="relative z-10 -top-4 text-[#fff] bg-[url('/assets/img/blurp.webp')] bg-center bg-cover mb-12 flex justify-center"
>
<div class="p-6 md:p-8 lg:px-16 lg:py-10">
<h2 class="text-3xl lg:text-4xl mb-[0.8em] lg:mb-[0.4em]">
Become a <span>Ladybird</span> supporter
</h2>
<p class="mb-5 max-w-2xl">
Ladybird is funded entirely by sponsorships and donations from people
and companies who care about the open web.
<p class="mb-5 max-w-2xl">
We accept one-time and recurring monthly donations via <a
href="https://donorbox.org/ladybird">Donorbox</a
>.
<p class="mb-5 max-w-2xl">
If you or your company would like to make a large donation, we
would be happy to display your logo on this website! Please <a
href="mailto:[email protected]">contact us</a
> about becoming a sponsor.
</p>
</p>
</p>
</div>
</div>
<section
class="relative z-10 -top-4 text-[#fff] bg-[url('/assets/img/blurp.webp')] bg-center bg-cover mb-12 flex justify-center"
>
<div class="p-6 md:p-8 lg:px-16 lg:py-10">
<h2 class="text-3xl lg:text-4xl mb-[0.8em] lg:mb-[0.4em]">
Become a <span>Ladybird</span> supporter
</h2>
<p class="mb-5 max-w-2xl">
Ladybird is funded entirely by sponsorships and donations from people and
companies who care about the open web.
</p>
<p class="mb-5 max-w-2xl">
We accept one-time and recurring monthly donations via <a
href="https://donorbox.org/ladybird">Donorbox</a
>.
</p>
<p class="mb-5 max-w-2xl">
If you or your company would like to make a large donation, we would be
happy to display your logo on this website! Please <a
href="mailto:[email protected]">contact us</a
> about becoming a sponsor.
</p>
</div>
</section>
2 changes: 1 addition & 1 deletion src/components/landing/faq.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section id="faq" class="faq xl:mx-32 md:mx-16">
<section id="faq" class="faq">
<div class="container">
<div class="faq__tf">
<h2>Frequently Asked Questions</h2>
Expand Down
18 changes: 7 additions & 11 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,22 +789,18 @@ table.sponsor-tiers td:first-child {
font-weight: bold;
}

.donate .container {
max-width: none;
}

div.newsletter-image-caption {
text-align: center;
font-size: 0.6em;
margin-top: -3em;
margin-bottom: 3em;
text-align: center;
font-size: 0.6em;
margin-top: -3em;
margin-bottom: 3em;
}

div.newsletter-image-caption a {
font-size: inherit;
letter-spacing: inherit;
font-size: inherit;
letter-spacing: inherit;
}

th {
font-weight: 600;
font-weight: 600;
}