Skip to content

Commit 5f196ac

Browse files
committed
Project generation: npm create astro@latest -- --template mhyfritz/astro-landing-page
0 parents  commit 5f196ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+9335
-0
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.vscode
2+
package-lock.json
3+
dist

.prettierrc.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** @type {import("prettier").Config} */
2+
const config = {
3+
plugins: [
4+
"prettier-plugin-astro",
5+
"prettier-plugin-tailwindcss", // MUST come last
6+
],
7+
overrides: [
8+
{
9+
files: "*.astro",
10+
options: {
11+
parser: "astro",
12+
},
13+
},
14+
],
15+
};
16+
17+
export default config;

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode", "bradlc.vscode-tailwindcss"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2022-present Markus Hsi-Yang Fritz
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Astro Landing Page <picture><source media="(prefers-color-scheme: dark)" srcset="https://astro.build/assets/press/astro-icon-light.png"><source media="(prefers-color-scheme: light)" srcset="https://astro.build/assets/press/astro-icon-dark.png"><img align="right" valign="center" height="79" width="63" src="https://astro.build/assets/press/astro-icon-dark.png" alt="Astro logo" /></picture>
2+
3+
> An Astro + Tailwind CSS example/template for landing pages.
4+
5+
<div align="center">
6+
7+
[![Built with Astro](https://astro.badg.es/v2/built-with-astro/small.svg)](https://astro.build)
8+
9+
</div>
10+
11+
![Screenshots of Astro Landing Page](screenshots.jpg)
12+
13+
## Features
14+
15+
- 💨 Tailwind CSS for styling
16+
- 🎨 Themeable
17+
- CSS variables are defined in `src/styles/theme.css` and mapped to Tailwind classes (`tailwind.config.cjs`)
18+
- 🌙 Dark mode
19+
- 📱 Responsive (layout, images, typography)
20+
- ♿ Accessible (as measured by https://web.dev/measure/)
21+
- 🔎 SEO-enabled (as measured by https://web.dev/measure/)
22+
- 🔗 Open Graph tags for social media sharing
23+
- 💅 [Prettier](https://prettier.io/) setup for both [Astro](https://github.com/withastro/prettier-plugin-astro) and [Tailwind](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)
24+
25+
## Commands
26+
27+
| Command | Action |
28+
| :--------------------- | :------------------------------------------------ |
29+
| `npm install` | Install dependencies |
30+
| `npm run dev` | Start local dev server at `localhost:4321` |
31+
| `npm run build` | Build your production site to `./dist/` |
32+
| `npm run preview` | Preview your build locally, before deploying |
33+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
34+
| `npm run astro --help` | Get help using the Astro CLI |
35+
| `npm run format` | Format code with [Prettier](https://prettier.io/) |
36+
| `npm run clean` | Remove `node_modules` and build output |
37+
38+
## Credits
39+
40+
- astronaut image
41+
- source: https://github.com/withastro/astro-og-image; note: this repo is not available anymore
42+
- moon image
43+
- source: https://unsplash.com/@nasa
44+
- other than that, a lot of material (showcase data, copy) was taken from official Astro sources, in particular https://astro.build/blog/introducing-astro/ and https://github.com/withastro/astro.build

astro.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import tailwind from "@astrojs/tailwind";
2+
import icon from "astro-icon";
3+
import { defineConfig } from "astro/config";
4+
5+
// https://astro.build/config
6+
export default defineConfig({
7+
site: "https://astro-moon-landing.netlify.app/",
8+
integrations: [tailwind(), icon()],
9+
});

0 commit comments

Comments
 (0)