-
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.
- Loading branch information
Showing
11 changed files
with
1,173 additions
and
53 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,54 @@ | ||
--- | ||
import { Image } from "astro:assets"; | ||
import type { CollectionEntry } from "astro:content"; | ||
import Icon from "../Icons/Icon.astro"; | ||
// Make this so alt is required if bannerImage is present | ||
export interface Props { | ||
bannerImage: CollectionEntry<"project">["data"]["previewImage"]; | ||
deployment?: CollectionEntry<"project">["data"]["deployment"]; | ||
alt?: string; | ||
} | ||
const { bannerImage, alt, deployment } = Astro.props; | ||
--- | ||
|
||
<div class="relative group flex md:w-2/3"> | ||
{ | ||
bannerImage ? ( | ||
<> | ||
<Image | ||
class="md:object-cover md:object-left" | ||
src={bannerImage} | ||
alt={alt ?? null} | ||
/> | ||
{deployment && ( | ||
<div class="invisible group-hover:visible flex absolute z-40 w-full h-full top-0 bg-color-background-light bg-opacity-50 justify-center items-center"> | ||
<a href={deployment.url}> | ||
<Icon | ||
pack="tabler" | ||
name="external-link" | ||
iconClasses={["w-20", "h-20"]} | ||
/> | ||
</a> | ||
</div> | ||
)} | ||
</> | ||
) : ( | ||
<> | ||
{deployment && ( | ||
<div class="flex flex-col absolute z-40 w-full h-full top-0 bg-color-background-light bg-opacity-50 justify-center items-center"> | ||
<p>Click the link to navigate to the website.</p> | ||
<a href={deployment.url}> | ||
<Icon | ||
pack="tabler" | ||
name="external-link" | ||
iconClasses={["w-20", "h-20"]} | ||
/> | ||
</a> | ||
</div> | ||
)} | ||
</> | ||
) | ||
} | ||
</div> |
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
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 |
---|---|---|
|
@@ -17,7 +17,6 @@ techStack: | |
- "laravel" | ||
- "vite" | ||
- "typescript" | ||
- "Blade" | ||
- "postgresql" | ||
- "php" | ||
otherMembers: | ||
|
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,3 +1,11 @@ | ||
{ | ||
"extends": "astro/tsconfigs/strict" | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"jsx":"preserve", | ||
"plugins": [ | ||
{ | ||
"name": "@astrojs/ts-plugin" | ||
} | ||
] | ||
} | ||
} |