Merge pull request #1 from ravixalgorithm/main

created basic route and setup
This commit is contained in:
Mr. Algorithm 2025-09-29 00:56:02 +05:30 committed by GitHub
commit 3ec5877976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 67 additions and 22 deletions

15
.idea/git_toolbox_prj.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxProjectSettings">
<option name="commitMessageIssueKeyValidationOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
<option name="commitMessageValidationEnabledOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
</component>
</project>

15
app/(root)/layout.tsx Normal file
View File

@ -0,0 +1,15 @@
import React from 'react'
import Header from "../../components/Header";
const Layout = ({ children }: { children : React.ReactNode }) => {
return (
<main className="min-h-screen text-gray-400">
<Header/>
<div className="container py-10">
{children}
</div>
</main>
)
}
export default Layout

18
app/(root)/page.tsx Normal file
View File

@ -0,0 +1,18 @@
import React from 'react'
import {Button} from "../../components/ui/button";
const Home = () => {
return (
<div className="flex min-h-screen home-wrapper">
<div className="flex flex-col items-center justify-center w-full">
<h1 className="text-4xl font-bold mb-4">Welcome to OpenStock</h1>
<p className="text-lg mb-8 text-center max-w-2xl">
OpenStock is an open-source alternative to expensive market platforms.
Track real-time prices, set personalized alerts, and explore detailed company insights.
</p>
<Button>Get Started</Button>
</div>
</div>
)
}
export default Home

View File

@ -18,17 +18,17 @@ export const metadata: Metadata = {
}; };
export default function RootLayout({ export default function RootLayout({
children, children,
}: Readonly<{ }: Readonly<{
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
return ( return (
<html lang="en" className="dark"> <html lang="en" className="dark">
<body <body
className={`${geistSans.variable} ${geistMono.variable} antialiased`} className={`${geistSans.variable} ${geistMono.variable} antialiased`}
> >
{children} {children}
</body> </body>
</html> </html>
); );
} }

View File

@ -1,11 +0,0 @@
import React from 'react'
import {Button} from "@/components/ui/button";
const Page = () => {
return (
<div className="flex justify-center items-center h-screen">
<Button>Click Me</Button>
</div>
)
}
export default Page

0
app/{root}/layout.tsx Normal file
View File

0
app/{root}/page.tsx Normal file
View File

8
components/Header.tsx Normal file
View File

@ -0,0 +1,8 @@
import React from 'react'
const Header = () => {
return (
<div>Header</div>
)
}
export default Header