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

refactor: remove empty space from landing page #232

Merged
merged 1 commit into from
Sep 13, 2024
Merged
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
45 changes: 22 additions & 23 deletions apps/web/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const Home = () => (
<div style={{ overflow: "hidden" }}>
<Header landing={true} />
<Hero />

<div className="container mx-auto">
<section className="relative mx-2 md:mt-28 lg:mx-12 xl:mx-20">
<div className="container my-8 flex w-11/12 flex-col items-start py-2 sm:w-10/12 lg:w-4/6">
Expand All @@ -32,7 +33,7 @@ const Home = () => (
</div>

<div className="container mx-auto">
<section className="relative mx-2 my-12 flex justify-end text-white lg:mx-12 xl:mx-20">
<section className="relative mx-2 flex justify-end text-white lg:mx-12 xl:mx-20">
<div className="container my-8 flex w-11/12 flex-col items-end py-2 sm:w-10/12 lg:w-4/6">
<h2 className="gap-1 py-2 text-2xl font-semibold text-white sm:text-3xl">
Como funciona o Dojo?
Expand All @@ -48,30 +49,28 @@ const Home = () => (
</section>
</div>

<div className="container mx-auto pb-96"></div>
<div className="bg-dark">
<div className="container mx-auto">
<section className="relative mx-2 py-10 text-white lg:mx-12 xl:mx-20">
<div className="container mx-auto">
<hr className="mx-auto w-6/12 border-purple-500 py-2 text-center lg:w-3/12" />
<div className="m-4 mx-auto w-9/12 text-center text-2xl md:w-8/12">
O CoderDojo Braga pretende dar a todas as crianças e jovens da
região minhota a oportunidade de aprenderem a programar num
ambiente amigável e divertido.
</div>
<div className="mx-auto mt-12 w-24">
<Image
layout="fixed"
width={80}
height={80}
src="/img/logo-draw-white.svg"
alt="CoderDojo Braga Draw Logo"
/>
</div>
<div className="container mx-auto">
<section className="relative mx-2 mb-8 mt-1 text-white md:mt-28 lg:mx-12 xl:mx-20">
<div className="container mx-auto">
<hr className="mx-auto w-6/12 border-purple-500 py-2 text-center lg:w-3/12" />
<div className="m-4 mx-auto w-9/12 text-center text-2xl md:w-8/12">
O CoderDojo Braga pretende dar a todas as crianças e jovens da
região minhota a oportunidade de aprenderem a programar num ambiente
amigável e divertido.
</div>
<div className="mx-auto mt-12 w-24">
<Image
layout="fixed"
width={80}
height={80}
src="/img/logo-draw-white.svg"
alt="CoderDojo Braga Draw Logo"
/>
</div>
</section>
</div>
</div>
</section>
</div>

<Footer bgColor="dark" fgColor="white" />
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions apps/web/styles/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
This is necessary because when screens width are bigger than 1530px,
the curves don't work properly, so the curve's width needs to be a little bit larger
*/
@media (min-width: 1530px) {
@media (min-width: 1230px) {
.curveTop, .curveBottom {
width: calc(100vw + (100vw - 1530px) / 4);
width: calc(100vw + (100vw - 1230px) / 4);
}
}
}
Loading