Skip to content

Commit e8fc3fc

Browse files
committed
initial commit
1 parent e2bc6a8 commit e8fc3fc

File tree

7 files changed

+2395
-171
lines changed

7 files changed

+2395
-171
lines changed

app/globals.css

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4-
5-
:root {
6-
--foreground-rgb: 0, 0, 0;
7-
--background-start-rgb: 214, 219, 220;
8-
--background-end-rgb: 255, 255, 255;
9-
}
10-
11-
@media (prefers-color-scheme: dark) {
12-
:root {
13-
--foreground-rgb: 255, 255, 255;
14-
--background-start-rgb: 0, 0, 0;
15-
--background-end-rgb: 0, 0, 0;
16-
}
17-
}
18-
19-
body {
20-
color: rgb(var(--foreground-rgb));
21-
background: linear-gradient(
22-
to bottom,
23-
transparent,
24-
rgb(var(--background-end-rgb))
25-
)
26-
rgb(var(--background-start-rgb));
27-
}

app/layout.tsx

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
import './globals.css'
2-
import { Inter } from 'next/font/google'
1+
import { Providers } from "./providers";
2+
import { Source_Code_Pro } from "next/font/google";
33

4-
const inter = Inter({ subsets: ['latin'] })
4+
const source_code_pro = Source_Code_Pro({
5+
subsets: ["latin"],
6+
weight: ["200", "300", "400", "500", "600", "700", "800", "900"],
7+
});
58

6-
export const metadata = {
7-
title: 'Create Next App',
8-
description: 'Generated by create next app',
9-
}
10-
11-
export default function RootLayout({
12-
children,
13-
}: {
14-
children: React.ReactNode
15-
}) {
9+
export default function RootLayout({ children }: { children: React.ReactNode }) {
1610
return (
1711
<html lang="en">
18-
<body className={inter.className}>{children}</body>
12+
<title>Ganti ini</title>
13+
<body className={source_code_pro.className}>
14+
<Providers>{children}</Providers>
15+
</body>
1916
</html>
20-
)
17+
);
2118
}

app/page.tsx

Lines changed: 19 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,23 @@
1-
import Image from 'next/image'
1+
"use client";
2+
import { Center, Box, Text, HStack } from "@chakra-ui/react";
23

