config system + move api to frontend

This commit is contained in:
nicwands
2026-03-11 12:26:40 -04:00
parent efc9c73751
commit a1b339f668
26 changed files with 10833 additions and 1631 deletions

View File

@@ -0,0 +1,4 @@
const __viteBrowserExternal = {};
export {
__viteBrowserExternal as default
};

View File

@@ -7,18 +7,18 @@
--blue: #5B92FF;
}
:root .theme-light {
--theme-bg: #D5D5D5;
--theme-fg: #181818;
--theme-accent: #87FF5B;
--theme-link: #5B92FF;
}
:root .theme-dark {
--theme-bg: #181818;
--theme-fg: #D5D5D5;
--theme-accent: #87FF5B;
--theme-link: #5B92FF;
}
:root .theme-light {
--theme-bg: #D5D5D5;
--theme-fg: #181818;
--theme-accent: #87FF5B;
--theme-link: #5B92FF;
}
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
@@ -336,7 +336,8 @@ p,
a,
button,
input,
pre {
pre,
span {
font-family: var(--font-mono);
font-weight: 400;
line-height: 1;
@@ -363,7 +364,30 @@ button {
::-moz-selection {
color: var(--theme-bg);
background: var(--theme-fg);
}.theme-switcher {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.theme-switcher button {
background: var(--theme-bg);
display: block;
width: 14px;
height: 14px;
border-radius: 50%;
border: none;
cursor: pointer;
}
.theme-switcher button.active {
border: 1px solid var(--theme-fg);
}
.theme-switcher:hover {
color: var(--theme-fg) !important;
}.nav {
display: flex;
align-items: center;
gap: 10px;
padding-top: 9px;
color: var(--grey-100);
}.menu {
@@ -381,7 +405,6 @@ button {
padding-bottom: 10px;
}
.menu .menu-wrap .menu-item {
display: block;
padding: 16px 0;
text-align: center;
}
@@ -489,6 +512,7 @@ button {
}.note-row {
grid-template-columns: auto 1fr;
display: grid;
width: 100%;
gap: 20px;
cursor: pointer;
}
@@ -765,4 +789,38 @@ main.category .new-note {
display: block;
margin-top: 9px;
margin-bottom: 14px;
}main.search .back {
display: block;
opacity: 0.25;
margin-top: 9px;
}
main.search .input-wrap {
margin-top: 19px;
position: relative;
}
main.search .input-wrap input {
display: block;
width: 100%;
position: relative;
padding: 5px 15px 6px;
background: var(--theme-bg);
--clip-start: 16px;
clip-path: polygon(var(--clip-start) 1px, calc(100% - var(--clip-start)) 1px, calc(100% - 1.5px) 50%, calc(100% - var(--clip-start)) calc(100% - 1px), var(--clip-start) calc(100% - 1px), 1.5px 50%);
}
main.search .input-wrap::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--theme-fg);
--clip-start: 15px;
clip-path: polygon(var(--clip-start) 0, calc(100% - var(--clip-start)) 0, 100% 50%, calc(100% - var(--clip-start)) 100%, var(--clip-start) 100%, 0% 50%);
}
main.search .results {
margin-top: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}

File diff suppressed because one or more lines are too long

View File

@@ -8,8 +8,8 @@
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
/>
<script type="module" crossorigin src="./assets/index-B9wwyKue.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CiC_zCT0.css">
<script type="module" crossorigin src="./assets/index-CoqDP7Z2.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CVyE7-c9.css">
</head>
<body>