|
| 1 | +--- |
| 2 | +import Layout from '../layouts/Layout.astro'; |
| 3 | +import Card from '../components/Card.astro'; |
| 4 | +--- |
| 5 | + |
| 6 | +<Layout title="Welcome to Astro."> |
| 7 | + <main> |
| 8 | + <h1>Welcome to <span class="text-gradient">Astro</span></h1> |
| 9 | + <p class="instructions"> |
| 10 | + Check out the <code>src/pages</code> directory to get started.<br /> |
| 11 | + <strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above. |
| 12 | + </p> |
| 13 | + <ul role="list" class="link-card-grid"> |
| 14 | + <Card |
| 15 | + href="https://docs.astro.build/" |
| 16 | + title="Documentation" |
| 17 | + body="Learn how Astro works and explore the official API docs." |
| 18 | + /> |
| 19 | + <Card |
| 20 | + href="https://astro.build/integrations/" |
| 21 | + title="Integrations" |
| 22 | + body="Supercharge your project with new frameworks and libraries." |
| 23 | + /> |
| 24 | + <Card |
| 25 | + href="https://astro.build/themes/" |
| 26 | + title="Themes" |
| 27 | + body="Explore a galaxy of community-built starter themes." |
| 28 | + /> |
| 29 | + <Card |
| 30 | + href="https://astro.build/chat/" |
| 31 | + title="Chat" |
| 32 | + body="Come say hi to our amazing Discord community. ❤️" |
| 33 | + /> |
| 34 | + </ul> |
| 35 | + </main> |
| 36 | +</Layout> |
| 37 | + |
| 38 | +<style> |
| 39 | + :root { |
| 40 | + --astro-gradient: linear-gradient(0deg, #4f39fa, #da62c4); |
| 41 | + } |
| 42 | + |
| 43 | + h1 { |
| 44 | + margin: 2rem 0; |
| 45 | + } |
| 46 | + |
| 47 | + main { |
| 48 | + margin: auto; |
| 49 | + padding: 1em; |
| 50 | + max-width: 60ch; |
| 51 | + } |
| 52 | + |
| 53 | + .text-gradient { |
| 54 | + font-weight: 900; |
| 55 | + background-image: var(--astro-gradient); |
| 56 | + -webkit-background-clip: text; |
| 57 | + -webkit-text-fill-color: transparent; |
| 58 | + background-size: 100% 200%; |
| 59 | + background-position-y: 100%; |
| 60 | + border-radius: 0.4rem; |
| 61 | + animation: pulse 4s ease-in-out infinite; |
| 62 | + } |
| 63 | + |
| 64 | + @keyframes pulse { |
| 65 | + 0%, |
| 66 | + 100% { |
| 67 | + background-position-y: 0%; |
| 68 | + } |
| 69 | + 50% { |
| 70 | + background-position-y: 80%; |
| 71 | + } |
| 72 | + } |
| 73 | + |
| 74 | + .instructions { |
| 75 | + line-height: 1.6; |
| 76 | + margin: 1rem 0; |
| 77 | + background: #4f39fa; |
| 78 | + padding: 1rem; |
| 79 | + border-radius: 0.4rem; |
| 80 | + color: var(--color-bg); |
| 81 | + } |
| 82 | + |
| 83 | + .instructions code { |
| 84 | + font-size: 0.875em; |
| 85 | + border: 0.1em solid var(--color-border); |
| 86 | + border-radius: 4px; |
| 87 | + padding: 0.15em 0.25em; |
| 88 | + } |
| 89 | + |
| 90 | + .link-card-grid { |
| 91 | + display: grid; |
| 92 | + grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr)); |
| 93 | + gap: 1rem; |
| 94 | + padding: 0; |
| 95 | + } |
| 96 | +</style> |
0 commit comments