From 2a7c98bf6737befae7917425abbec449625f5c1a Mon Sep 17 00:00:00 2001 From: Shotaro Nakamura Date: Thu, 23 Nov 2023 06:05:32 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=88=E3=81=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 6 ++ bun.lockb | Bin 214420 -> 214420 bytes src/components/brands/Logo.astro | 35 +++++++++++ src/components/page/Footer.astro | 19 ++++++ src/components/page/Header.astro | 15 +++++ .../{Layout.astro => BaseLayout.astro} | 7 ++- src/layouts/PageLayout.astro | 14 +++++ src/pages/index.astro | 58 ++++++++++++++++-- 8 files changed, 146 insertions(+), 8 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/components/brands/Logo.astro create mode 100644 src/components/page/Footer.astro create mode 100644 src/components/page/Header.astro rename src/layouts/{Layout.astro => BaseLayout.astro} (84%) create mode 100644 src/layouts/PageLayout.astro diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ac425b5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "[astro]": { + "editor.tabSize": 2, + "editor.insertSpaces": true + } +} \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 7e1784b03f7c3d655aa2165f1c56ed8b1f0bf74a..5155fe32eef50cf6fb915d4ad3e8b619f93745ed 100755 GIT binary patch delta 31 mcmbQz%{!%=x1oh`3sbixJ7b)&o`IfG`y@-I?UO8-nRo!Awh0yh delta 31 jcmbQz%{!%=x1oh`3sbixI}-yKv`?~R+CIsWnTZDgkf;a9 diff --git a/src/components/brands/Logo.astro b/src/components/brands/Logo.astro new file mode 100644 index 0000000..456e260 --- /dev/null +++ b/src/components/brands/Logo.astro @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/page/Footer.astro b/src/components/page/Footer.astro new file mode 100644 index 0000000..c8e8aaf --- /dev/null +++ b/src/components/page/Footer.astro @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/src/components/page/Header.astro b/src/components/page/Header.astro new file mode 100644 index 0000000..398d200 --- /dev/null +++ b/src/components/page/Header.astro @@ -0,0 +1,15 @@ +--- +import Logo from '../brands/Logo.astro' +--- +
+
+
+ Schoolink +
+
+
+ Login +
+
+
+
diff --git a/src/layouts/Layout.astro b/src/layouts/BaseLayout.astro similarity index 84% rename from src/layouts/Layout.astro rename to src/layouts/BaseLayout.astro index e84c7b0..98c54ff 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,9 +1,10 @@ --- -interface Props { - title: string; +export interface Props { + title: string } +const { title } = Astro.props + -const { title } = Astro.props; --- diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro new file mode 100644 index 0000000..6d10ad7 --- /dev/null +++ b/src/layouts/PageLayout.astro @@ -0,0 +1,14 @@ +--- +import Footer from '../components/page/Footer.astro' +import Header from '../components/page/Header.astro' +import BaseLayout, { type Props as BaseProps } from './BaseLayout.astro' + +export interface Props extends BaseProps { + +} +--- + +
+ +