diff options
| author | TomasBankauskas <tbdizainas@gmail.com> | 2025-03-20 15:16:16 +0200 |
|---|---|---|
| committer | TomasBankauskas <tbdizainas@gmail.com> | 2025-03-20 15:16:16 +0200 |
| commit | 8c543b6bb7ba29cfed559c3693b4149d1204ef78 (patch) | |
| tree | 78283952c019d5c0ede508c57640a31467b65bd2 /src/pages | |
| parent | f8b333c690e13a594ff97043856a16f6c3f6fd48 (diff) | |
removed daisyui
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/blobs/_components/NewShape.tsx | 10 | ||||
| -rw-r--r-- | src/pages/blobs/_components/StoredShapes.tsx | 10 | ||||
| -rw-r--r-- | src/pages/blobs/index.astro | 4 | ||||
| -rw-r--r-- | src/pages/edge/australia/index.astro | 6 | ||||
| -rw-r--r-- | src/pages/edge/not-australia/index.astro | 2 | ||||
| -rw-r--r-- | src/pages/image-cdn.astro | 33 | ||||
| -rw-r--r-- | src/pages/index.astro | 8 | ||||
| -rw-r--r-- | src/pages/revalidation.astro | 6 |
8 files changed, 41 insertions, 38 deletions
diff --git a/src/pages/blobs/_components/NewShape.tsx b/src/pages/blobs/_components/NewShape.tsx index a141177..00bedf9 100644 --- a/src/pages/blobs/_components/NewShape.tsx +++ b/src/pages/blobs/_components/NewShape.tsx @@ -41,17 +41,15 @@ export default function NewShape(props: Props) { return ( <> <h2 className="mb-4 text-xl text-center sm:text-xl">New Random Shape</h2> - <div className="w-full bg-white rounded-lg mb-6"> - <div className="min-h-14 p-4 border-b border-neutral-200 text-neutral-900 text-center"> - {blobData && <span>{blobData.parameters?.name}</span>} - </div> + <div className="w-full mb-6 bg-white rounded-lg"> + <div className="p-4 text-center text-gray-900 border-b border-gray-200 min-h-14">{blobData && <span>{blobData.parameters?.name}</span>}</div> <div className="p-4 aspect-square text-primary">{blobData && <ShapePreview {...blobData} />}</div> </div> <div className="flex flex-wrap justify-center gap-4"> - <button className="btn btn-primary" onClick={randomizeBlob}> + <button className="btn" onClick={randomizeBlob}> Randomize </button> - <button className="btn btn-primary" onClick={uploadBlob} disabled={uploadDisabled || wasUploaded || !blobData}> + <button className="btn" onClick={uploadBlob} disabled={uploadDisabled || wasUploaded || !blobData}> Upload </button> </div> diff --git a/src/pages/blobs/_components/StoredShapes.tsx b/src/pages/blobs/_components/StoredShapes.tsx index e870ef5..4c4ec10 100644 --- a/src/pages/blobs/_components/StoredShapes.tsx +++ b/src/pages/blobs/_components/StoredShapes.tsx @@ -45,15 +45,15 @@ export default function StoredShapes(props: Props) { <> <h2 className="mb-4 text-xl text-center sm:text-xl">Objects in Blob Store</h2> <div className="w-full bg-white rounded-lg"> - <div className="min-h-14 p-4 text-center"> + <div className="p-4 text-center min-h-14"> {keys?.length ? ( <div className="space-y-1"> {keys.map((keyName) => ( <button key={keyName} className={ - 'btn btn-ghost btn-sm btn-block text-neutral-900 font-normal' + - (selectedKey === keyName ? ' bg-base-content/20 pointer-events-none' : '') + 'inline-flex items-center justify-center w-full px-4 py-1.5 rounded-sm text-sm text-gray-900 cursor-pointer text-center transition hover:bg-complementary/20' + + (selectedKey === keyName ? ' bg-complementary/20 pointer-events-none' : '') } onClick={() => { getBlobByKey(keyName); @@ -64,11 +64,11 @@ export default function StoredShapes(props: Props) { ))} </div> ) : ( - <span className="text-neutral-900">Please upload some shapes!</span> + <span className="text-gray-900">Please upload some shapes!</span> )} </div> {previewData && ( - <div className="p-4 aspect-square text-primary border-t border-neutral-200"> + <div className="p-4 border-t border-gray-200 aspect-square text-primary"> <ShapePreview {...previewData} /> </div> )} diff --git a/src/pages/blobs/index.astro b/src/pages/blobs/index.astro index 11aa98a..00288b0 100644 --- a/src/pages/blobs/index.astro +++ b/src/pages/blobs/index.astro @@ -25,9 +25,9 @@ User uploads are disabled in this site. To run your own and try it out: addedChecksFunction={() => { return uploadDisabled ? uploadDisabledText : null; }} - class="mb-6" + class="mb-8" /> - <h1 class="mb-8">Blobs x Blobs</h1> + <h1 class="mb-10">Blobs x Blobs</h1> <Markdown content={explainer} class="mb-12" /> <ShapeEditor client:load /> </Layout> diff --git a/src/pages/edge/australia/index.astro b/src/pages/edge/australia/index.astro index 59965dd..5b1e29f 100644 --- a/src/pages/edge/australia/index.astro +++ b/src/pages/edge/australia/index.astro @@ -1,9 +1,9 @@ --- -import Layout from "../../../layouts/Layout.astro"; -import EdgeFunctionExplainer from "../../../components/EdgeFunctionExplainer.astro"; +import Layout from '../../../layouts/Layout.astro'; +import EdgeFunctionExplainer from '../../../components/EdgeFunctionExplainer.astro'; --- <Layout title="In Australia"> - <h1 class="mb-8">You are in Australia!</h1> + <h1 class="mb-10">You are in Australia!</h1> <EdgeFunctionExplainer /> </Layout> diff --git a/src/pages/edge/not-australia/index.astro b/src/pages/edge/not-australia/index.astro index eff39ed..0457c7e 100644 --- a/src/pages/edge/not-australia/index.astro +++ b/src/pages/edge/not-australia/index.astro @@ -4,6 +4,6 @@ import EdgeFunctionExplainer from '../../../components/EdgeFunctionExplainer.ast --- <Layout title="Not Australia"> - <h1 class="mb-8">You're not in Australia!</h1> + <h1 class="mb-10">You're not in Australia!</h1> <EdgeFunctionExplainer /> </Layout> diff --git a/src/pages/image-cdn.astro b/src/pages/image-cdn.astro index dbb8822..4875c1a 100644 --- a/src/pages/image-cdn.astro +++ b/src/pages/image-cdn.astro @@ -1,9 +1,11 @@ --- import { Image } from 'astro:assets'; +import corgi from '../assets/corgi.jpg'; import ContextAlert from '../components/ContextAlert.astro'; -import Layout from '../layouts/Layout.astro'; +import Diff from '../components/Diff.astro'; import Markdown from '../components/Markdown.astro'; -import corgi from '../assets/corgi.jpg'; +import Layout from '../layouts/Layout.astro'; + import { getNetlifyContext } from '../utils'; const sampleImage = '/images/corgi.jpg'; @@ -59,11 +61,12 @@ detection, so format is set to WebP. <Layout title="Image CDN"> <div class="flex flex-col gap-12 sm:gap-16"> - <section class="space-y-8"> + <section> <ContextAlert addedChecksFunction={(ctx) => { return ctx === 'dev' ? devModeWarning : null; }} + class="mb-8" /> <h1>Image CDN</h1> </section> @@ -79,31 +82,31 @@ detection, so format is set to WebP. </section> <section> <Markdown content={originalVsCdnSnippet} class="mb-8" /> - <div class="diff aspect-[3/2] rounded-lg border-2 border-white"> - <div class="diff-item-1"> + <Diff class="border-2 border-white rounded-lg image-diff aspect-3/2"> + <Fragment slot="item-1"> <div> <div class="relative"> - <span class="hidden absolute py-1.5 px-2.5 text-sm rounded-lg bg-neutral-900/70 top-2.5 right-2.5"></span> - <img srcset={sampleImageSrcSet} alt="Corgi" /> + <span class="hidden absolute py-1.5 px-2.5 text-sm rounded-md bg-gray-900/70 top-2.5 left-2.5"></span> + <img src={sampleImage} alt="Corgi" /> </div> </div> - </div> - <div class="diff-item-2"> + </Fragment> + <Fragment slot="item-2"> <div> <div class="relative"> - <span class="hidden absolute py-1.5 px-2.5 text-sm rounded-lg bg-neutral-900/70 top-2.5 left-2.5"></span> - <img src={sampleImage} alt="Corgi" /> + <span class="hidden absolute py-1.5 px-2.5 text-sm rounded-md bg-gray-900/70 top-2.5 right-2.5"></span> + + <img srcset={sampleImageSrcSet} alt="Corgi" /> </div> </div> - </div> - <div class="diff-resizer"></div> - </div> + </Fragment> + </Diff> </section> </div> </Layout> <script> - const images = document.querySelectorAll<HTMLImageElement>('.diff img'); + const images = document.querySelectorAll<HTMLImageElement>('.image-diff img'); images.forEach((image) => { if (image.complete) { diff --git a/src/pages/index.astro b/src/pages/index.astro index 372f69f..e93ae87 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -12,10 +12,10 @@ Any page or data can be rebuilt only when needed, without site visitors ever get --- <Layout title="Welcome to Astro."> - <ContextAlert class="mb-4" /> + <ContextAlert class="mb-8" /> <h1 class="mb-10">Netlify Platform Starter for Astro</h1> - <Markdown content={explainer} class="text-lg mb-10" /> - <p class="mb-8"> - <a href="https://docs.netlify.com/frameworks/astro/" class="btn btn-lg btn-primary sm:btn-wide">Read the Docs</a> + <Markdown content={explainer} class="mb-10 text-lg" /> + <p> + <a href="https://docs.netlify.com/frameworks/astro/" class="btn btn-lg sm:min-w-64">Read the Docs</a> </p> </Layout> diff --git a/src/pages/revalidation.astro b/src/pages/revalidation.astro index f7d4f6e..2deaabe 100644 --- a/src/pages/revalidation.astro +++ b/src/pages/revalidation.astro @@ -37,8 +37,10 @@ const exampleTag = tags[randomInt(0, tags.length - 1)]; <Layout title="Revalidation"> <h1 class="mb-10">Revalidating Server Content</h1> <Markdown content={explainer} class="mb-10" /> - <button class="revalidate-button btn btn-primary" data-tag={exampleTag}>Invalidate tag: {exampleTag}</button> - <button class="btn btn-primary" onclick="location.reload()">Reload page</button> + <div class="flex flex-wrap gap-4"> + <button class="revalidate-button btn" data-tag={exampleTag}>Invalidate tag: {exampleTag}</button> + <button class="btn" onclick="location.reload()">Reload page</button> + </div> </Layout> <script> |
