mirror of
https://github.com/rjNemo/orbital-orbit
synced 2026-06-06 05:26:39 +00:00
feat: add styles
This commit is contained in:
parent
01274c92bc
commit
9385a8a39d
4 changed files with 30 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
|
||||
const pageTitle = "About Me"
|
||||
|
||||
const identity = {
|
||||
|
|
@ -23,6 +25,7 @@ const skills = [
|
|||
const happy = true
|
||||
const finished = true
|
||||
const goal = 3
|
||||
const skillColor = "navy"
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
|
|
@ -32,13 +35,13 @@ const goal = 3
|
|||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{pageTitle}</title>
|
||||
<style>
|
||||
<style define:vars={{skillColor }}>
|
||||
h1 {
|
||||
color: purple;
|
||||
font-size: 4rem;
|
||||
}
|
||||
.skill {
|
||||
color: green;
|
||||
color: var(--skillColor);
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
|
||||
const pageTitle = "Blog posts"
|
||||
|
||||
---
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
import "../styles/global.css"
|
||||
|
||||
const pageTitle = "Orbital Orbit"
|
||||
---
|
||||
|
||||
|
|
|
|||
21
src/styles/global.css
Normal file
21
src/styles/global.css
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
html {
|
||||
background-color: #f1f5f9;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
max-width: 80ch;
|
||||
padding: 1rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 1rem 0;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
Loading…
Reference in a new issue