From 9470cf164413bf05aa4af2269bf7219c7d643ddb Mon Sep 17 00:00:00 2001 From: limepotato Date: Mon, 17 Jun 2024 15:56:06 -0600 Subject: [PATCH] some css styling --- public/css/classes.css | 75 ++++++++++++++++++++++++++++++ public/css/mystyle.css | 41 +++++++++++++++++ src/components/Head.astro | 96 +-------------------------------------- src/pages/index.astro | 2 +- 4 files changed, 119 insertions(+), 95 deletions(-) create mode 100644 public/css/classes.css diff --git a/public/css/classes.css b/public/css/classes.css new file mode 100644 index 0000000..0197eca --- /dev/null +++ b/public/css/classes.css @@ -0,0 +1,75 @@ +.navbar-menu { + flex-grow: initial !important; + flex-shrink: initial !important; +} + +.navbar { + display: flex; + align-content: center; + justify-content: center; + padding-top: 7px; + padding-bottom: 7px; +} + +.navbar-item { + font-size: larger; + padding-right: 10px; + padding-left: 10px; +} + +.astro-a { + position: absolute; + top: -32px; + left: 50%; + transform: translatex(-50%); + width: 220px; + height: auto; + z-index: -1; +} + +.text-gradient { + background-image: var(--accent-gradient); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-size: 400%; + background-position: 0%; +} + +.instructions { + margin-bottom: 2rem; + border: 1px solid rgba(var(--accent-light), 25%); + background: linear-gradient(rgba(var(--accent-dark), 66%), rgba(var(--accent-dark), 33%)); + padding: 1.5rem; + border-radius: 8px; + text-align: center; +} + +.instructions code { + font-size: 0.8em; + font-weight: bold; + background: rgba(var(--accent-light), 12%); + color: rgb(var(--accent-light)); + border-radius: 4px; + padding: 0.3em 0.4em; + text-align: center; +} + +.instructions strong { + color: rgb(var(--accent-light)); +} + +.link-card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr)); + gap: 2rem; + padding: 0; +} + +.title { + font-size: 55px; + background-image: var(--accent-gradient); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-size: 400%; + background-position: 0%; +} \ No newline at end of file diff --git a/public/css/mystyle.css b/public/css/mystyle.css index e69de29..e4b32f7 100644 --- a/public/css/mystyle.css +++ b/public/css/mystyle.css @@ -0,0 +1,41 @@ +@import "classes.css"; + +:root { + background: repeat url("/assets/background.png"); + -webkit-background-size: repeat; + -moz-background-size: cover; + -o-background-size: cover; + background-size: repeat; + + --accent: 250, 179, 135; + --accent-light: 250, 221, 201; + --accent-dark: 149, 106, 81; + --accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%); + + font-family: system-ui, sans-serif; +} + +a:link { + color: #89b4fa +} + +a:visited { + color: #b4befe +} + +a:hover { + color: #89dceb +} + +hr { + width: 32%; + color: #6e738d; +} + +body { + color: #cdd6f4 +} + +p { + color: #cdd6f4 +} \ No newline at end of file diff --git a/src/components/Head.astro b/src/components/Head.astro index 683e99e..6c6875b 100755 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -6,97 +6,5 @@ - - - - - + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index dc253ed..86880cb 100755 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -10,7 +10,7 @@ import Card from "../components/Card.astro";

LimePotato

-

+

Hello World