diff options
author | 2022-09-07 18:16:54 -0400 | |
---|---|---|
committer | 2022-09-07 18:16:54 -0400 | |
commit | d6adb67ae4909d790aa44e1d52cfea3e8ad7663f (patch) | |
tree | 3b7dc0bd69da90ed290490ec5629898941e19a92 /examples/component/demo | |
parent | f165353e7abe9472a6096324154a4801fac46c66 (diff) | |
download | astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.tar.gz astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.tar.zst astro-d6adb67ae4909d790aa44e1d52cfea3e8ad7663f.zip |
chore: update component template (#4540)
Co-authored-by: Nate Moore <nate@astro.build>
Diffstat (limited to 'examples/component/demo')
-rw-r--r-- | examples/component/demo/astro.config.mjs | 10 | ||||
-rw-r--r-- | examples/component/demo/package.json | 16 | ||||
-rw-r--r-- | examples/component/demo/public/favicon.svg | 13 | ||||
-rw-r--r-- | examples/component/demo/src/pages/index.astro | 25 |
4 files changed, 0 insertions, 64 deletions
diff --git a/examples/component/demo/astro.config.mjs b/examples/component/demo/astro.config.mjs deleted file mode 100644 index 2d73a2807..000000000 --- a/examples/component/demo/astro.config.mjs +++ /dev/null @@ -1,10 +0,0 @@ -import { defineConfig } from 'astro/config'; - -// https://astro.build/config -export default defineConfig({ - vite: { - ssr: { - noExternal: ['@example/my-component'], - }, - }, -}); diff --git a/examples/component/demo/package.json b/examples/component/demo/package.json deleted file mode 100644 index 02a897a7a..000000000 --- a/examples/component/demo/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@example/my-component-demo", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "astro dev", - "start": "astro dev", - "build": "astro build", - "preview": "astro preview", - "astro": "astro" - }, - "devDependencies": { - "@example/my-component": "workspace:*", - "astro": "^1.1.7" - } -} diff --git a/examples/component/demo/public/favicon.svg b/examples/component/demo/public/favicon.svg deleted file mode 100644 index 0f3906297..000000000 --- a/examples/component/demo/public/favicon.svg +++ /dev/null @@ -1,13 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 36 36"> - <path fill="#000" d="M22.25 4h-8.5a1 1 0 0 0-.96.73l-5.54 19.4a.5.5 0 0 0 .62.62l5.05-1.44a2 2 0 0 0 1.38-1.4l3.22-11.66a.5.5 0 0 1 .96 0l3.22 11.67a2 2 0 0 0 1.38 1.39l5.05 1.44a.5.5 0 0 0 .62-.62l-5.54-19.4a1 1 0 0 0-.96-.73Z"/> - <path fill="url(#gradient)" d="M18 28a7.63 7.63 0 0 1-5-2c-1.4 2.1-.35 4.35.6 5.55.14.17.41.07.47-.15.44-1.8 2.93-1.22 2.93.6 0 2.28.87 3.4 1.72 3.81.34.16.59-.2.49-.56-.31-1.05-.29-2.46 1.29-3.25 3-1.5 3.17-4.83 2.5-6-.67.67-2.6 2-5 2Z"/> - <defs> - <linearGradient id="gradient" x1="16" x2="16" y1="32" y2="24" gradientUnits="userSpaceOnUse"> - <stop stop-color="#000"/> - <stop offset="1" stop-color="#000" stop-opacity="0"/> - </linearGradient> - </defs> - <style> - @media (prefers-color-scheme:dark){:root{filter:invert(100%)}} - </style> -</svg> diff --git a/examples/component/demo/src/pages/index.astro b/examples/component/demo/src/pages/index.astro deleted file mode 100644 index f0704e56b..000000000 --- a/examples/component/demo/src/pages/index.astro +++ /dev/null @@ -1,25 +0,0 @@ ---- -import * as Component from '@example/my-component'; ---- - -<html lang="en"> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width" /> - <meta name="generator" content={Astro.generator} /> - <title>Welcome to Astro</title> - <style is:global> - h { - display: block; - font-size: 2em; - font-weight: bold; - margin-block: 0.67em; - } - </style> - </head> - - <body> - <Component.Heading>Welcome to Astro</Component.Heading> - <Component.Button>Plain Button</Component.Button> - </body> -</html> |