Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit 633c15e

Browse files
committed
refactor: setup initial folder structure
1 parent 346360f commit 633c15e

File tree

15 files changed

+83
-35
lines changed

15 files changed

+83
-35
lines changed

.eslintrc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": ["next", "next/core-web-vitals", "prettier"],
3+
"plugins": ["prettier"],
4+
"rules": {
5+
"prettier/prettier": "warn",
6+
"no-console": "error"
7+
}
38
}

src/app/globals.css

+1-31
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
11
@tailwind base;
22
@tailwind components;
3-
@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-
}
28-
29-
@layer utilities {
30-
.text-balance {
31-
text-wrap: balance;
32-
}
33-
}
3+
@tailwind utilities;

src/app/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import Image from 'next/image';
1+
import MainPage from '@/features/Main';
22

33
export default function Home() {
44
return (
5-
<main className="flex min-h-screen flex-col items-center justify-between p-24">
6-
<h1>Hellooo</h1>
5+
<main>
6+
<MainPage />
77
</main>
88
);
99
}

src/components/Footer/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { FC } from 'react';
2+
3+
const Footer: FC = () => {
4+
return <div>Footer</div>;
5+
};
6+
export default Footer;

src/components/Navbar/index.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { FC } from 'react';
2+
3+
const Navbar: FC = () => {
4+
return (
5+
<div className="w-full h-24 bg-black text-white flex justify-center items-center">
6+
Navbar
7+
</div>
8+
);
9+
};
10+
export default Navbar;

src/domains/sign-in.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type Test = string;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { FC } from 'react';
2+
3+
const IconDiscord: FC = () => {
4+
return <div>IconDiscord</div>;
5+
};
6+
export default IconDiscord;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { FC } from 'react';
2+
3+
const IconInstagram: FC = () => {
4+
return <div>IconInstagram</div>;
5+
};
6+
export default IconInstagram;

src/features/Main/index.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Navbar from '@/components/Navbar';
2+
3+
const Main = () => {
4+
return (
5+
<div>
6+
<Navbar />
7+
</div>
8+
);
9+
};
10+
export default Main;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { FC } from 'react';
2+
3+
const About: FC = () => {
4+
return <div>About</div>;
5+
};
6+
export default About;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { FC } from 'react';
2+
3+
const Hero: FC = () => {
4+
return <div>Hero</div>;
5+
};
6+
export default Hero;

src/features/Sign-in/index.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const SignIn = () => {
2+
return <div>Ini SignIn</div>;
3+
};
4+
export default SignIn;

src/helpers/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { Test } from '@/domains/sign-in';
2+
3+
export const testHelpers: Test = 'test';

src/pages/dashboard/index.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { NextPage } from 'next';
2+
import { FC } from 'react';
3+
4+
const Dashboard: FC<NextPage> = () => {
5+
return <div>Dashboard</div>;
6+
};
7+
export default Dashboard;

src/pages/sign-in/index.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import SignInPage from '@/features/Sign-in';
2+
import { NextPage } from 'next';
3+
import { FC } from 'react';
4+
5+
const SignIn: FC<NextPage> = () => {
6+
return <SignInPage />;
7+
};
8+
export default SignIn;

0 commit comments

Comments
 (0)