summaryrefslogtreecommitdiff
path: root/examples/starter
diff options
context:
space:
mode:
Diffstat (limited to 'examples/starter')
-rw-r--r--examples/starter/.gitignore19
-rw-r--r--examples/starter/.npmrc2
-rw-r--r--examples/starter/.stackblitzrc6
-rw-r--r--examples/starter/.vscode/extensions.json4
-rw-r--r--examples/starter/.vscode/launch.json11
-rw-r--r--examples/starter/README.md43
-rw-r--r--examples/starter/astro.config.mjs4
-rw-r--r--examples/starter/package.json14
-rw-r--r--examples/starter/public/favicon.icobin4286 -> 0 bytes
-rw-r--r--examples/starter/public/logo.svg12
-rw-r--r--examples/starter/sandbox.config.json11
-rw-r--r--examples/starter/src/components/Logo.astro10
-rw-r--r--examples/starter/src/content/Tour.md28
-rw-r--r--examples/starter/src/pages/index.astro86
-rw-r--r--examples/starter/src/styles/global.css29
-rw-r--r--examples/starter/src/styles/home.css54
-rw-r--r--examples/starter/tsconfig.json15
17 files changed, 0 insertions, 348 deletions
diff --git a/examples/starter/.gitignore b/examples/starter/.gitignore
deleted file mode 100644
index 02f6e50b4..000000000
--- a/examples/starter/.gitignore
+++ /dev/null
@@ -1,19 +0,0 @@
-# build output
-dist/
-
-# dependencies
-node_modules/
-
-# logs
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-
-
-# environment variables
-.env
-.env.production
-
-# macOS-specific files
-.DS_Store
diff --git a/examples/starter/.npmrc b/examples/starter/.npmrc
deleted file mode 100644
index ef83021af..000000000
--- a/examples/starter/.npmrc
+++ /dev/null
@@ -1,2 +0,0 @@
-# Expose Astro dependencies for `pnpm` users
-shamefully-hoist=true
diff --git a/examples/starter/.stackblitzrc b/examples/starter/.stackblitzrc
deleted file mode 100644
index 43798ecff..000000000
--- a/examples/starter/.stackblitzrc
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "startCommand": "npm start",
- "env": {
- "ENABLE_CJS_IMPORTS": true
- }
-} \ No newline at end of file
diff --git a/examples/starter/.vscode/extensions.json b/examples/starter/.vscode/extensions.json
deleted file mode 100644
index 22a15055d..000000000
--- a/examples/starter/.vscode/extensions.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "recommendations": ["astro-build.astro-vscode"],
- "unwantedRecommendations": []
-}
diff --git a/examples/starter/.vscode/launch.json b/examples/starter/.vscode/launch.json
deleted file mode 100644
index d64220976..000000000
--- a/examples/starter/.vscode/launch.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "version": "0.2.0",
- "configurations": [
- {
- "command": "./node_modules/.bin/astro dev",
- "name": "Development server",
- "request": "launch",
- "type": "node-terminal"
- }
- ]
-}
diff --git a/examples/starter/README.md b/examples/starter/README.md
deleted file mode 100644
index a4bb5ed8e..000000000
--- a/examples/starter/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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/starter)
-
-> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
-
-## 🚀 Project Structure
-
-Inside of your Astro project, you'll see the following folders and files:
-
-```
-/
-├── public/
-│ ├── robots.txt
-│ └── favicon.ico
-├── src/
-│ ├── components/
-│ │ └── Tour.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.
-
-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).
diff --git a/examples/starter/astro.config.mjs b/examples/starter/astro.config.mjs
deleted file mode 100644
index 882e6515a..000000000
--- a/examples/starter/astro.config.mjs
+++ /dev/null
@@ -1,4 +0,0 @@
-import { defineConfig } from 'astro/config';
-
-// https://astro.build/config
-export default defineConfig({});
diff --git a/examples/starter/package.json b/examples/starter/package.json
deleted file mode 100644
index 4d322971d..000000000
--- a/examples/starter/package.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "@example/starter",
- "version": "0.0.1",
- "private": true,
- "scripts": {
- "dev": "astro dev",
- "start": "astro dev",
- "build": "astro build",
- "preview": "astro preview"
- },
- "devDependencies": {
- "astro": "^1.0.0-rc.6"
- }
-}
diff --git a/examples/starter/public/favicon.ico b/examples/starter/public/favicon.ico
deleted file mode 100644
index 578ad458b..000000000
--- a/examples/starter/public/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/examples/starter/public/logo.svg b/examples/starter/public/logo.svg
deleted file mode 100644
index d751556b2..000000000
--- a/examples/starter/public/logo.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-<svg width="193" height="256" fill="none" xmlns="http://www.w3.org/2000/svg">
- <style>
- #flame { fill: #FF5D01; }
- #a { fill: #000014; }
- @media (prefers-color-scheme: dark) {
- #a { fill: #fff; }
- }
- </style>
-
- <path id="a" fill-rule="evenodd" clip-rule="evenodd" d="M131.496 18.929c1.943 2.413 2.935 5.67 4.917 12.181l43.309 142.27a180.277 180.277 0 00-51.778-17.53L99.746 60.56a3.67 3.67 0 00-7.042.01l-27.857 95.232a180.224 180.224 0 00-52.01 17.557l43.52-142.281c1.989-6.502 2.983-9.752 4.927-12.16a15.999 15.999 0 016.484-4.798c2.872-1.154 6.271-1.154 13.07-1.154h31.085c6.807 0 10.211 0 13.085 1.157a16 16 0 016.488 4.806z" fill="url(#paint0_linear)"/>
- <path id="flame" fill-rule="evenodd" clip-rule="evenodd" d="M136.678 180.151c-7.14 6.105-21.39 10.268-37.804 10.268-20.147 0-37.033-6.272-41.513-14.707-1.602 4.835-1.962 10.367-1.962 13.902 0 0-1.055 17.355 11.016 29.426 0-6.268 5.081-11.349 11.349-11.349 10.743 0 10.731 9.373 10.721 16.977v.679c0 11.542 7.054 21.436 17.086 25.606a23.27 23.27 0 01-2.339-10.2c0-11.008 6.463-15.107 13.973-19.87 5.977-3.79 12.616-8.001 17.192-16.449a31.013 31.013 0 003.744-14.82c0-3.299-.513-6.479-1.463-9.463z" />
-</svg>
diff --git a/examples/starter/sandbox.config.json b/examples/starter/sandbox.config.json
deleted file mode 100644
index 9178af77d..000000000
--- a/examples/starter/sandbox.config.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "infiniteLoopProtection": true,
- "hardReloadOnChange": false,
- "view": "browser",
- "template": "node",
- "container": {
- "port": 3000,
- "startScript": "start",
- "node": "14"
- }
-}
diff --git a/examples/starter/src/components/Logo.astro b/examples/starter/src/components/Logo.astro
deleted file mode 100644
index ca45ef529..000000000
--- a/examples/starter/src/components/Logo.astro
+++ /dev/null
@@ -1,10 +0,0 @@
----
-// Export a "Props" interface to .
-export interface Props {
- height?: number;
- width?: number;
-}
-const { height = 80, width = 60 } = Astro.props;
----
-
-<img height={height} width={width} src="/logo.svg" alt="Astro logo" />
diff --git a/examples/starter/src/content/Tour.md b/examples/starter/src/content/Tour.md
deleted file mode 100644
index b995ba0c8..000000000
--- a/examples/starter/src/content/Tour.md
+++ /dev/null
@@ -1,28 +0,0 @@
-## 🚀 Project Structure
-
-Inside of your Astro project, you'll see the following folders and files:
-
-```
-├── public/
-│ ├── logo.svg
-│ └── favicon.ico
-├── src/
-│ ├── components/
-│ │ └── Logo.astro
-│ ├── content/
-│ │ └── Tour.md
-│ └── 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.
-
-Any static assets, like images, can be placed in the `public/` directory.
-
-## 👀 Want to learn more?
-
-Check out the [Astro Documentation](https://github.com/withastro/astro) site or jump into our [Discord server](https://astro.build/chat).
diff --git a/examples/starter/src/pages/index.astro b/examples/starter/src/pages/index.astro
deleted file mode 100644
index 4ec1c38a4..000000000
--- a/examples/starter/src/pages/index.astro
+++ /dev/null
@@ -1,86 +0,0 @@
----
-import { Content as TourContent } from "../content/Tour.md";
-import Logo from "../components/Logo.astro";
-import "../styles/global.css";
-import "../styles/home.css";
-/* ASTRO:COMPONENT_IMPORTS */
-
-// Component Script:
-// You can write any JavaScript/TypeScript that you'd like here.
-// It will run during the build, but never in the browser.
-// All variables are available to use in the HTML template below.
-let title = "My Astro Site";
-
-// Full Astro Component Syntax:
-// https://docs.astro.build/core-concepts/astro-components/
----
-
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width" />
- <title>{title}</title>
-
- <link rel="icon" type="image/x-icon" href="/favicon.ico" />
-
- <style>
- header {
- display: flex;
- flex-direction: column;
- gap: 1em;
- max-width: min(100%, 68ch);
- }
- article {
- padding-top: 2em;
- line-height: 1.5;
- display: flex;
- flex-direction: column;
- gap: 1em;
- max-width: 70ch;
- }
- .banner {
- text-align: center;
- font-size: 1.2rem;
- background: var(--color-light);
- padding: 1em 1.5em;
- padding-left: 0.75em;
- border-radius: 4px;
- }
- </style>
- <style is:global>
- pre {
- padding: 1rem;
- }
- </style>
- </head>
- <body>
- <main>
- <header>
- <div>
- <Logo width={60} height={80} />
- <h1>Welcome to <a href="https://astro.build/">Astro</a></h1>
- </div>
- </header>
-
- <article>
- <div class="banner">
- <p><strong>🧑‍🚀 Seasoned astronaut?</strong> Delete this template and have fun!</p>
- </div>
- <TourContent />
- </article>
-
- <!--
-
- You can also use imported framework components directly in your markup!
-
- Note: by default, these components are NOT interactive on the client.
- The `client:visible` directive tells Astro to make it interactive.
-
- See https://docs.astro.build/core-concepts/component-hydration/
-
- -->
-
- <!-- ASTRO:COMPONENT_MARKUP -->
- </main>
- </body>
-</html>
diff --git a/examples/starter/src/styles/global.css b/examples/starter/src/styles/global.css
deleted file mode 100644
index 8ef8122cb..000000000
--- a/examples/starter/src/styles/global.css
+++ /dev/null
@@ -1,29 +0,0 @@
-* {
- box-sizing: border-box;
- margin: 0;
-}
-
-:root {
- font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
- Apple Color Emoji, Segoe UI Emoji;
- font-size: 1rem;
- --user-font-scale: 1rem - 16px;
- font-size: clamp(0.875rem, 0.4626rem + 1.0309vw + var(--user-font-scale), 1.125rem);
-}
-
-body {
- padding: 4rem 2rem;
- width: 100%;
- min-height: 100vh;
- display: grid;
- justify-content: center;
- background: #f9fafb;
- color: #111827;
-}
-
-@media (prefers-color-scheme: dark) {
- body {
- background: #111827;
- color: #fff;
- }
-}
diff --git a/examples/starter/src/styles/home.css b/examples/starter/src/styles/home.css
deleted file mode 100644
index 147f95776..000000000
--- a/examples/starter/src/styles/home.css
+++ /dev/null
@@ -1,54 +0,0 @@
-:root {
- --font-mono: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
- 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco,
- 'Courier New', Courier, monospace;
- --color-light: #f3f4f6;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --color-light: #1f2937;
- }
-}
-
-a {
- color: inherit;
-}
-
-header > div {
- font-size: clamp(2rem, -0.4742rem + 6.1856vw, 2.75rem);
-}
-
-header > div {
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
-header h1 {
- font-size: 1em;
- font-weight: 500;
-}
-header img {
- width: 2em;
- height: 2.667em;
-}
-
-h2 {
- font-weight: 500;
- font-size: clamp(1.5rem, 1rem + 1.25vw, 2rem);
-}
-
-.counter {
- display: grid;
- grid-auto-flow: column;
- gap: 1em;
- font-size: 2rem;
- justify-content: center;
- padding: 2rem 1rem;
-}
-
-.counter > pre {
- text-align: center;
- min-width: 3ch;
-}
diff --git a/examples/starter/tsconfig.json b/examples/starter/tsconfig.json
deleted file mode 100644
index 4db6ee701..000000000
--- a/examples/starter/tsconfig.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "compilerOptions": {
- // Enable top-level await, and other modern ESM features.
- "target": "ESNext",
- "module": "ESNext",
- // Enable node-style module resolution, for things like npm package imports.
- "moduleResolution": "node",
- // Enable JSON imports.
- "resolveJsonModule": true,
- // Enable stricter transpilation for better output.
- "isolatedModules": true,
- // Add type definitions for our Astro runtime.
- "types": ["astro/client"]
- }
-}