From 94a65f204d28479557c45488985501659809d852 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Thu, 27 Feb 2025 21:15:48 +0200 Subject: [PATCH] re-redesign docs home page --- docs/src/app/components/Card.tsx | 6 +- docs/src/app/components/CopyableCode.tsx | 28 ----- docs/src/app/components/GridPattern.tsx | 3 +- docs/src/app/components/Section.tsx | 28 ----- docs/src/app/components/pages/home.tsx | 124 ++++++++++------------- docs/src/app/layout.tsx | 2 +- 6 files changed, 57 insertions(+), 134 deletions(-) delete mode 100644 docs/src/app/components/CopyableCode.tsx delete mode 100644 docs/src/app/components/Section.tsx diff --git a/docs/src/app/components/Card.tsx b/docs/src/app/components/Card.tsx index f0f4354..d2a17f8 100644 --- a/docs/src/app/components/Card.tsx +++ b/docs/src/app/components/Card.tsx @@ -10,12 +10,12 @@ export function Card({ description: string; }) { return ( -
- +
+ {name} -

+

{description}

diff --git a/docs/src/app/components/CopyableCode.tsx b/docs/src/app/components/CopyableCode.tsx deleted file mode 100644 index 20be183..0000000 --- a/docs/src/app/components/CopyableCode.tsx +++ /dev/null @@ -1,28 +0,0 @@ -"use client"; - -import { IconCopy, IconCopyCheck } from "@tabler/icons-react"; -import { useState } from "react"; - -export default function CopyableCode({ children }: { children: string }) { - const [success, setSuccess] = useState(false); - const handleClick = () => { - navigator.clipboard.writeText(children); - setSuccess(true); - setTimeout(() => setSuccess(false), 3000); - }; - return ( -
- -
- ); -} diff --git a/docs/src/app/components/GridPattern.tsx b/docs/src/app/components/GridPattern.tsx index d9e8bc1..d376fab 100644 --- a/docs/src/app/components/GridPattern.tsx +++ b/docs/src/app/components/GridPattern.tsx @@ -8,7 +8,7 @@ export function GridPattern() { return (
-
- -
- {children} -
-
-
- ); -} diff --git a/docs/src/app/components/pages/home.tsx b/docs/src/app/components/pages/home.tsx index 273b3d2..5e9992a 100644 --- a/docs/src/app/components/pages/home.tsx +++ b/docs/src/app/components/pages/home.tsx @@ -1,29 +1,28 @@ import React from "react"; -import "./styles.css" +import "./styles.css"; -import CopyableCode from "../CopyableCode"; import { Browser } from "../Browser"; import { Card } from "../Card"; import { IconAdjustments, IconArrowRight, + IconBarrierBlockOff, IconBolt, - IconBraces, - IconDevices, IconFeather, - IconLockCheck, + IconGitMerge, + IconPuzzle, + IconServer, + IconTerminal, } from "@tabler/icons-react"; import { GitHubIcon } from "nextra/icons"; import { GridPattern } from "../GridPattern"; import { GradientText } from "../GradientText"; -import { Section } from "../Section"; -import { Steps } from "nextra/components"; import Link from "next/link"; export default async function Home() { return ( <> -
+
@@ -37,7 +36,7 @@ export default async function Home() { blur={30} /> -

+

Cup is a small utility with a big impact. Simplify your container management workflow with fast and efficient update checking, a full-featured CLI and web interface, and more. @@ -54,7 +53,7 @@ export default async function Home() { Star on GitHub @@ -66,68 +65,49 @@ export default async function Home() {

-
- - - -
-
- - - -
-
- -
-

- Still not convinced? Try it out now! -

-
- -

Open a terminal and run

- - docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock - -p 8000:8000 ghcr.io/sergi0g/cup serve - -

Open the dashboard in your browser

-

- Visit{" "} - - http://localhost:8000 - {" "} - in your browser to try it out! -

- +
+
+
+ + + + + + + +
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx index daffcf4..778484a 100644 --- a/docs/src/app/layout.tsx +++ b/docs/src/app/layout.tsx @@ -20,7 +20,7 @@ const logo = ( ); const navbar = ( - + );