diff --git a/public/blockmatic_screenshot_dark.png b/public/blockmatic_screenshot_dark.png index 37985e0..a1524d5 100644 Binary files a/public/blockmatic_screenshot_dark.png and b/public/blockmatic_screenshot_dark.png differ diff --git a/public/blockmatic_screenshot_light.png b/public/blockmatic_screenshot_light.png index b5b3f06..a3fb22e 100644 Binary files a/public/blockmatic_screenshot_light.png and b/public/blockmatic_screenshot_light.png differ diff --git a/public/oak_hanging_sign.png b/public/oak_hanging_sign.png deleted file mode 100644 index 7c502f0..0000000 Binary files a/public/oak_hanging_sign.png and /dev/null differ diff --git a/src/components/home/AppPreview.tsx b/src/components/home/AppPreview.tsx deleted file mode 100644 index b3a2006..0000000 --- a/src/components/home/AppPreview.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { useContext, useState } from "react"; -import { ThemeContext } from "@/context/Theme"; - -function AppPreview() { - const { isDark } = useContext(ThemeContext); - - const [leaving, setLeaving] = useState(true); - const [transform, setTransform] = useState(""); - - const onMouseEnter = () => { - setLeaving(false); - }; - - const onMouseLeave = () => { - setLeaving(true); - setTransform("rotateX(0deg) rotateY(0deg)"); - }; - - const onMouseMove = (e: React.MouseEvent) => { - const rect = e.currentTarget.getBoundingClientRect(); - - const x = e.clientX - rect.left; - const y = e.clientY - rect.top; - - const centerX = rect.width / 2; - const centerY = rect.height / 2; - - const rotateX = ((y - centerY) / centerY) * 10; - const rotateY = ((centerX - x) / centerX) * 10; - - setTransform(`rotateX(${rotateX}deg) rotateY(${rotateY}deg)`); - }; - - return ( - app preview - ); -} - -export default AppPreview; diff --git a/src/components/home/ImageComparison.tsx b/src/components/home/ImageComparison.tsx index 964a2e0..327ebac 100644 --- a/src/components/home/ImageComparison.tsx +++ b/src/components/home/ImageComparison.tsx @@ -13,7 +13,7 @@ function ImageComparison() { }; return ( -
+
original version of bliss Windows XP Background 'Bliss' image owned by Microsoft Corporation - -
- zoomed in version of blockmatic version of bliss - - zoomed in version of blockmatic version of bliss -
); } diff --git a/src/index.css b/src/index.css index 747a1a0..a4b3886 100644 --- a/src/index.css +++ b/src/index.css @@ -37,5 +37,5 @@ body { } .info-child { - @apply bg-white dark:bg-zinc-900 px-2 py-1 rounded shadow-xl w-fit border border-zinc-200 dark:border-zinc-800; + @apply bg-zinc-50 dark:bg-zinc-900 px-2 py-1 rounded shadow-xl w-fit border border-zinc-200 dark:border-zinc-800; } diff --git a/src/pages/IndexPage.tsx b/src/pages/IndexPage.tsx index 88ed1ae..21b8251 100644 --- a/src/pages/IndexPage.tsx +++ b/src/pages/IndexPage.tsx @@ -1,17 +1,22 @@ /// +import { useContext } from "react"; import { Link } from "react-router"; +import { ThemeContext } from "@/context/Theme"; + import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; -import BlockmaticLogo from "@/assets/blockmatic.svg?react"; -import GithubIcon from "@/assets/github.svg?react"; - import ThemeIcon from "@/components/home/ThemeIcon"; -import AppPreview from "@/components/home/AppPreview"; import ImageComparison from "@/components/home/ImageComparison"; +import BlockmaticLogo from "@/assets/blockmatic.svg?react"; +import GithubIcon from "@/assets/github.svg?react"; +import { ChevronRightIcon } from "lucide-react"; + function IndexPage() { + const { isDark } = useContext(ThemeContext); + return (
@@ -19,7 +24,7 @@ function IndexPage() {
@@ -32,37 +37,40 @@ function IndexPage() { screenshot -
- sign +
+

Create pixel art for Minecraft in minutes

+
+ Open images, draw, and export your art with{" "} + + block + matic + +
+ +
- - Create pixel art for Minecraft in minutes - -
+
+ app preview +
- - -
-
-

See the difference

-

- Blockmatic lets you transform images into pixel art schematics for Minecraft. Easily adjust the width and height, and select the blocks - you want to use with the dialog. -
-
- Use the comparsion slider adjacent featuring the Windows XP background (also known as Bliss) to see the feature in action. Move it to the - left to see the blockmatic version and move it to the right to see the original version. -
-
- Try it out in the editor by opening the File menu at the top then clicking the Open Image button. -

-
+
+

See the difference

+

Blockmatic lets you transform images into pixel art schematics for Minecraft

-
+