画像アップロード機能のテストコードを追加

This commit is contained in:
studiokaiji
2023-10-25 20:14:01 +09:00
parent 7e4094f56d
commit 7abb2a1bf5
8 changed files with 36 additions and 31 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@@ -1,41 +1,15 @@
import { useEffect, useMemo } from "react";
import { H1 } from "./components/H1"; import { H1 } from "./components/H1";
import { Link } from "./components/Link"; import { Link } from "./components/Link";
function App() { function App() {
const htmlId = useMemo(() => window.location.pathname.split("/")[2], []);
const cssId = useMemo(
() => Array.from(document.styleSheets)[0].href?.split("/").slice(-1)[0],
[]
);
const jsId = useMemo(
() => Array.from(document.scripts)[0].src?.split("/").slice(-1)[0],
[]
);
useEffect(() => {
console.log(Array.from(document.styleSheets));
}, []);
return ( return (
<div className="font-body font-medium"> <div className="font-body font-medium p-7">
<div className="h-screen relative w-full bg-primary text-white space-y-7 p-7"> <div className="h-screen relative w-full text-white space-y-7">
<H1 className="!leading-[0.8]"> <H1 className="!leading-[0.8]">
Nostr Nostr
<br /> <br />
WebHost WebHost
</H1> </H1>
<div>
<p>
Relay URL:{" "}
<Link href="wss://hostr.cc">
wss://hostr.cc
</Link>
</p>
<p>HTML ID: {htmlId}</p>
<p>CSS ID: {cssId}</p>
<p>Javascript ID: {jsId}</p>
</div>
<div> <div>
<p> <p>
GitHub:{" "} GitHub:{" "}
@@ -56,10 +30,36 @@ function App() {
https://github.com/studiokaiji https://github.com/studiokaiji
</Link> </Link>
</p> </p>
<p>Lightning Address: floppystore07@walletofsatoshi.com</p>
</div>
<div className="text-6xl font-extrabold bg-rainbow-gradient bg-clip-text text-transparent">
CUTE OSTRICHES GALLERY
</div>
<div className="flex flex-wrap">
<img
src="/DALL·E Ostrich on Jamaican Beach.png"
width={512}
height={512}
/>
<img src="/DALL·E Ostrich Hero.png" width={512} height={512} />
<img
src="/DALL·E Ostrich Illustration (1).png"
width={512}
height={512}
/>
<img
src="/DALL·E Ostrich Illustration (2).png"
width={512}
height={512}
/>
<img
src="/DALL·E Ostrich Illustration.png"
width={512}
height={512}
/>
</div> </div>
<p className="absolute right-7 bottom-7">
😩{"<"}Hmmm... I want to ride an ostrich...
</p>
</div> </div>
</div> </div>
); );

View File

@@ -5,4 +5,5 @@
body { body {
cursor: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiM4RTMwRUIiLz4KPC9zdmc+Cg==, auto); cursor: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiM4RTMwRUIiLz4KPC9zdmc+Cg==, auto);
height: 100vh; height: 100vh;
@apply bg-primary;
} }

View File

@@ -9,6 +9,10 @@ export default {
colors: { colors: {
primary: "#8e30eb", primary: "#8e30eb",
}, },
backgroundImage: {
"rainbow-gradient":
"linear-gradient(to right,#e60000,#f39800,#fff100,#009944,#0068b7,#1d2088,#920783,#e60000)",
},
}, },
}, },
plugins: [], plugins: [],