Skip to content

Commit

Permalink
improve mobile styling 🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Oct 14, 2024
1 parent 95f78ce commit 5196108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/MainPageCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let textColor = textColorMap.get(card.data.styling.textColor)
let buttonColor = bgColorMap.get(card.data.styling.buttonColor)
let buttonTextColor = textColorMap.get(card.data.styling.buttonTextColor)
const cardBaseClass = card.data.styling.glass ? "card glass lg:!items-center" : "card lg:!items-center"
const cardBaseClass = card.data.styling.glass ? "card glass max-md:rounded-none lg:!items-center" : "card max-md:rounded-none lg:!items-center"
const cardClassTextRight = `${cardBaseClass} lg:card-side shadow-xl p-6 ${bgColor} ${textColor}`
const cardClassTextLeft = `${cardBaseClass} lg:card-side shadow-xl p-6 ${bgColor} ${textColor}`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const events = await getCollection('events');
</Fragment>
</CallToAction>
<div class="mx-auto w-full max-w-6xl pb-10 md:px-2 lg:py-12 lg:px-8">
<div class="grid lg:grid-rows-5 grid-cols-1 gap-5 lg:gap-24">
<div class="grid lg:grid-rows-5 grid-cols-1 md:gap-5 lg:gap-24">
{
mainPageCards
.sort((a,b) => a.data.index - b.data.index)
Expand Down

0 comments on commit 5196108

Please sign in to comment.