-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create MainLayout for xypnox theme and poem for poems
- Loading branch information
Showing
19 changed files
with
326 additions
and
223 deletions.
There are no files selected for viewing
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
File renamed without changes.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
import Footer from "../components/footer.astro"; | ||
import Navbar from "../components/nav/Navbar.astro"; | ||
import type { BaseLayoutProps } from "../dataTypes"; | ||
import BaseLayout from "./BaseLayout.astro"; | ||
import { themeCssVars } from "../theme"; | ||
import "../styles/content.css"; | ||
export interface Props extends BaseLayoutProps {} | ||
const props = Astro.props; | ||
--- | ||
|
||
<BaseLayout {...props} themeCssVars={themeCssVars}> | ||
{!props.hideNav && <Navbar />} | ||
<slot /> | ||
{!props.hideNav && <Footer />} | ||
</BaseLayout> | ||
|
||
<style is:global> | ||
html { | ||
font-family: var(--font-family); | ||
color: var(--text); | ||
background-color: var(--background); | ||
font-size: var(--font-size-base); | ||
min-height: 100vh; | ||
scroll-behavior: smooth; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 1rem; | ||
/* background-image: url("/nnnoise.svg"); */ | ||
min-height: 100vh; | ||
} | ||
|
||
a { | ||
color: var(--primary-color); | ||
} | ||
|
||
.content img { | ||
max-width: 100%; | ||
height: auto; | ||
margin: 0 auto; | ||
} | ||
|
||
pre.astro-code { | ||
padding: 1rem; | ||
font-size: 1rem; | ||
background-color: var(--surface) !important; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
margin: 1rem 0; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3 { | ||
line-height: 1.2; | ||
} | ||
|
||
hr { | ||
border: none; | ||
border-top: 2px dashed var(--border); | ||
width: 100%; | ||
height: 2px; | ||
margin: 3rem 0; | ||
} | ||
|
||
@keyframes backgroundMove { | ||
0% { | ||
background-position: 0% 50%; | ||
} | ||
50% { | ||
background-position: 100% 50%; | ||
} | ||
100% { | ||
background-position: 0% 50%; | ||
} | ||
} | ||
|
||
.text-gradient-fx:hover { | ||
background: var(--animated-gradient); | ||
background-size: 200% 200%; | ||
animation: backgroundMove 3s ease infinite; | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
} | ||
|
||
.text-gradient-fx-constant { | ||
background: var(--animated-gradient); | ||
background-size: 200% 200%; | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
animation: backgroundMove 3s ease infinite; | ||
} | ||
</style> |
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
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
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
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
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
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
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
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
Oops, something went wrong.