-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Renommage et amélioration du Jumbotron (anciennement Hero)
- Loading branch information
Showing
6 changed files
with
85 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.text-primary { | ||
color: var(--primary-200) !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
import { Icon } from 'astro-icon/components' | ||
const { imageSrc = 'https://picsum.photos/400/500', imageAlt = '', header, subHeader } = Astro.props | ||
--- | ||
|
||
<section class="jumbotron my-24"> | ||
<div class="container"> | ||
<div class="grid grid-cols-1 items-center gap-24 lg:grid-cols-2"> | ||
<div class="flex flex-col items-center gap-8 md:items-start"> | ||
<h1> | ||
{header} | ||
</h1> | ||
{subHeader && <p>{subHeader}</p>} | ||
<div class="flex flex-col gap-3 min-[500px]:flex-row"><slot /></div> | ||
</div> | ||
<img class="hidden lg:block" src={imageSrc} alt={imageAlt} decoding="async" width="500" height="400" /> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<style lang="scss" is:global> | ||
.jumbotron { | ||
background-color: var(--primary-300); | ||
background-image: radial-gradient(var(--primary-200), transparent); | ||
color: #fff; | ||
margin-bottom: 2rem; | ||
border-radius: 0 !important; | ||
|
||
.button { | ||
color: #fff; | ||
|
||
&.primary { | ||
background-color: #fff; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters