Skip to content

Commit

Permalink
liftoff
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 12, 2024
1 parent eb24b75 commit 5c0b217
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 8 deletions.
5 changes: 4 additions & 1 deletion astro/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import vercel from '@astrojs/vercel'
import {defineConfig} from 'astro/config'

import tailwind from '@astrojs/tailwind';

// https://astro.build/config
export default defineConfig({
adapter: vercel(),
})
integrations: [tailwind()],
})
4 changes: 3 additions & 1 deletion astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
"preview": "astro preview"
},
"dependencies": {
"@astrojs/tailwind": "^5.1.3",
"@astrojs/vercel": "^8.0.0",
"@sanity/client": "^6.23.0",
"astro": "^5.0.2",
"groq": "^3.64.2"
"groq": "^3.64.2",
"tailwindcss": "^3.4.16"
}
}
6 changes: 4 additions & 2 deletions astro/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SanityLive from '../components/SanityLive.astro'
---

<!doctype html>
<html lang="en">
<html lang="en" class="bg-theme text-theme transition-colors duration-1000 ease-in-out">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
Expand All @@ -14,7 +14,9 @@ import SanityLive from '../components/SanityLive.astro'
<ClientRouter />
</head>
<body>
<slot />
<div class="flex min-h-dvh flex-col items-center justify-evenly overflow-auto">
<slot />
</div>
<SanityLive server:defer />
</body>
</html>
Expand Down
3 changes: 1 addition & 2 deletions astro/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ const {data} = await sanityFetch({query: DEMO_QUERY, params: {slug}, lastLiveEve
---

<Layout>
<h1>{data || 'Astro'}</h1>
<Welcome />
<h1 class="text-balance text-4xl font-bold leading-tight tracking-tighter [view-transition-name:title] md:text-6xl lg:pr-8 lg:text-8xl">{data || 'Astro'}</h1>
</Layout>
8 changes: 8 additions & 0 deletions astro/tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}
26 changes: 24 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c0b217

Please sign in to comment.