diff --git a/frontend/apps/artcraft-website/index.html b/frontend/apps/artcraft-website/index.html index 42074f40b7..4df1d4dbc4 100644 --- a/frontend/apps/artcraft-website/index.html +++ b/frontend/apps/artcraft-website/index.html @@ -2,7 +2,7 @@ - ArtcraftWebsite + Artcraft diff --git a/frontend/apps/artcraft-website/public/images/3d-interface-preview.jpg b/frontend/apps/artcraft-website/public/images/3d-interface-preview.jpg new file mode 100644 index 0000000000..e6a5791961 Binary files /dev/null and b/frontend/apps/artcraft-website/public/images/3d-interface-preview.jpg differ diff --git a/frontend/apps/artcraft-website/src/app/app.tsx b/frontend/apps/artcraft-website/src/app/app.tsx index ff2fffa836..88449a245f 100644 --- a/frontend/apps/artcraft-website/src/app/app.tsx +++ b/frontend/apps/artcraft-website/src/app/app.tsx @@ -1,23 +1,20 @@ import { Route, Routes } from "react-router-dom"; -import Landing from "../pages/landing/landing"; -import Navbar from "../components/navbar/navbar"; +import Landing from "../pages/landing"; +import Download from "../pages/download"; +import Navbar from "../components/navbar"; +import Footer from "../components/footer"; + export function App() { return (
- {/*
-
    -
  • - Home -
  • -
  • - Page 2 -
  • -
-
*/} + } /> + } /> + +
); } diff --git a/frontend/apps/artcraft-website/src/components/download-button/download-button.tsx b/frontend/apps/artcraft-website/src/components/download-button/download-button.tsx new file mode 100644 index 0000000000..0e3295e2e8 --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/download-button/download-button.tsx @@ -0,0 +1,60 @@ +import { Button } from "@storyteller/ui-button"; +import { + faApple, + faWindows, + faLinux, +} from "@fortawesome/free-brands-svg-icons"; +import { isMobile, isWindows, isMacOs } from "react-device-detect"; +import { DOWNLOAD_LINKS } from "../../config/downloads"; + +interface DownloadButtonProps { + className?: string; +} + +export const DownloadButton = ({ className = "" }: DownloadButtonProps) => { + // Helper function to detect Linux + const isLinux = + !isWindows && + !isMacOs && + navigator.platform.toLowerCase().includes("linux"); + + const handleDownload = () => { + const downloadLink = isWindows + ? DOWNLOAD_LINKS.WINDOWS + : isMacOs + ? DOWNLOAD_LINKS.MACOS + : isLinux + ? DOWNLOAD_LINKS.LINUX + : null; + if (downloadLink) { + window.open(downloadLink, "_blank"); + } + }; + + const getIcon = () => { + if (isMobile) return undefined; + if (isWindows) return faWindows; + if (isMacOs) return faApple; + if (isLinux) return faLinux; + return undefined; + }; + + return ( + + ); +}; diff --git a/frontend/apps/artcraft-website/src/components/download-button/index.ts b/frontend/apps/artcraft-website/src/components/download-button/index.ts new file mode 100644 index 0000000000..2605d8dabd --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/download-button/index.ts @@ -0,0 +1 @@ +export * from "./download-button"; diff --git a/frontend/apps/artcraft-website/src/components/footer/footer.tsx b/frontend/apps/artcraft-website/src/components/footer/footer.tsx new file mode 100644 index 0000000000..ea9d724c35 --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/footer/footer.tsx @@ -0,0 +1,78 @@ +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { + faTiktok, + faDiscord, + faYoutube, +} from "@fortawesome/free-brands-svg-icons"; + +const navigation = { + main: [ + { name: "Home", href: "/" }, + { name: "Download", href: "/download" }, + ], + social: [ + { + name: "Discord", + href: "https://discord.gg/75svZP2Vje", + icon: (props: any) => , + }, + { + name: "YouTube", + href: "https://www.youtube.com/@OfficialArtCraftStudios", + icon: (props: any) => , + }, + { + name: "TikTok", + href: "https://www.tiktok.com/@artcraft.studios", + icon: (props: any) => , + }, + ], +}; + +export default function Example() { + return ( +
+
+ {/* */} + {/* */} +
+
+ {navigation.social.map((item) => ( + + {item.name} + + ))} +
+

+ © 2025 ArtCraft. All rights reserved. +

+
+
+
+ ); +} diff --git a/frontend/apps/artcraft-website/src/components/footer/index.ts b/frontend/apps/artcraft-website/src/components/footer/index.ts new file mode 100644 index 0000000000..7614ec3686 --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/footer/index.ts @@ -0,0 +1 @@ +export { default } from "./footer"; diff --git a/frontend/apps/artcraft-website/src/components/index.ts b/frontend/apps/artcraft-website/src/components/index.ts new file mode 100644 index 0000000000..c152451d62 --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/index.ts @@ -0,0 +1,3 @@ +export * from "./navbar"; +export * from "./footer"; +export * from "./download-button"; diff --git a/frontend/apps/artcraft-website/src/components/navbar/index.ts b/frontend/apps/artcraft-website/src/components/navbar/index.ts new file mode 100644 index 0000000000..8fb3806210 --- /dev/null +++ b/frontend/apps/artcraft-website/src/components/navbar/index.ts @@ -0,0 +1 @@ +export { default } from "./navbar"; diff --git a/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx b/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx index 3ca6c753b8..8128402c45 100644 --- a/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx +++ b/frontend/apps/artcraft-website/src/components/navbar/navbar.tsx @@ -6,40 +6,57 @@ import { import { faBars } from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Button } from "@storyteller/ui-button"; +import { twMerge } from "tailwind-merge"; +import { useEffect, useState } from "react"; -const navigation = [{ name: "Home", href: "#", current: true }]; - -function classNames(...classes: string[]) { - return classes.filter(Boolean).join(" "); -} +const navigation = [ + { name: "Home", href: "/", current: true }, + { name: "Download", href: "/download", current: false }, +]; export default function Navbar() { + const [scrolled, setScrolled] = useState(false); + + useEffect(() => { + const handleScroll = () => { + setScrolled(window.scrollY > 0); + }; + + window.addEventListener("scroll", handleScroll); + return () => window.removeEventListener("scroll", handleScroll); + }, []); + return (
- ArtCraft + + ArtCraft +
-
+
- +
{/* Mobile menu button */} @@ -71,7 +90,7 @@ export default function Navbar() { as="a" href={item.href} aria-current={item.current ? "page" : undefined} - className={classNames( + className={twMerge( item.current ? "bg-gray-900 text-white" : "text-gray-300 hover:bg-gray-700 hover:text-white", diff --git a/frontend/apps/artcraft-website/src/config/downloads.ts b/frontend/apps/artcraft-website/src/config/downloads.ts index 6a122688f8..555fec36c6 100644 --- a/frontend/apps/artcraft-website/src/config/downloads.ts +++ b/frontend/apps/artcraft-website/src/config/downloads.ts @@ -1,4 +1,5 @@ export const DOWNLOAD_LINKS = { WINDOWS: "https://getartcraft.com/", // Replace with actual Windows download link MACOS: "https://getartcraft.com/", // Replace with actual MacOS download link + LINUX: "https://getartcraft.com/", // Replace with actual Linux download link } as const; diff --git a/frontend/apps/artcraft-website/src/pages/download/download.tsx b/frontend/apps/artcraft-website/src/pages/download/download.tsx new file mode 100644 index 0000000000..e21ed8c470 --- /dev/null +++ b/frontend/apps/artcraft-website/src/pages/download/download.tsx @@ -0,0 +1,119 @@ +import { + faApple, + faWindows, + faLinux, +} from "@fortawesome/free-brands-svg-icons"; +import { faArrowDownToLine } from "@fortawesome/pro-solid-svg-icons"; +import { DownloadButton } from "../../components/download-button"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { Button } from "@storyteller/ui-button"; +import { DOWNLOAD_LINKS } from "../../config/downloads"; + +const Download = () => { + const systemRequirements = [ + { + os: "Windows", + icon: faWindows, + requirements: [ + "Windows 10 (64-bit) or newer", + "8GB RAM minimum", + "4GB available storage", + ], + }, + { + os: "macOS", + icon: faApple, + requirements: [ + "macOS 12.0 or newer", + "8GB RAM minimum", + "4GB available storage", + ], + }, + { + os: "Linux", + icon: faLinux, + requirements: [ + "Ubuntu 20.04 or newer", + "8GB RAM minimum", + "4GB available storage", + ], + }, + ]; + + return ( +
+
+ + {/* Hero Section */} +
+
+

+ Download ArtCraft +

+ +

+ Use ArtCraft to easily create AI-powered artwork on your computer, + with canvas editing and 3D scene composition. +

+ +
+ +
+ +
+ ArtCraft Interface Preview +
+ + {/* System Requirements */} +
+

System Requirements

+
+ {systemRequirements.map((system, index) => ( +
+
+ +

{system.os}

+
+
    + {system.requirements.map((req, idx) => ( +
  • + {req} +
  • + ))} +
+ +
+ ))} +
+
+
+
+
+ ); +}; + +export default Download; diff --git a/frontend/apps/artcraft-website/src/pages/download/index.ts b/frontend/apps/artcraft-website/src/pages/download/index.ts new file mode 100644 index 0000000000..0ed4d3e7df --- /dev/null +++ b/frontend/apps/artcraft-website/src/pages/download/index.ts @@ -0,0 +1 @@ +export { default } from "./download"; diff --git a/frontend/apps/artcraft-website/src/pages/index.ts b/frontend/apps/artcraft-website/src/pages/index.ts index 30ab41b994..ebe1ac77e5 100644 --- a/frontend/apps/artcraft-website/src/pages/index.ts +++ b/frontend/apps/artcraft-website/src/pages/index.ts @@ -1 +1,2 @@ export * from "./landing"; +export * from "./download"; diff --git a/frontend/apps/artcraft-website/src/pages/landing/index.ts b/frontend/apps/artcraft-website/src/pages/landing/index.ts index 30ab41b994..44201cad15 100644 --- a/frontend/apps/artcraft-website/src/pages/landing/index.ts +++ b/frontend/apps/artcraft-website/src/pages/landing/index.ts @@ -1 +1 @@ -export * from "./landing"; +export { default } from "./landing"; diff --git a/frontend/apps/artcraft-website/src/pages/landing/landing.tsx b/frontend/apps/artcraft-website/src/pages/landing/landing.tsx index 23f11c18fa..3c813839ef 100644 --- a/frontend/apps/artcraft-website/src/pages/landing/landing.tsx +++ b/frontend/apps/artcraft-website/src/pages/landing/landing.tsx @@ -1,42 +1,59 @@ import { Button } from "@storyteller/ui-button"; -import { faApple, faWindows } from "@fortawesome/free-brands-svg-icons"; -import { faDesktop } from "@fortawesome/pro-solid-svg-icons"; -import { isMobile, isWindows, isMacOs } from "react-device-detect"; -import { DOWNLOAD_LINKS } from "../../config/downloads"; +import { DownloadButton } from "../../components/download-button"; const Landing = () => { - const handleDownload = () => { - const downloadLink = isWindows - ? DOWNLOAD_LINKS.WINDOWS - : isMacOs - ? DOWNLOAD_LINKS.MACOS - : null; - if (downloadLink) { - window.open(downloadLink, "_blank"); - } - }; + // const features = [ + // { + // title: "Lorem ipsum dolor sit", + // description: + // "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt.", + // image: "/images/features/ai-creation.jpg", + // tag: "Core", + // }, + // { + // title: "Ut enim ad minim", + // description: + // "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea.", + // image: "/images/features/collaboration.jpg", + // tag: "Workflow", + // }, + // { + // title: "Duis aute irure dolor", + // description: + // "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla.", + // image: "/images/features/style-models.jpg", + // tag: "Tools", + // }, + // ]; - const features = [ + const installationSteps = [ { - title: "Lorem ipsum dolor sit", + step: "STEP 1", + title: "Download the app", description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt.", - image: "/images/features/ai-creation.jpg", - tag: "Core", + "Download and install our application to start creating amazing AI-powered content.", + button: { + text: "Download App", + className: + "rounded-lg bg-[#2D81FF] px-4 py-2 text-sm font-medium hover:bg-[#438AF6]", + variant: "primary" as const, + }, }, { - title: "Ut enim ad minim", + step: "STEP 2", + title: "Create an account", description: - "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea.", - image: "/images/features/collaboration.jpg", - tag: "Workflow", + "Sign up for an account to access all features and start your journey.", + button: { + text: "Sign up", + className: "text-sm font-medium", + variant: "secondary" as const, + }, }, { - title: "Duis aute irure dolor", - description: - "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla.", - image: "/images/features/style-models.jpg", - tag: "Tools", + step: "STEP 3", + title: "Start creating", + description: "Begin creating with our AI editor!", }, ]; @@ -45,7 +62,7 @@ const Landing = () => {
{/* Hero Section */}
-
+

@@ -66,23 +83,10 @@ const Landing = () => {

+ - @@ -106,13 +110,19 @@ const Landing = () => {
-
-

MAKE YOUR CREATIONS MORE FUN

-

- Use custom effects, AI-powered tools, and creative features to add - your personality to your artwork. Set your style and create your - own unique pieces that stand out. -

+
+
+

+ Draw it, Dream it, AI it +

+

+ Draw freely, arrange images, and create collages on our + intuitive 2D canvas. Once your composition is ready, use AI to + generate a polished artwork that matches your exact layout and + vision. Perfect for sketching ideas and turning them into + stunning finished pieces. +

+
@@ -120,14 +130,20 @@ const Landing = () => {
{/* Second Video Section */} -
-
-

UNLEASH YOUR CREATIVITY

-

- Transform your ideas into reality with our powerful AI tools and - creative features. Perfect for both beginners and professional - artists. -

+
+
+
+

+ Compose in 3D, Bring your ideas to life +

+

+ Compose your perfect 3D scene by arranging elements and + positioning your camera. Our AI understands your scene layout + and generates consistent, high-quality 3D artwork that matches + your composition, including maintaining character consistency + throughout your scenes. +

+
@@ -145,13 +161,10 @@ const Landing = () => {
- {/* Features Section */} -
-
+
+ {/* Features Section */} + {/*

Features

- {/* */}
@@ -168,57 +181,37 @@ const Landing = () => { />
- {/*
{item.tag}
*/}

{item.title}

{item.description}

))} -
+
*/} {/* Installation Steps Section */} -
-

- How to install Mira AI Editor -

+
+

How to install ArtCraft

-
-
- STEP 1 + {installationSteps.map((step, index) => ( +
+
+ {step.step} +
+

{step.title}

+

{step.description}

+ {step.button && ( + + )}
-

Download the app

-

- Download and install our application to start creating amazing - AI-powered content. -

- -
- -
-
- STEP 2 -
-

Create an account

-

- Sign up for an account to access all features and start your - journey. -

- -
- -
-
- STEP 3 -
-

Start creating

-

- Begin creating with our realtime AI editor! -

-
+ ))}
@@ -226,39 +219,4 @@ const Landing = () => { ); }; -const styles = ` - @keyframes float { - 0% { transform: translateY(0px); } - 50% { transform: translateY(-10px); } - 100% { transform: translateY(0px); } - } - - @keyframes pulse-slow { - 0% { opacity: 0.4; } - 50% { opacity: 0.6; } - 100% { opacity: 0.4; } - } - - .animate-float { - animation: float 6s ease-in-out infinite; - } - - .animate-pulse-slow { - animation: pulse-slow 4s ease-in-out infinite; - } - - .animate-fade-in { - animation: fadeIn 0.8s ease-out; - } - - @keyframes fadeIn { - from { opacity: 0; transform: translateY(10px); } - to { opacity: 1; transform: translateY(0); } - } -`; - -const styleSheet = document.createElement("style"); -styleSheet.innerText = styles; -document.head.appendChild(styleSheet); - export default Landing; diff --git a/frontend/apps/artcraft-website/src/styles.css b/frontend/apps/artcraft-website/src/styles.css index 163e012694..b479517c91 100644 --- a/frontend/apps/artcraft-website/src/styles.css +++ b/frontend/apps/artcraft-website/src/styles.css @@ -13,6 +13,6 @@ .bg-dots { background-image: radial-gradient(#ffffff25 1px, transparent 0); background-color: #1b1b1f; - background-size: 36px 36px; + background-size: 33px 33px; @apply bg-center; } diff --git a/frontend/apps/artcraft-website/tsconfig.app.json b/frontend/apps/artcraft-website/tsconfig.app.json index 44119b677f..2041fb2052 100644 --- a/frontend/apps/artcraft-website/tsconfig.app.json +++ b/frontend/apps/artcraft-website/tsconfig.app.json @@ -4,9 +4,7 @@ "outDir": "dist", "tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo", "jsx": "react-jsx", - "lib": [ - "dom" - ], + "lib": ["dom"], "types": [ "node", "@nx/react/typings/cssmodule.d.ts", @@ -35,7 +33,8 @@ "src/**/*.js", "src/**/*.jsx", "src/**/*.ts", - "src/**/*.tsx" + "src/**/*.tsx", + "src/components/footer" ], "references": [ {