-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate to astro #998
Closed
Closed
migrate to astro #998
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
move all sveltekit implementation to sveltekit dir |
ryoppippi
force-pushed
the
feature/astro
branch
from
October 9, 2024 13:11
4df5322
to
d788aea
Compare
diff --git a/package.json b/package.json index 590fe0c..299117e 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,9 @@ "@core/pipe": "npm:@jsr/core__pipe@0.3.1", "@iconify-json/catppuccin": "^1.2.4", "@iconify-json/material-symbols-light": "^1.2.2", + "@iconify-json/ph": "^1.2.0", + "@iconify-json/solar": "^1.2.0", + "@iconify-json/system-uicons": "^1.2.0", "@ryoppippi/eslint-config": "npm:@jsr/ryoppippi__eslint-config@^0.0.23", "@ryoppippi/unocss-preset": "npm:@jsr/ryoppippi__unocss-preset@^1.0.3", "@std/collections": "npm:@jsr/std__collections@^1.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d4960eb..3fb4389 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,6 +48,15 @@ importers: '@iconify-json/material-symbols-light': specifier: ^1.2.2 version: 1.2.2 + '@iconify-json/ph': + specifier: ^1.2.0 + version: 1.2.0 + '@iconify-json/solar': + specifier: ^1.2.0 + version: 1.2.0 + '@iconify-json/system-uicons': + specifier: ^1.2.0 + version: 1.2.0 '@ryoppippi/eslint-config': specifier: npm:@jsr/ryoppippi__eslint-config@^0.0.23 version: '@jsr/ryoppippi__eslint-config@0.0.23(@typescript-eslint/utils@8.8.1(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3))(@vue/compiler-sfc@3.5.11)(astro-eslint-parser@1.0.3(typescript@5.6.3))(eslint-plugin-astro@1.2.4(eslint@9.12.0(jiti@1.21.6))(typescript@5.6.3))(eslint-plugin-format@0.1.2(eslint@9.12.0(jiti@1.21.6)))(eslint-plugin-svelte@2.44.1(eslint@9.12.0(jiti@1.21.6))(svelte@5.0.0-next.263))(eslint@9.12.0(jiti@1.21.6))(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.263))(svelte@5.0.0-next.263)(typescript@5.6.3)' @@ -688,6 +697,15 @@ packages: '@iconify-json/material-symbols-light@1.2.2': resolution: {integrity: sha512-Wey9XCGiZPK9zenZATmA0yz6jUK40c3WwgCOhxbtEbPji/IidgtAd3Oa57AfUcViC3M3AP5sHIb2FV2o5p1NEA==} + '@iconify-json/ph@1.2.0': + resolution: {integrity: sha512-013eLpgTmX1lACOuDnkuhC7gRHyYj9w/j8SyDmlyUYvsKQrwdRsv1otcXtwH3DevuDAzSkreeeRsCeez+gTyVA==} + + '@iconify-json/solar@1.2.0': + resolution: {integrity: sha512-xMspRoN2S2Op8mgjZHgiMJq2Xqo5oVlBp/1NICTeMByfePpkEKF67Fwh5KdBRF+SBey/cNLhjkTuHmKeSIEkog==} + + '@iconify-json/system-uicons@1.2.0': + resolution: {integrity: sha512-ZT3DX8FwfnP21Z6qBsdJlvi6qlSrtTaDEExAdo9XR34HN+FARzZIuZab12Y/UYyJgYoq/eCC5X4nT1hWz49U9g==} + '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} @@ -4188,6 +4206,18 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify-json/ph@1.2.0': + dependencies: + '@iconify/types': 2.0.0 + + '@iconify-json/solar@1.2.0': + dependencies: + '@iconify/types': 2.0.0 + + '@iconify-json/system-uicons@1.2.0': + dependencies: + '@iconify/types': 2.0.0 + '@iconify/types@2.0.0': {} '@iconify/utils@2.1.33': diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..b7a8048 --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,28 @@ +--- +type Props = { + title: string; +}; + +const { title } = Astro.props; +--- + +<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>{title}</title> + </head> + <body> + <main + max-w-4xl + mxa + my3 + px-8 + un-dark + > + <slot /> + </main> + </body> +</html> diff --git a/src/pages/index.astro b/src/pages/index.astro index 2d14107..926e3ea 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,16 +1,8 @@ --- +import Layout from '@/layouts/Layout.astro'; --- -<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>Astro</title> - </head> - <body> - <h1>Astro</h1> - </body> -</html> +<Layout title="ryoppippi.com"> + fuck you +</Layout>
It is better in some aspects. I just want to use fetch api in sync. Maybe SvelteKit provides it in the future? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I really love SvelteKit, but managing multiple pages are tough for me.