before ai
This commit is contained in:
1 parent
85d0d0be57
commit
be50463157
11 files changed
+205
-76
No files matched your search
+6
-51
@@ -10,6 +10,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
@@ -46,54 +52,3 @@ a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.charged-button {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem 1.25rem;
|
||||
min-width: 8rem;
|
||||
height: 2.75rem;
|
||||
border: 2px solid white;
|
||||
border-radius: 0.625rem;
|
||||
outline: none;
|
||||
isolation: isolate;
|
||||
cursor: pointer;
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
box-shadow: 0 0 0 1px hsl(0 0% 0% / 0.15);
|
||||
transition: box-shadow 120ms ease, transform 120ms ease;
|
||||
}
|
||||
|
||||
.charged-button:hover {
|
||||
box-shadow: 0 0 0 1px hsl(0 0% 0% / 0.45);
|
||||
}
|
||||
|
||||
.charged-button:active {
|
||||
transform: scale(0.97);
|
||||
}
|
||||
|
||||
.charged-button__label {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.charged-button-fill {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
opacity: 0.7;
|
||||
background: linear-gradient(120deg, #1ea, #2af, #e1f, #2af);
|
||||
background-size: 200% 200%;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
color-scheme: dark;
|
||||
}
|
||||
}
|
||||
|
||||
+16
-8
@@ -1,19 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import Image from "next/image";
|
||||
import styles from "./page.module.css";
|
||||
import ChargedButton from "@/components/ChargedButton";
|
||||
import MapView from "@/components/MapView";
|
||||
import WelcomeScreen from "@/components/screens/WelcomeScreen";
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage";
|
||||
import { PREF } from "@/utils/const";
|
||||
|
||||
export default function Main() {
|
||||
const [doTest, setDoTest] = useState(false);
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<main className={styles.main}>
|
||||
<ChargedButton
|
||||
const [ step, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
/*const [doTest, setDoTest] = useState(false);
|
||||
<ChargedButton
|
||||
onAction={() => {
|
||||
console.log("Click!");
|
||||
}}
|
||||
@@ -22,7 +21,16 @@ export default function Main() {
|
||||
<button onClick={() => {
|
||||
setDoTest(true);
|
||||
}}>test</button>
|
||||
{doTest && <MapView></MapView>}
|
||||
{doTest && <MapView></MapView>}*/
|
||||
|
||||
console.log("STEP", step);
|
||||
/*useEffect(() => {
|
||||
setValue("1");
|
||||
}, []);*/
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<main className={styles.main}>
|
||||
<WelcomeScreen />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
/// <reference lib="webworker" />
|
||||
import { defaultCache } from "@serwist/turbopack/worker";
|
||||
import type { PrecacheEntry, SerwistGlobalConfig } from "serwist";
|
||||
import { Serwist } from "serwist";
|
||||
import { Serwist, CacheFirst } from "serwist";
|
||||
|
||||
// This declares the value of `injectionPoint` to TypeScript.
|
||||
// `injectionPoint` is the string that will be replaced by the
|
||||
|
||||
Reference in new issue
Block a user