Skip to content

Commit

Permalink
Init copy
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Dec 23, 2024
1 parent 040bae3 commit 5775a71
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
Binary file added site/src/assets/images/headshot.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions site/src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
@apply bg-zinc-900 text-zinc-50 hover:brightness-125;
}

.btn-callout {
@apply hover:bg-zinc-850 bg-zinc-900 text-zinc-50 dark:bg-zinc-50 dark:text-zinc-900 hover:dark:bg-white;
}

.btn-secondary {
@apply hover:bg-zinc-100 dark:hover:bg-zinc-900;
}
Expand Down
28 changes: 28 additions & 0 deletions site/src/components/AnimationsOnTheWeb.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
import { Image } from 'astro:assets'
import headshot from '@/assets/images/headshot.jpeg'
import { ArrowUpRight } from 'lucide-react'
---

<aside class="border-faint my-16 border-y py-8">
<h2 class="not-prose text-lg font-medium">Learn to build components like NumberFlow</h2>
<blockquote class="text-pretty not-italic">
<!-- prettier-ignore -->
<p>Emil Kowalski's Animations on the Web course taught me everything I know about UI animation. I can't
imagine having built NumberFlow without it.</p>
</blockquote>
<p class="not-prose text-muted mb-6 flex items-center gap-2 text-sm">
<Image
src={headshot}
alt="Headshot of Maxwell Barvian"
width={64}
height={64}
class="size-6 rounded-full"
/>
Maxwell Barvian, NumberFlow creator
</p>
<a href="https://animations.dev" rel="external" target="_blank" class="btn btn-callout not-prose">
Take the course
<ArrowUpRight className="size-4" />
</a>
</aside>
3 changes: 2 additions & 1 deletion site/src/pages/[...framework]/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import StylingDemo from './_demos/Styling'
import Digits from './_Digits.astro'
import Match from '@/components/Match.astro'
import Meta from '@/components/Meta.astro'
import AnimationsOnTheWeb from '@/components/AnimationsOnTheWeb.astro'
import Type from '@/components/Type.astro'
import Heading from '@/components/Heading.astro'
import Union from '@/components/Union.astro'
Expand Down Expand Up @@ -62,7 +63,7 @@ import NumberFlow from '@number-flow/svelte'
`<NumberFlow>` will automatically transition when the `value` prop changes.
</Match>

---
<AnimationsOnTheWeb />

<Match>
<Heading value="Props" />
Expand Down

0 comments on commit 5775a71

Please sign in to comment.