34
export default function Home() {
45
return (
5-
<main className="flex min-h-screen flex-col items-center justify-between p-24">
6-
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex">
7-
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
8-
Get started by editing&nbsp;
9-
<code className="font-mono font-bold">app/page.tsx</code>
10-
</p>
11-
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
12-
<a
13-
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
14-
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
By{' '}
19-
<Image
20-
src="/vercel.svg"
21-
alt="Vercel Logo"
22-
className="dark:invert"
23-
width={100}
24-
height={24}
25-
priority
26-
/>
27-
</a>
28-
</div>
29-
</div>
30-
31-
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px]">
32-
<Image
33-
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
34-
src="/next.svg"
35-
alt="Next.js Logo"
36-
width={180}
37-
height={37}
38-
priority
39-
/>
40-
</div>
41-
42-
<div className="mb-32 grid text-center lg:mb-0 lg:grid-cols-4 lg:text-left">
43-
<a
44-
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
45-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
46-
target="_blank"
47-
rel="noopener noreferrer"
48-
>
49-
<h2 className={`mb-3 text-2xl font-semibold`}>
50-
Docs{' '}
51-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
52-
-&gt;
53-
</span>
54-
</h2>
55-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
56-
Find in-depth information about Next.js features and API.
57-
</p>
58-
</a>
59-
60-
<a
61-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
62-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800 hover:dark:bg-opacity-30"
63-
target="_blank"
64-
rel="noopener noreferrer"
65-
>
66-
<h2 className={`mb-3 text-2xl font-semibold`}>
67-
Learn{' '}
68-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
69-
-&gt;
70-
</span>
71-
</h2>
72-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
73-
Learn about Next.js in an interactive course with&nbsp;quizzes!
74-
</p>
75-
</a>
76-
77-
<a
78-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
79-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
80-
target="_blank"
81-
rel="noopener noreferrer"
82-
>
83-
<h2 className={`mb-3 text-2xl font-semibold`}>
84-
Templates{' '}
85-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
86-
-&gt;
87-
</span>
88-
</h2>
89-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
90-
Explore the Next.js 13 playground.
91-
</p>
92-
</a>
93-
94-
<a
95-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
96-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
97-
target="_blank"
98-
rel="noopener noreferrer"
99-
>
100-
<h2 className={`mb-3 text-2xl font-semibold`}>
101-
Deploy{' '}
102-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
103-
-&gt;
104-
</span>
105-
</h2>
106-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
107-
Instantly deploy your Next.js site to a shareable URL with Vercel.
108-
</p>
109-
</a>
110-
</div>
111-
</main>
112-
)
6+
<Center w={"100%"} h={"100vh"}>
7+
<Box w={"25em"} h={"auto"} boxShadow={"lg"}>
8+
<Box w={"full"} p={"2em"} bg={"RGBA(0, 0, 0, 0.92)"} rounded={"md"}>
9+
<HStack spacing={3}>
10+
<Box boxSize={"1em"} bg={"white"} rounded={"full"}></Box>
11+
<Box boxSize={"1em"} bg={"white"} rounded={"full"}></Box>
12+
<Box boxSize={"1em"} bg={"white"} rounded={"full"}></Box>
13+
</HStack>
14+
<Box mt={"1em"}>
15+
<Text align={"left"} color={"white"} fontSize={"xl"} fontWeight={"normal"}>
16+
Hi, selamat liburan para frontend MAXIMA
17+
</Text>
18+
</Box>
19+
</Box>
20+
</Box>
21+
</Center>
22+
);
11323
}

app/providers.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"use client";
2+
import { CacheProvider } from "@chakra-ui/next-js";
3+
import { ChakraProvider } from "@chakra-ui/react";
4+
5+
export function Providers({ children }: { children: React.ReactNode }) {
6+
return (
7+
<CacheProvider>
8+
<ChakraProvider>{children}</ChakraProvider>
9+
</CacheProvider>
10+
);
11+
}

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {}
2+
const nextConfig = {};
33

4-
module.exports = nextConfig
4+
module.exports = nextConfig;

package.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,36 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"@chakra-ui/next-js": "^2.1.4",
13+
"@chakra-ui/react": "^2.7.1",
14+
"@emotion/react": "^11.11.1",
15+
"@emotion/styled": "^11.11.0",
16+
"@mui/icons-material": "^5.11.16",
17+
"@mui/material": "^5.13.5",
1218
"@types/node": "20.3.1",
1319
"@types/react": "18.2.13",
1420
"@types/react-dom": "18.2.6",
1521
"autoprefixer": "10.4.14",
22+
"axios": "^1.4.0",
1623
"eslint": "8.43.0",
1724
"eslint-config-next": "13.4.6",
25+
"framer-motion": "^10.12.16",
26+
"mui-datatables": "^4.3.0",
1827
"next": "13.4.6",
1928
"postcss": "8.4.24",
2029
"react": "18.2.0",
2130
"react-dom": "18.2.0",
22-
"tailwindcss": "3.3.2",
31+
"react-dotenv": "^0.1.3",
32+
"react-hook-form": "^7.45.0",
33+
"react-hot-toast": "^2.4.1",
34+
"react-icons": "^4.9.0",
35+
"react-jwt": "^1.2.0",
36+
"react-toastify": "^9.1.3",
37+
"sweetalert2": "^11.7.12",
38+
"tailwindcss": "3.3.2"
39+
},
40+
"devDependencies": {
41+
"@types/mui-datatables": "^4.3.5",
2342
"typescript": "5.1.3"
2443
}
2544
}

0 commit comments

Comments
 (0)