summaryrefslogtreecommitdiff
path: root/examples/subpath
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2022-08-04 14:16:51 -0400
committerGravatar GitHub <noreply@github.com> 2022-08-04 14:16:51 -0400
commitf591150512903014461e4fa1be3bc53bd261af2f (patch)
treedfdad8d11b3379cc47618398281ebca6e1be91bc /examples/subpath
parent32580d4fdc6ba8bb9a7e39e0b2c001ab29b3b940 (diff)
downloadastro-f591150512903014461e4fa1be3bc53bd261af2f.tar.gz
astro-f591150512903014461e4fa1be3bc53bd261af2f.tar.zst
astro-f591150512903014461e4fa1be3bc53bd261af2f.zip
Audit examples templates (#3940)
* basics, framework-alpine, framework-solid, delete unused examples * framework-multiple * Remove non-standard file extensions, add missing .vscode folders * Remove robots.txt * Remove blog-multiple-authors * Rewrite components comments to be consistent * Update lockfile * Remove unnecessary usage of SCSS in subpath example * Fix props weirdness in portfolio example * Remove Lit from `framework-multiple` for now * Misc fixes * Update lockfile * I'm in lockfile hell, send help
Diffstat (limited to 'examples/subpath')
-rw-r--r--examples/subpath/package.json3
-rw-r--r--examples/subpath/public/robots.txt2
-rw-r--r--examples/subpath/src/pages/index.astro5
-rw-r--r--examples/subpath/src/styles/main.css3
-rw-r--r--examples/subpath/src/styles/main.scss5
5 files changed, 8 insertions, 10 deletions
diff --git a/examples/subpath/package.json b/examples/subpath/package.json
index e5af28bea..c702dc775 100644
--- a/examples/subpath/package.json
+++ b/examples/subpath/package.json
@@ -10,8 +10,7 @@
},
"devDependencies": {
"@astrojs/react": "^0.4.2",
- "astro": "^1.0.0-rc.6",
- "sass": "^1.52.2"
+ "astro": "^1.0.0-rc.6"
},
"dependencies": {
"react": "^18.1.0",
diff --git a/examples/subpath/public/robots.txt b/examples/subpath/public/robots.txt
deleted file mode 100644
index 1f53798bb..000000000
--- a/examples/subpath/public/robots.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-User-agent: *
-Disallow: /
diff --git a/examples/subpath/src/pages/index.astro b/examples/subpath/src/pages/index.astro
index 7ecb1f58d..22fd7582f 100644
--- a/examples/subpath/src/pages/index.astro
+++ b/examples/subpath/src/pages/index.astro
@@ -1,6 +1,9 @@
---
-import "../styles/main.scss";
+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">
diff --git a/examples/subpath/src/styles/main.css b/examples/subpath/src/styles/main.css
new file mode 100644
index 000000000..4f82208f2
--- /dev/null
+++ b/examples/subpath/src/styles/main.css
@@ -0,0 +1,3 @@
+#app {
+ color: tomato;
+}
diff --git a/examples/subpath/src/styles/main.scss b/examples/subpath/src/styles/main.scss
deleted file mode 100644
index 2118ed2a0..000000000
--- a/examples/subpath/src/styles/main.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-body {
- #app {
- color: tomato;
- }
-}