Commit 9ca8653e01
Unsigned
Layout: unified · split
web/src/layouts/Layout.astro +19 −1
| @@ -1,10 +1,14 @@ | |||
| 1 | --- | 1 | --- |
| 2 | 2 | ||
| 3 | import NavBar from '@components/scafold/NavBar.astro'; | ||
| 4 | import Footer from '@components/scafold/Footer.astro'; | ||
| 5 | |||
| 3 | interface Props { | 6 | interface Props { |
| 4 | title: string; | 7 | title: string; |
| 8 | hideNav?: boolean; | ||
| 5 | } | 9 | } |
| 6 | 10 | ||
| 7 | const { title } = Astro.props; | 11 | const { title, hideNav } = Astro.props; |
| 8 | 12 | ||
| 9 | --- | 13 | --- |
| 10 | 14 | ||
| @@ -19,7 +23,9 @@ const { title } = Astro.props; | |||
| 19 | <title>{title}</title> | 23 | <title>{title}</title> |
| 20 | </head> | 24 | </head> |
| 21 | <body> | 25 | <body> |
| 26 | {!hideNav && <NavBar /> } | ||
| 22 | <slot /> | 27 | <slot /> |
| 28 | <Footer /> | ||
| 23 | </body> | 29 | </body> |
| 24 | </html> | 30 | </html> |
| 25 | 31 | ||
| @@ -44,5 +50,17 @@ const { title } = Astro.props; | |||
| 44 | html { | 50 | html { |
| 45 | background: var(--background); | 51 | background: var(--background); |
| 46 | background-size: 224px; | 52 | background-size: 224px; |
| 53 | ::selection { | ||
| 54 | background: var(--accent); | ||
| 55 | color: var(--accent-fg); | ||
| 56 | } | ||
| 57 | scroll-behavior: smooth; | ||
| 58 | } | ||
| 59 | body { | ||
| 60 | margin: 0; | ||
| 61 | min-height: 100vh; | ||
| 62 | background: #feecff; | ||
| 63 | background: -webkit-radial-gradient(circle, #feecff 0%, #e1e4fb 100%); | ||
| 64 | background: radial-gradient(circle, #feecff 0%, #e1e4fb 100%); | ||
| 47 | } | 65 | } |
| 48 | </style> | 66 | </style> |