Skip to content

Commit 9b7c9c8

Browse files
committed
Update responsive design.
1 parent a418850 commit 9b7c9c8

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

src/components/CompanyCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const html = marked.parse(company.body);
2626
2727
---
2828

29-
<div class="max-w-[400px] flex flex-col gap-6 p-6 rounded-lg shadow-md bg-white text-black">
29+
<div class="lg:max-w-[400px] flex flex-col gap-6 p-6 rounded-lg shadow-md bg-white text-black">
3030
<div class="w-full flex justify-center items-center md:items-center ">
3131
<img src={logo} alt={title + " Logo"} class="max-h-[200px] object-contain" />
3232
</div>

src/pages/company/[company]/[job].astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export async function getStaticPaths() {
3030
title="EuroPython 2025 | July 14th-20th 2025 | Prague, Czech Republic & Remote"
3131
description="EuroPython is the largest Python conference in Europe. We are looking forward to seeing you in Prague, Czech Republic & Remote from July 14th-20th 2025."
3232
>
33-
<section class="space-y-12 pb-6">
34-
<div class="flex flex-col md:flex-row-reverse gap-6">
35-
<div class="sticky top-0 self-start">
33+
<section class="space-y-12 pb-6 md:p-6">
34+
<div class="flex flex-col lg:flex-row-reverse gap-6">
35+
<div class="w-full lg:max-w-[400px] lg:sticky lg:top-6 self-start">
3636
<CompanyCard {company} />
3737
</div>
3838
<div class="flex-1">

src/pages/company/[company]/index.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ export async function getStaticPaths() {
2424
>
2525

2626

27-
<section class="space-y-12 pb-6">
27+
<section class="space-y-12 pb-6 md:p-6">
28+
<div class="flex flex-col lg:flex-row-reverse gap-6">
2829
<div class="flex flex-col md:flex-row-reverse gap-6">
29-
<div class="sticky top-0 self-start">
30+
<div class="w-full lg:max-w-[400px] lg:sticky lg:top-6 self-start">
3031
<CompanyCard {company} />
3132
</div>
3233
<div class="flex-1 ">

src/pages/jobs.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { getCollection, getEntry } from "astro:content";
2+
import { type CollectionEntry, getCollection, getEntry } from "astro:content";
33
44
import Layout from "@layouts/MarkdownLayout.astro";
55
@@ -27,13 +27,13 @@ for (const path in jobFiles) {
2727
title="EuroPython 2025 | July 14th-20th 2025 | Prague, Czech Republic & Remote"
2828
description="EuroPython is the largest Python conference in Europe. We are looking forward to seeing you in Prague, Czech Republic & Remote from July 14th-20th 2025."
2929
>
30-
<section class="space-y-12 pb-6">
30+
<section class="space-y-12 pb-6 md:p-6">
3131
{
3232
companies.map((company) => {
3333
const companyJobs = companiesJobsMap[company.id];
3434
return (
35-
<div class="flex flex-col md:flex-row-reverse gap-6">
36-
<div class="sticky top-0 self-start">
35+
<div class="flex flex-col lg:flex-row-reverse gap-6">
36+
<div class="w-full lg:max-w-[400px] lg:sticky lg:top-6 self-start">
3737
<CompanyCard {company} />
3838
</div>
3939
<div class="flex-1 ">

0 commit comments

Comments
 (0)