Skip to content

Commit

Permalink
last tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
elijames-codecov committed Jul 31, 2024
1 parent 03ecb31 commit f1357b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Section.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
const {sectionStyles, backgroundStyling, backgroundBottomStyling, backgroundColor = false, isFirst = false, itemsTop = false} = Astro.props;
const {sectionStyles, backgroundStyling, backgroundBottomStyling, backgroundColor = false, isFirst = false, itemsTop = false, justify = false} = Astro.props;
const backgroundClasses = `${backgroundStyling ? backgroundStyling : ''}`;
const backgroundBottomClasses = `${backgroundBottomStyling ? backgroundBottomStyling : ''}`;
const backgroundColorClass = `${backgroundColor ? backgroundColor : 'bg-white'}`;
Expand All @@ -9,7 +9,7 @@
---

<section class={`container mx-auto px-[1.5rem] lg:px-[3rem] ${isFirst ? 'pb-[1rem]' : 'py-[1rem]'}`}>
<div class={`mx-auto relative flex flex-wrap rounded overflow-clip justify-center ${backgroundColorClass} ${sectionClasses} ${itemsTop ? 'items-top' : 'items-center'}`}>
<div class={`mx-auto relative flex flex-wrap rounded overflow-clip justify-center ${backgroundColorClass} ${sectionClasses} ${itemsTop ? 'items-top' : 'items-center'} ${justify ? justify : 'justify-center'}`}>
<div class={`absolute ${backgroundClasses}`}></div>
<slot />
<div class={`absolute ${backgroundBottomClasses}`}></div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/howto.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Section from '../components/Section.astro';
</div>
</header>
<main>
<Section sectionStyles="px-[1.5rem] xl:px-[3rem] py-[3rem] gap-[2rem] xl:py-[8rem] xl:gap-x-[4.25rem]" isFirst itemsTop>
<Section sectionStyles="px-[1.5rem] py-[3rem] gap-[2rem] xl:py-[8rem] xl:gap-x-[4.25rem]" isFirst itemsTop>
<div class="w-12/12 xl:w-5/12">
<span class="tag text-teal">1. Make a Community Engagement Plan</span>
<h2>
Expand Down

0 comments on commit f1357b1

Please sign in to comment.