diff options
author | 2022-09-06 10:33:08 -0400 | |
---|---|---|
committer | 2022-09-06 10:33:08 -0400 | |
commit | a32bbe7289abf3f2cd896969ffc4bbb18e39177b (patch) | |
tree | 068da0f1bbde857322c783b807185505e56327dc /examples/subpath/src | |
parent | 29f044267f854fd4586a893346722a1dbf7a0180 (diff) | |
download | astro-a32bbe7289abf3f2cd896969ffc4bbb18e39177b.tar.gz astro-a32bbe7289abf3f2cd896969ffc4bbb18e39177b.tar.zst astro-a32bbe7289abf3f2cd896969ffc4bbb18e39177b.zip |
remove subpath and env-vars examples (#4606)
Diffstat (limited to 'examples/subpath/src')
-rw-r--r-- | examples/subpath/src/components/Time.jsx | 7 | ||||
-rw-r--r-- | examples/subpath/src/env.d.ts | 1 | ||||
-rw-r--r-- | examples/subpath/src/pages/index.astro | 34 | ||||
-rw-r--r-- | examples/subpath/src/styles/main.css | 3 |
4 files changed, 0 insertions, 45 deletions
diff --git a/examples/subpath/src/components/Time.jsx b/examples/subpath/src/components/Time.jsx deleted file mode 100644 index 9a89669cb..000000000 --- a/examples/subpath/src/components/Time.jsx +++ /dev/null @@ -1,7 +0,0 @@ -import React from 'react'; - -export default function () { - const date = new Date(); - const format = new Intl.DateTimeFormat('en-US'); - return <time>{format.format(date)}</time>; -} diff --git a/examples/subpath/src/env.d.ts b/examples/subpath/src/env.d.ts deleted file mode 100644 index f964fe0cf..000000000 --- a/examples/subpath/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// <reference types="astro/client" /> diff --git a/examples/subpath/src/pages/index.astro b/examples/subpath/src/pages/index.astro deleted file mode 100644 index 1a86a554b..000000000 --- a/examples/subpath/src/pages/index.astro +++ /dev/null @@ -1,34 +0,0 @@ ---- -import '../styles/main.css'; -import Time from '../components/Time.jsx'; - -// Full Astro Component Syntax: -// https://docs.astro.build/core-concepts/astro-components/ ---- - -<html lang="en"> - <head> - <meta charset="utf-8" /> - <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> - <meta name="viewport" content="width=device-width" /> - <meta name="generator" content={Astro.generator} /> - <title>Welcome to Astro</title> - </head> - - <body> - <h1>Welcome to <a href="https://astro.build/">Astro</a></h1> - - <main id="app"> - Today: <Time client:idle /> - </main> - - <article> - <h2>Animals</h2> - - <figure> - <img src="/blog/images/penguin.png" /> - <figcaption>A penguin</figcaption> - </figure> - </article> - </body> -</html> diff --git a/examples/subpath/src/styles/main.css b/examples/subpath/src/styles/main.css deleted file mode 100644 index 4f82208f2..000000000 --- a/examples/subpath/src/styles/main.css +++ /dev/null @@ -1,3 +0,0 @@ -#app { - color: tomato; -} |