Skip to content

Commit

Permalink
feat: showcase demos (#55)
Browse files Browse the repository at this point in the history
* fix: scrolling

* feat: demos and existing work
  • Loading branch information
jolexxa authored Aug 22, 2024
1 parent 0f84b16 commit f8815d8
Show file tree
Hide file tree
Showing 13 changed files with 320 additions and 61 deletions.
14 changes: 14 additions & 0 deletions src/components/vgv_card/vgv-card-header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
---

<div>
<h2
class="text-2xl font-semibold lg:tracking-tight mt-4 text-center w-[100%]"
>
<slot name="title" />
</h2>
<p class="text-md my-6 text-center text-pretty">
<slot name="subtitle" />
</p>
</div>
28 changes: 28 additions & 0 deletions src/components/vgv_card/vgv-card.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
interface Props {
url: string;
}
const props = Astro.props;
---

<a href={props.url} class="contents">
<div
class="drop-shadow-lg rounded-lg overflow-hidden h-[100%] w-[100%] max-w-[478px] bg-[var(--vgv-card-bg)]"
>
<slot name="thumbnail" />
<div class="p-4">
<slot />
</div>
</div>
</a>

<style>
a,
a:visited,
a:hover,
a:active {
color: inherit;
text-decoration: none;
}
</style>
11 changes: 11 additions & 0 deletions src/components/vgv_hero/vgv-hero-breakout-vertical.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
---

<div class="overflow-x-clip">
<div class="max-w-screen-xl mx-auto px-8">
<div class="grid lg:grid-cols-3 place-items-center relative gap-4">
<slot />
</div>
</div>
</div>
14 changes: 14 additions & 0 deletions src/components/vgv_hero/vgv-hero-section-header.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
---

<div class="text-[var(--vgv-title)]">
<h2
class="text-4xl lg:text-5xl font-medium lg:tracking-tight mt-4 text-center w-[100%]"
>
<slot name="title" />
</h2>
<p class="max-w-4xl text-lg my-6 text-center text-pretty">
<slot name="subtitle" />
</p>
</div>
8 changes: 4 additions & 4 deletions src/components/vgv_scroll/vgv-scroll.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
</div>
</div>

<div class="mt-2 relative overflow-x-clip overflow-y-visible mx-8">
<div class="relative lg:flex gap-10 py-5 group overflow-visible">
<div class="relative overflow-x-clip overflow-y-visible mx-8">
<div class="relative lg:flex py-5 group overflow-visible">
<div class="absolute scroll-shadow left"></div>
<div class="absolute scroll-shadow right"></div>
<div
class="lg:motion-safe:animate-scroll w-auto py-5 overflow-x-auto flex flex-nowrap min-w-full shrink-0 items-stretch gap-0 overflow-y-visible"
class="lg:motion-safe:animate-scroll w-auto overflow-x-auto flex flex-nowrap min-w-full shrink-0 items-stretch gap-0 overflow-y-visible"
>
<slot name="default" />
</div>
<div
class="lg:motion-safe:animate-scroll hidden lg:motion-reduce:hidden lg:flex min-w-full shrink-0 items-stretch gap-0 py-5 overflow-y-visible"
class="lg:motion-safe:animate-scroll hidden lg:motion-reduce:hidden lg:flex min-w-full shrink-0 items-stretch gap-0 overflow-y-visible"
>
<slot name="default" />
</div>
Expand Down
Binary file added src/pages/home/demo_splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/home/demos/airplane_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/home/demos/airplane_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/home/demos/airplane_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/home/demos/financial_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/home/demos/vehicle_cockpit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f8815d8

Please sign in to comment.