-
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.
Merge branch 'main' into 20-prettier
- Loading branch information
Showing
8 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,41 @@ | ||
--- | ||
import PrimaryLink from "./PrimaryLink.astro"; | ||
interface Props { | ||
backgroundColor: "blue" | "green"; | ||
backgroundImage?: string; | ||
eyebrow?: string; | ||
heading?: string; | ||
links?: { | ||
href: string; | ||
text: string; | ||
}[]; | ||
} | ||
const { backgroundColor, backgroundImage, eyebrow, heading, links } = | ||
Astro.props; | ||
--- | ||
|
||
<section | ||
class={backgroundImage | ||
? `bg-cover p-6 sm:p-12 h-full` | ||
: `bg-${backgroundColor} p-6 sm:p-12`} | ||
style=`background-image: url('${backgroundImage}')` | ||
> | ||
<div | ||
class={`container flex flex-col gap-6 sm:gap-12 items-center justify-center mx-auto ${backgroundImage ? "text-light-lilac" : backgroundColor === "green" ? "text-blue" : "text-green"}`} | ||
> | ||
<div class="uppercase font-bold text-sm tracking-[3px]">{eyebrow}</div> | ||
<div class="text-3xl sm:text-5xl text-center">{heading}</div> | ||
<slot /> | ||
{ | ||
links && ( | ||
<div class="flex gap-6"> | ||
{links?.map((link) => ( | ||
<PrimaryLink href={link.href} text={link.text} /> | ||
))} | ||
</div> | ||
) | ||
} | ||
</div> | ||
</section> |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
import Layout from "../layouts/Layout.astro"; | ||
import "../styles/global.css"; | ||
import Layout from "@layouts/Layout.astro"; | ||
import "@styles/global.css"; | ||
--- | ||
|
||
<Layout title="Welcome to Whyuluvfootball" /> |
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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
{ | ||
"extends": "astro/tsconfigs/strict" | ||
} | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"@icons/*": ["src/assets/icons/*"], | ||
"@components/*": ["src/components/*"], | ||
"@layouts/*": ["src/layouts/*"], | ||
"@pages/*": ["src/pages/*"], | ||
"@styles/*": ["src/styles/*"] | ||
} | ||
} | ||
} |