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

feat: add support for ipad & desktop #25

Merged
merged 1 commit into from
Oct 15, 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
8 changes: 7 additions & 1 deletion src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,16 @@ iframe {
}

footer {
background: #FFCE9A;
background: #ffce9a;
}

.sec {
@apply sticky top-0;
background: var(--background);
}

@media only screen and (min-width: 768px) {
.sec {
position: relative;
}
}
2 changes: 1 addition & 1 deletion src/layouts/section.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const {
image && (
<img
src={image}
class={imageAlign == "right" ? "max-w-[70vw] ml-[30vw]" : ""}
class={imageAlign == "right" ? "max-w-[70vw] self-end" : ""}
alt={image_alt}
/>
)
Expand Down
15 changes: 8 additions & 7 deletions src/sections/Community.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
<img
src={image1.src}
alt="Captura del libro de rust en español"
class="flex-grow z-10 p-[20px] mb-[40px] w-72 h-[200px] lg:w-80 md:w-96"
class="flex-grow z-10 p-[20px] mb-[40px] w-72 lg:w-80 md:w-96"
/>
<img
src={image2.src}
alt="Captura del roadmap de la comunidad"
class="flex-grow p-[20px] ml-[-50%] mt-[40px] z-10 w-72 h-[200px] lg:w-96"
class="flex-grow p-[20px] ml-[-50%] mt-[40px] z-10 w-72 lg:w-96"
/>
</div>
</Section>
Expand Down Expand Up @@ -77,7 +77,8 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
allowtransparency="true"
frameborder="0"
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
></iframe>
class="md:w-[50vw] h-[60vh]"
></iframe>
</div>
</Section>

Expand All @@ -89,7 +90,7 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
h-[30vh]
inline-flex
flex-nowrap overflow-hidden
[mask-image:_linear-gradient(to_right,transparent_0,_black_32px,_black_calc(100%-32px),transparent_100%)]"
[mask-image:_linear-gradient(to_right,transparent_0,_black_32px,_black_calc(100%-32px),transparent_100%)] md:h-[40vh]"
>
<ul
class="flex
Expand All @@ -104,7 +105,7 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
if (project.button_text.length > 0)
return (
<Clickable
className="relative flex flex-col mx-3 w-[85vw] h-full flex-shrink-0 p-2"
className="relative flex flex-col mx-3 w-[85vw] h-full flex-shrink-0 p-2 md:w-60"
justify="start"
>
{project.brand_as_letter ? (
Expand All @@ -119,8 +120,8 @@ const prebuiltData = await readTOMLFiles("proyectos-comunitarios/proyectos");
/>
)}

<p class="font-bold self-start">{project.name.join(" ")}</p>
<p class="text-black text-pretty">{project.description}</p>
<p class="font-bold self-start">{project.name.join(" ")}</p>
<p class="text-black text-pretty self-start">{project.description}</p>
<Clickable href={project.button_link} maxWidth={false} className="self-start absolute bottom-0 mb-2">{project.button_text}</Clickable>
</Clickable>
);
Expand Down
Loading