Skip to content

Commit af64c97

Browse files
committed
feat() changed website approach
1 parent 9e447a5 commit af64c97

File tree

5 files changed

+73
-74
lines changed

5 files changed

+73
-74
lines changed

public/bg.webp

25.8 KB
Loading

src/components/organism/Header.tsx

Lines changed: 71 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,79 @@
1-
import LetterGlitch from "@/components/molecules/LetterGlitch";
1+
import CopyBlock from "../atoms/CopyBlock";
2+
import Image from "next/image";
3+
import ShieldsBadge from "@/components/atoms/ShieldsBadge";
24

5+
const BADGES = [
6+
{
7+
alt: "Version",
8+
src: "https://img.shields.io/badge/version-1.3.1-blue.svg",
9+
href: "https://github.com/keyyard/create-mc-bedrock-cli",
10+
},
11+
{
12+
alt: "Node.js",
13+
src: "https://img.shields.io/badge/Node.js-18%2B-green.svg",
14+
href: "https://nodejs.org/",
15+
},
16+
{
17+
alt: "License",
18+
src: "https://img.shields.io/badge/license-MIT-orange.svg",
19+
href: "https://github.com/Keyyard/create-mc-bedrock-cli/blob/main/LICENSE",
20+
},
21+
];
322
const Header: React.FC = () => (
4-
<header className="flex flex-col items-center text-center w-full">
5-
<div className="h-[60vh] relative block w-full">
6-
<div className="absolute inset-0 w-full h-full z-15">
7-
<LetterGlitch
8-
glitchColors={["#2b4539", "#61dca3", "#61b3dc"]}
9-
glitchSpeed={100}
10-
centerVignette={true}
11-
outerVignette={false}
12-
smooth={true}
13-
/>
23+
<header className="flex flex-col items-center text-center w-full min-h-[60vh] bg-emerald-800/20 relative overflow-hidden" id="start">
24+
<Image
25+
src="/bg.webp"
26+
alt="Keyyard BedrockCLI bg"
27+
fill
28+
style={{ mixBlendMode: "overlay" }}
29+
className="object-cover object-center opacity-40 pointer-events-none select-none z-0"
30+
priority
31+
/>
32+
<div className="flex flex-col items-center justify-center h-full py-16 z-10 relative">
33+
<h1 className="text-4xl md:text-5xl font-extrabold mb-2 text-white drop-shadow-lg">
34+
Create MC Bedrock CLI
35+
</h1>
36+
<p className="text-md font-semibold text-gray-300 mb-2">
37+
The Fastest Way to Start Minecraft Bedrock Addon Development
38+
</p>
39+
<p className="text-base text-gray-400 mb-8 max-w-2xl">
40+
Tired of manually setting up Minecraft Bedrock workspaces?<br />
41+
With <span className="font-semibold">create-mc-bedrock</span>, you can bootstrap your next project in seconds, using official Microsoft samples and fresh manifest UUIDs every time.
42+
</p>
43+
<a
44+
href="#requirements"
45+
className="inline-block w-[300px] py-4 mb-6 rounded-full bg-emerald-600 text-white text-xl font-bold shadow-lg hover:bg-emerald-700 transition min-w-[260px]"
46+
>
47+
Get Started
48+
</a>
49+
<div className="mb-8 flex text-left">
50+
<div className="inline-block w-[300px]">
51+
<CopyBlock code="npx create-mc-bedrock" />
52+
</div>
1453
</div>
15-
<div className="absolute inset-0 flex flex-col items-center justify-center z-15 mix-blend-color-dodge">
16-
<h1 className="text-7xl md:text-8xl font-extrabold mb-4">CREATE MC BEDROCK CLI</h1>
54+
<div className="flex flex-wrap gap-2 justify-center mt-2">
55+
{BADGES.map((badge) => (
56+
<ShieldsBadge key={badge.alt} {...badge} />
57+
))}
58+
</div>
59+
<div className="flex flex-wrap gap-2 justify-center mt-2">
60+
<a
61+
href="https://github.com/keyyard/create-mc-bedrock-cli"
62+
target="_blank"
63+
rel="noopener noreferrer"
64+
className="inline-block"
65+
>
66+
<Image
67+
src="https://img.shields.io/github/stars/keyyard/create-mc-bedrock-cli"
68+
alt="GitHub Stars"
69+
className="inline"
70+
width={100}
71+
height={50}
72+
/>
73+
</a>
1774
</div>
1875
</div>
19-
<p className="text-xs text-gray-500 pt-2">
20-
Tip: Squint your eyes.
21-
</p>
2276
</header>
2377
);
2478

25-
export default Header;
79+
export default Header;

src/components/organism/StartSection.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/pages/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Header from "@/components/organism/Header";
2-
import StartSection from "@/components/organism/StartSection";
32
import WhyUseSection from "@/components/organism/WhyUseSection";
43
import HowItWorksSection from "@/components/organism/HowItWorksSection";
54
import ShowcaseSection from "@/components/organism/ShowcaseSection";
@@ -18,13 +17,12 @@ export default function Home() {
1817
<Header />
1918
<SideNavbar />
2019
<main className="flex flex-col gap-2 items-center w-full">
21-
<section id="start" className="w-full pt-4 pb-2"><StartSection /></section>
2220
<section id="testimonials" className="w-full px-2 py-2"><TestimonialsSection /></section>
21+
<section id="requirements" className="w-full px-2 py-2"><RequirementsSection /></section>
2322
<section id="why-use" className="w-full px-2 py-2 pb-2"><WhyUseSection /></section>
2423
<section id="how-it-works" className="w-full px-2 py-2"><HowItWorksSection /></section>
2524
<section id="showcase" className="w-full px-2 py-2"><ShowcaseSection /></section>
2625
<section id="features" className="w-full px-2 py-2"><FeaturesSection /></section>
27-
<section id="requirements" className="w-full px-2 py-2"><RequirementsSection /></section>
2826
<section id="pro-tips" className="w-full px-2 py-2"><ProTipsSection /></section>
2927
<section id="contributing" className="w-full px-2 py-2"><ContributingSection /></section>
3028
</main>

src/styles/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:root {
55
--background: #0a0a0a;
66
--foreground: #ededed;
7+
scroll-behavior: smooth;
78
}
89

910
body {

0 commit comments

Comments
 (0)