download page, buttons, and styling updates

This commit is contained in:
bflatastic committed 2025-04-23 13:21:05 +07:00
1 parent 1ebf411751
commit 055d9e93e3
18 files changed
+419 -180

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ArtcraftWebsite</title>
<title>Artcraft</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

+9 -12
View File
@@ -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 (
<div className="relative">
<Navbar />
{/* <div role="navigation">
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/page-2">Page 2</Link>
</li>
</ul>
</div> */}
<Routes>
<Route path="/" element={<Landing />} />
<Route path="/download" element={<Download />} />
</Routes>
<Footer />
</div>
);
}
@@ -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 (
<Button
className={`rounded-xl px-8 py-4 text-md transition-all duration-300 shadow-lg hover:shadow-blue-500/25 ${className}`}
disabled={isMobile || (!isWindows && !isMacOs && !isLinux)}
icon={getIcon()}
onClick={handleDownload}
>
{isMobile
? "Download on desktop"
: isWindows
? "Download for Windows"
: isMacOs
? "Download for MacOS"
: isLinux
? "Download for Linux"
: "Not available on your device"}
</Button>
);
};
@@ -0,0 +1 @@
export * from "./download-button";
@@ -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) => <FontAwesomeIcon icon={faDiscord} {...props} />,
},
{
name: "YouTube",
href: "https://www.youtube.com/@OfficialArtCraftStudios",
icon: (props: any) => <FontAwesomeIcon icon={faYoutube} {...props} />,
},
{
name: "TikTok",
href: "https://www.tiktok.com/@artcraft.studios",
icon: (props: any) => <FontAwesomeIcon icon={faTiktok} {...props} />,
},
],
};
export default function Example() {
return (
<footer className="bg-[#1F1F23]">
<div className="mx-auto max-w-7xl overflow-hidden px-6 py-16 sm:py-16 lg:px-8 flex flex-col gap-12 items-center">
{/* <Button
icon={faArrowDownToLine}
className="w-fit"
onClick={() => window.open("/download", "_self")}
>
Download ArtCraft
</Button> */}
{/* <nav
aria-label="Footer"
className="flex flex-wrap justify-center gap-x-8 gap-y-3 text-sm/6"
>
{navigation.main.map((item) => (
<a
key={item.name}
href={item.href}
className="text-gray-400 hover:text-white"
>
{item.name}
</a>
))}
</nav> */}
<div>
<div className="flex justify-center gap-x-10">
{navigation.social.map((item) => (
<a
key={item.name}
href={item.href}
target="_blank"
className="text-gray-400 hover:text-gray-300 transition-all"
>
<span className="sr-only">{item.name}</span>
<item.icon aria-hidden="true" className="size-6" />
</a>
))}
</div>
<p className="mt-10 text-center text-sm/6 text-gray-400">
&copy; 2025 ArtCraft. All rights reserved.
</p>
</div>
</div>
</footer>
);
}
@@ -0,0 +1 @@
export { default } from "./footer";
@@ -0,0 +1,3 @@
export * from "./navbar";
export * from "./footer";
export * from "./download-button";
@@ -0,0 +1 @@
export { default } from "./navbar";
@@ -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 (
<Disclosure
as="nav"
className="z-20 sticky top-0 left-0 w-full bg-[#1b1b1f]/70 backdrop-blur-lg"
className={twMerge(
"z-20 fixed top-0 left-0 w-full transition-colors duration-200",
scrolled ? "bg-[#1b1b1f]/70 backdrop-blur-lg" : "bg-transparent"
)}
>
<div className="mx-auto max-w-[1920px] sm:px-6 lg:px-8 px-6 md:px-16 xl:px-32">
<div className="flex h-16 justify-between">
<div className="flex">
<div className="flex shrink-0 items-center">
<img
alt="ArtCraft"
src="/images/artcraft-logo.png"
className="h-7 w-auto"
/>
<a href="/">
<img
alt="ArtCraft"
src="/images/artcraft-logo.png"
className="h-7 w-auto"
/>
</a>
</div>
<div className="hidden md:ml-6 md:flex md:items-center md:space-x-4">
<div className="hidden md:ml-7 md:flex md:items-center md:space-x-3">
{navigation.map((item) => (
<a
key={item.name}
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",
"rounded-md px-3 py-2 text-sm font-medium"
? "text-white/80 hover:text-white"
: "text-white/80 hover:text-white",
"rounded-md px-3 py-2 text-[15px] font-medium transition-all"
)}
>
{item.name}
@@ -49,7 +66,9 @@ export default function Navbar() {
</div>
<div className="flex items-center">
<div className="hidden md:ml-4 md:flex md:shrink-0 md:items-center">
<Button>Download</Button>
<Button onClick={() => window.open("/download", "_self")}>
Download
</Button>
</div>
<div className="mr-2 -ml-2 flex items-center md:hidden">
{/* 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",
@@ -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;
@@ -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 (
<div className="relative min-h-screen bg-[#101014] text-white bg-dots">
<div className="dotted-pattern absolute inset-0 z-[0] opacity-50" />
{/* Hero Section */}
<div className="relative flex overflow-hidden">
<div className="w-full flex flex-col items-center justify-center text-center pt-40 pb-20 px-10">
<h1 className="relative mb-10 font-bold text-5xl lg:text-7xl">
Download ArtCraft
</h1>
<p className="mb-12 max-w-xl text-lg lg:text-xl leading-relaxed text-gray-300">
Use ArtCraft to easily create AI-powered artwork on your computer,
with canvas editing and 3D scene composition.
</p>
<div className="flex flex-col gap-4 sm:flex-row sm:gap-6 mb-20">
<DownloadButton />
</div>
<div className="w-full max-w-7xl mb-20">
<img
src="/images/3d-interface-preview.jpg"
alt="ArtCraft Interface Preview"
className="w-full rounded-xl border-2 border-white/10"
/>
</div>
{/* System Requirements */}
<div className="w-full max-w-6xl mb-20">
<h2 className="text-3xl font-bold mb-10">System Requirements</h2>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
{systemRequirements.map((system, index) => (
<div
key={index}
className="bg-white/10 backdrop-blur-md rounded-xl p-8 flex flex-col gap-4 items-center"
>
<div className="flex items-center justify-center gap-4 mb-6">
<FontAwesomeIcon
icon={system.icon}
className="text-2xl text-white/80"
/>
<h3 className="text-2xl font-semibold">{system.os}</h3>
</div>
<ul className="space-y-3 mb-5">
{system.requirements.map((req, idx) => (
<li key={idx} className="text-gray-300">
{req}
</li>
))}
</ul>
<Button
className="w-fit"
onClick={() => {
const downloadLink =
system.os === "Windows"
? DOWNLOAD_LINKS.WINDOWS
: system.os === "macOS"
? DOWNLOAD_LINKS.MACOS
: DOWNLOAD_LINKS.LINUX;
window.open(downloadLink, "_blank");
}}
icon={faArrowDownToLine}
>
Download
</Button>
</div>
))}
</div>
</div>
</div>
</div>
</div>
);
};
export default Download;
@@ -0,0 +1 @@
export { default } from "./download";
@@ -1 +1,2 @@
export * from "./landing";
export * from "./download";
@@ -1 +1 @@
export * from "./landing";
export { default } from "./landing";
@@ -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 = () => {
<div className="dotted-pattern absolute inset-0 z-[0] opacity-50" />
{/* Hero Section */}
<div className="relative flex overflow-hidden xl:items-center xl:pt-0">
<div className="w-full flex flex-col items-center justify-center text-center pt-28 pb-20 px-10">
<div className="w-full flex flex-col items-center justify-center text-center pt-40 pb-20 px-10">
<div className="relative">
<div className="absolute -inset-1 rounded-lg blur-xl"></div>
<h1 className="relative mb-10 font-bold text-5xl lg:text-7xl">
@@ -66,23 +83,10 @@ const Landing = () => {
</p>
<div className="flex flex-col gap-4 sm:flex-row sm:gap-6">
<DownloadButton />
<Button
className="rounded-xl px-8 py-4 text-md bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 transition-all duration-300 shadow-lg hover:shadow-blue-500/25"
disabled={isMobile || (!isWindows && !isMacOs)}
icon={isMobile ? faDesktop : isWindows ? faWindows : faApple}
onClick={handleDownload}
>
{isMobile
? "Download on desktop"
: isWindows
? "Download for Windows"
: isMacOs
? "Download for MacOS"
: "Not available on your device"}
</Button>
<Button
className="rounded-xl px-8 py-4 text-md border-2 border-white/10 hover:border-white/20 bg-white/5 hover:bg-white/10 transition-all duration-300"
onClick={() => window.open("#learn-more", "_self")}
className="rounded-xl px-8 py-4 text-md border-2 border-white/10 hover:border-white/20 bg-white/5 hover:bg-white/10 transition-all duration-300 backdrop-blur-md"
onClick={() => window.open("/download", "_self")}
>
Learn more
</Button>
@@ -106,13 +110,19 @@ const Landing = () => {
<source src="/videos/artcraft-canvas-demo.mp4" type="video/mp4" />
</video>
</div>
<div className="lg:col-span-2 space-y-6">
<h2 className="text-5xl font-bold">MAKE YOUR CREATIONS MORE FUN</h2>
<p className="text-lg text-gray-400 leading-relaxed">
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.
</p>
<div className="lg:col-span-2 space-y-9">
<div className="space-y-6">
<h2 className="text-5xl font-bold leading-tight">
Draw it, Dream it, AI it
</h2>
<p className="text-lg text-gray-400 leading-relaxed">
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.
</p>
</div>
<Button className="rounded-lg px-5 py-3.5 text-md bg-[#2D81FF] hover:bg-[#438AF6]">
Start Creating
</Button>
@@ -120,14 +130,20 @@ const Landing = () => {
</div>
{/* Second Video Section */}
<div className="grid grid-cols-1 lg:grid-cols-5 items-center gap-16 mb-32 p-5 pl-16 bg-white/10 backdrop-blur-md rounded-[80px]">
<div className="lg:col-span-2 order-2 lg:order-1 space-y-6">
<h2 className="text-5xl font-bold">UNLEASH YOUR CREATIVITY</h2>
<p className="text-lg text-gray-400 leading-relaxed">
Transform your ideas into reality with our powerful AI tools and
creative features. Perfect for both beginners and professional
artists.
</p>
<div className="grid grid-cols-1 lg:grid-cols-5 items-center gap-16 p-5 pl-16 bg-white/10 backdrop-blur-md rounded-[80px]">
<div className="lg:col-span-2 order-2 lg:order-1 space-y-9">
<div className="space-y-6">
<h2 className="text-5xl font-bold leading-tight">
Compose in 3D, Bring your ideas to life
</h2>
<p className="text-lg text-gray-400 leading-relaxed">
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.
</p>
</div>
<Button className="rounded-lg px-5 py-3.5 text-md bg-[#2D81FF] hover:bg-[#438AF6]">
Learn More
</Button>
@@ -145,13 +161,10 @@ const Landing = () => {
</div>
</div>
{/* Features Section */}
<div className="relative z-10 mx-auto max-w-[1920px] px-4 py-20 sm:px-24 lg:px-32">
<div className="mb-8 flex items-center justify-between">
<div className="relative z-10 mx-auto max-w-[1920px] px-4 pt-20 pb-40 sm:px-24 lg:px-32">
{/* Features Section */}
{/* <div className="mb-8 flex items-center justify-between">
<h1 className="text-4xl font-bold">Features</h1>
{/* <button className="text-sm text-[#0096CE] hover:text-[#0084B5]">
View all
</button> */}
</div>
<div className="grid gap-6 md:grid-cols-3">
@@ -168,57 +181,37 @@ const Landing = () => {
/>
</div>
<div className="p-6">
{/* <div className="mb-4 text-sm text-[#0096CE]">{item.tag}</div> */}
<h3 className="mb-2 text-xl font-semibold">{item.title}</h3>
<p className="text-gray-400">{item.description}</p>
</div>
</div>
))}
</div>
</div> */}
{/* Installation Steps Section */}
<div className="mt-36">
<h1 className="mb-12 text-5xl font-bold">
How to install Mira AI Editor
</h1>
<div>
<h1 className="mb-12 text-5xl font-bold">How to install ArtCraft</h1>
<div className="grid gap-6 md:grid-cols-3">
<div className="rounded-xl bg-[#1C1C20] p-8">
<div className="mb-4 w-fit rounded-full bg-white/15 px-3 py-1 text-sm font-medium text-white">
STEP 1
{installationSteps.map((step, index) => (
<div
key={index}
className="rounded-xl bg-white/10 backdrop-blur-md p-8"
>
<div className="mb-4 w-fit rounded-full bg-white/15 px-3 py-1 text-sm font-medium text-white">
{step.step}
</div>
<h3 className="mb-4 text-2xl font-semibold">{step.title}</h3>
<p className="mb-6 text-gray-400">{step.description}</p>
{step.button && (
<Button
className={step.button.className}
variant={step.button.variant}
>
{step.button.text}
</Button>
)}
</div>
<h3 className="mb-4 text-2xl font-semibold">Download the app</h3>
<p className="mb-6 text-gray-400">
Download and install our application to start creating amazing
AI-powered content.
</p>
<Button className="rounded-lg bg-[#2D81FF] px-4 py-2 text-sm font-medium hover:bg-[#438AF6]">
Download App
</Button>
</div>
<div className="rounded-xl bg-[#1C1C20] p-8">
<div className="mb-4 w-fit rounded-full bg-white/15 px-3 py-1 text-sm font-medium text-white">
STEP 2
</div>
<h3 className="mb-4 text-2xl font-semibold">Create an account</h3>
<p className="mb-6 text-gray-400">
Sign up for an account to access all features and start your
journey.
</p>
<Button className="text-sm font-medium" variant="secondary">
Sign up
</Button>
</div>
<div className="rounded-xl bg-[#1C1C20] p-8">
<div className="mb-4 w-fit rounded-full bg-white/15 px-3 py-1 text-sm font-medium text-white">
STEP 3
</div>
<h3 className="mb-4 text-2xl font-semibold">Start creating</h3>
<p className="mb-6 text-gray-400">
Begin creating with our realtime AI editor!
</p>
</div>
))}
</div>
</div>
</div>
@@ -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;
@@ -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;
}
@@ -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": [
{