mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-17 06:44:28 +01:00
画像アップロード機能のテストコードを追加
This commit is contained in:
BIN
example/public/DALL·E Ostrich Hero.png
Normal file
BIN
example/public/DALL·E Ostrich Hero.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 983 KiB |
BIN
example/public/DALL·E Ostrich Illustration (1).png
Normal file
BIN
example/public/DALL·E Ostrich Illustration (1).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
BIN
example/public/DALL·E Ostrich Illustration (2).png
Normal file
BIN
example/public/DALL·E Ostrich Illustration (2).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
BIN
example/public/DALL·E Ostrich Illustration.png
Normal file
BIN
example/public/DALL·E Ostrich Illustration.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 MiB |
BIN
example/public/DALL·E Ostrich on Jamaican Beach.png
Normal file
BIN
example/public/DALL·E Ostrich on Jamaican Beach.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
@@ -1,41 +1,15 @@
|
||||
import { useEffect, useMemo } from "react";
|
||||
import { H1 } from "./components/H1";
|
||||
import { Link } from "./components/Link";
|
||||
|
||||
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 (
|
||||
<div className="font-body font-medium">
|
||||
<div className="h-screen relative w-full bg-primary text-white space-y-7 p-7">
|
||||
<div className="font-body font-medium p-7">
|
||||
<div className="h-screen relative w-full text-white space-y-7">
|
||||
<H1 className="!leading-[0.8]">
|
||||
Nostr
|
||||
<br />
|
||||
WebHost
|
||||
</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>
|
||||
<p>
|
||||
GitHub:{" "}
|
||||
@@ -56,10 +30,36 @@ function App() {
|
||||
https://github.com/studiokaiji
|
||||
</Link>
|
||||
</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>
|
||||
<p className="absolute right-7 bottom-7">
|
||||
😩{"<"}Hmmm... I want to ride an ostrich...
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
body {
|
||||
cursor: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiM4RTMwRUIiLz4KPC9zdmc+Cg==, auto);
|
||||
height: 100vh;
|
||||
@apply bg-primary;
|
||||
}
|
||||
@@ -9,6 +9,10 @@ export default {
|
||||
colors: {
|
||||
primary: "#8e30eb",
|
||||
},
|
||||
backgroundImage: {
|
||||
"rainbow-gradient":
|
||||
"linear-gradient(to right,#e60000,#f39800,#fff100,#009944,#0068b7,#1d2088,#920783,#e60000)",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
|
||||
Reference in New Issue
Block a user