chore: Updated images and header
b712ec01
4 file(s) · +20 −2
| 7 | 7 | const { text, className = "" } = Astro.props; |
|
| 8 | 8 | --- |
|
| 9 | 9 | ||
| 10 | + | <div> |
|
| 11 | + | ||
| 10 | 12 | <h1 class:list={[className]} data-decrypting-text data-text={text}> |
|
| 11 | 13 | {text} |
|
| 12 | 14 | </h1> |
|
| 15 | + | <slot /> |
|
| 16 | + | </div> |
|
| 13 | 17 | ||
| 14 | 18 | <script> |
|
| 15 | 19 | const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"; |
| 1 | 1 | --- |
|
| 2 | 2 | import { getFormattedDate } from "@/utils"; |
|
| 3 | 3 | import type { CollectionEntry } from "astro:content"; |
|
| 4 | + | import DecryptingHeader from "../DecryptingHeader.astro"; |
|
| 4 | 5 | ||
| 5 | 6 | interface Props { |
|
| 6 | 7 | content: CollectionEntry<"post">; |
|
| 12 | 13 | const postDate = getFormattedDate(content.data.publishDate); |
|
| 13 | 14 | --- |
|
| 14 | 15 | ||
| 15 | - | <h1 class="title mb-3 sm:mb-1">{content.data.title}</h1> |
|
| 16 | + | <DecryptingHeader text={content.data.title} className="title mb-3 sm:mb-1"> |
|
| 16 | 17 | <time datetime={datetime}>{postDate}</time> |
|
| 17 | 18 | { |
|
| 18 | 19 | !!content.data.tags?.length && ( |
|
| 49 | 50 | </div> |
|
| 50 | 51 | ) |
|
| 51 | 52 | } |
|
| 53 | + | </DecryptingHeader> |
|
| 52 | 54 | <p class="mt-8">{content.data.description}</p> |
|
| 65 | 65 | <div class="flex justify-center"> |
|
| 66 | 66 | <Image |
|
| 67 | 67 | src={aboutImg} |
|
| 68 | - | alt="A cartoon share looking at the 'Astro.build' logo" |
|
| 68 | + | alt="Steve pfp" |
|
| 69 | 69 | loading="eager" |
|
| 70 | + | class="animate-fade-in" |
|
| 70 | 71 | /> |
|
| 71 | 72 | </div> |
|
| 72 | 73 | <p>Here's some more info about me:</p> |
| 26 | 26 | accent: "var(--theme-accent)", |
|
| 27 | 27 | "accent-2": "var(--theme-accent-2)", |
|
| 28 | 28 | }, |
|
| 29 | + | keyframes: { |
|
| 30 | + | fadeIn: { |
|
| 31 | + | from: { opacity: 0 }, |
|
| 32 | + | to: { |
|
| 33 | + | opacity: 1, |
|
| 34 | + | }, |
|
| 35 | + | }, |
|
| 36 | + | }, |
|
| 37 | + | animation: { |
|
| 38 | + | "fade-in": "fadeIn 1s ease-in forwards", |
|
| 39 | + | }, |
|
| 29 | 40 | fontFamily: { |
|
| 30 | 41 | // Add any custom fonts here |
|
| 31 | 42 | sans: ["Commit Mono", ...fontFamily.sans], |