Second commit (for vercel)

This commit is contained in:
PrototypeArea
2022-06-23 23:27:36 -04:00
parent c9c1b68562
commit 82e5e6e183
4 changed files with 10 additions and 46 deletions

View File

@ -1,42 +1 @@
# Welcome to [Astro](https://astro.build) # Tailwind Astro
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts.
Any static assets, like images, can be placed in the `public/` directory.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :---------------- | :------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

View File

@ -10,6 +10,10 @@
// Enable stricter transpilation for better output. // Enable stricter transpilation for better output.
"isolatedModules": true, "isolatedModules": true,
// Add type definitions for our Vite runtime. // Add type definitions for our Vite runtime.
"types": ["vite/client"] "types": ["vite/client"],
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
} }
} }

View File

@ -1,5 +1,5 @@
--- ---
const { title } = Astro.props; const { title = "", description = "" } = Astro.props;
--- ---
<!DOCTYPE html> <!DOCTYPE html>
@ -9,6 +9,7 @@ const { title } = Astro.props;
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="icon" type="image/x-icon" href="/favicon.ico" /> <link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>{title}</title> <title>{title}</title>
<meta name="description" content={description}>
</head> </head>
<body> <body>
<slot /> <slot />

View File

@ -1,7 +1,7 @@
--- ---
import Layout from '../layouts/Layout.astro'; import Layout from '~/layouts/Layout.astro';
--- ---
<Layout title="Welcome to Astro."> <Layout title="Tailwind Astro">
<main> <main>
<h1>Welcome to <span class="text-gradient">Tailwind Astro</span></h1> <h1>Welcome to <span class="text-gradient">Tailwind Astro</span></h1>
<p class="instructions"> <p class="instructions">