kinda start index page, add email verify and request route, add session updating
This commit is contained in:
parent
b24b1484cb
commit
cc4ebfbdd0
12 changed files with 287 additions and 0 deletions
BIN
public/assets/fonts/Fira_code/FiraCode-Regular.ttf
Normal file
BIN
public/assets/fonts/Fira_code/FiraCode-Regular.ttf
Normal file
Binary file not shown.
BIN
public/assets/fonts/Ubuntu/Ubuntu-Bold.ttf
Normal file
BIN
public/assets/fonts/Ubuntu/Ubuntu-Bold.ttf
Normal file
Binary file not shown.
BIN
public/assets/fonts/Ubuntu/Ubuntu-Regular.ttf
Normal file
BIN
public/assets/fonts/Ubuntu/Ubuntu-Regular.ttf
Normal file
Binary file not shown.
36
public/css/global.css
Normal file
36
public/css/global.css
Normal file
|
@ -0,0 +1,36 @@
|
|||
[data-theme="dark"] {
|
||||
--background: rgb(31, 30, 30);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-size: 16px;
|
||||
|
||||
background-color: var(--background);
|
||||
}
|
||||
|
||||
/* Fonts */
|
||||
@font-face {
|
||||
font-family: "Ubuntu";
|
||||
src: url("/public/assets/fonts/Ubuntu/Ubuntu-Regular.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Ubuntu Bold";
|
||||
src: url("/public/assets/fonts/Ubuntu/Ubuntu-Bold.ttf") format("truetype");
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Fira Code";
|
||||
src: url("/public/assets/fonts/Fira_code/FiraCode-Regular.ttf") format("truetype");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
8
public/js/global.js
Normal file
8
public/js/global.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
const htmlElement = document.documentElement;
|
||||
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
|
||||
const currentTheme =
|
||||
localStorage.getItem("theme") ||
|
||||
(prefersDarkScheme.matches ? "dark" : "light");
|
||||
|
||||
htmlElement.setAttribute("data-theme", currentTheme);
|
Loading…
Add table
Add a link
Reference in a new issue