update styling css file
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/png" href="/small_icon.png" />
|
<link rel="icon" type="image/png" href="/small_icon.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + React + TS</title>
|
<title>The VoD System</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
1
frontend/package-lock.json
generated
1
frontend/package-lock.json
generated
@@ -7,7 +7,6 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"hasInstallScript": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-oauth/google": "^0.12.2",
|
"@react-oauth/google": "^0.12.2",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview"
|
||||||
"postinstall": "flowbite-react patch"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-oauth/google": "^0.12.2",
|
"@react-oauth/google": "^0.12.2",
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
#root {
|
|
||||||
max-width: 1280px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
height: 6em;
|
|
||||||
padding: 1.5em;
|
|
||||||
will-change: filter;
|
|
||||||
transition: filter 300ms;
|
|
||||||
}
|
|
||||||
.logo:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
|
||||||
}
|
|
||||||
.logo.react:hover {
|
|
||||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes logo-spin {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (prefers-reduced-motion: no-preference) {
|
|
||||||
a:nth-of-type(2) .logo {
|
|
||||||
animation: logo-spin infinite 20s linear;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
padding: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.read-the-docs {
|
|
||||||
color: #888;
|
|
||||||
}
|
|
||||||
@@ -1,37 +1,24 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@plugin "flowbite-react/plugin/tailwindcss";
|
|
||||||
@source "../.flowbite-react/class-list.json";
|
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
/* ── Fonts ───────────────────────────────────────────────────────────── */
|
||||||
|
--font-body: "IBM Plex Sans", system-ui, sans-serif;
|
||||||
|
--font-data: "IBM Plex Mono", monospace;
|
||||||
|
|
||||||
/* Breakpoints */
|
/* ── Surfaces ────────────────────────────────────────────────────────── */
|
||||||
--breakpoint-3xl: 1920px;
|
--color-background: #F7F4EE;
|
||||||
|
--color-sidebar: #F2EEE6;
|
||||||
|
--color-card: #FDFBF7;
|
||||||
|
--color-fields: #F4F0E8;
|
||||||
|
|
||||||
--color-primary: oklch(0.55 0.21 254);
|
/* ── Ink ─────────────────────────────────────────────────────────────── */
|
||||||
--color-primary-pressed: oklch(0.45 0.21 254);
|
--color-text-primary: #2B2620;
|
||||||
--color-secondary: oklch(0.94 0.01 250);
|
--color-text-strong: #35302A;
|
||||||
--color-accent: oklch(0.68 0.20 288);
|
--color-text-body: #554D44;
|
||||||
--color-text: oklch(0.17 0.01 270);
|
|
||||||
--color-background: oklch(0.97 0.005 250);
|
|
||||||
--color-surface: oklch(1 0 0);
|
|
||||||
--color-border: oklch(0.91 0.008 250);
|
|
||||||
|
|
||||||
/* Easing */
|
|
||||||
--ease-fluid: cubic-bezier(0.3, 0, 0, 1);
|
|
||||||
--ease-snappy: cubic-bezier(0.2, 0, 0, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#range-slider .range-slider__range {
|
|
||||||
background: var(--color-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
#range-slider .range-slider__thumb {
|
|
||||||
background: var(--color-primary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
@@ -42,4 +29,12 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: var(--color-background);
|
background-color: var(--color-background);
|
||||||
|
font-family: "IBM Plex Sans", system-ui, sans-serif;
|
||||||
|
color: var(--color-text-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@utility font-heading {
|
||||||
|
font-family: "Newsreader", serif;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #2B2620;
|
||||||
|
}
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
import { defineConfig, loadEnv } from 'vite'
|
import { defineConfig, loadEnv } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import tailwindcss from '@tailwindcss/vite'
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
import flowbiteReact from "flowbite-react/plugin/vite";
|
|
||||||
|
|
||||||
export default defineConfig(({ mode }) => { // change to function form
|
export default defineConfig(({ mode }) => { // change to function form
|
||||||
const env = loadEnv(mode, process.cwd(), '') // load all env vars
|
const env = loadEnv(mode, process.cwd(), '') // load all env vars
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: [react(), tailwindcss(), flowbiteReact()],
|
plugins: [react(), tailwindcss()],
|
||||||
preview: {
|
preview: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user