From 82e5e6e183ac0f1b7340ddd0b1cdb436c0711678 Mon Sep 17 00:00:00 2001 From: PrototypeArea Date: Thu, 23 Jun 2022 23:27:36 -0400 Subject: [PATCH] Second commit (for vercel) --- README.md | 43 +--------------------------------------- jsconfig.json | 6 +++++- src/layouts/Layout.astro | 3 ++- src/pages/index.astro | 4 ++-- 4 files changed, 10 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index ccbd39d..103f189 100644 --- a/README.md +++ b/README.md @@ -1,42 +1 @@ -# Welcome to [Astro](https://astro.build) - -[![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). +# Tailwind Astro \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 7ac8180..2e15dbf 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -10,6 +10,10 @@ // Enable stricter transpilation for better output. "isolatedModules": true, // Add type definitions for our Vite runtime. - "types": ["vite/client"] + "types": ["vite/client"], + "baseUrl": ".", + "paths": { + "~/*": ["src/*"] + } } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index da65595..0a20c51 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -const { title } = Astro.props; +const { title = "", description = "" } = Astro.props; --- @@ -9,6 +9,7 @@ const { title } = Astro.props; {title} + diff --git a/src/pages/index.astro b/src/pages/index.astro index 0477107..3adf957 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,7 @@ --- -import Layout from '../layouts/Layout.astro'; +import Layout from '~/layouts/Layout.astro'; --- - +

Welcome to Tailwind Astro