-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,743 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "next/typescript"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/versions | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# env files (can opt-in for committing if needed) | ||
.env* | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! | ||
|
||
## Deploy on Vercel | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 240 10% 3.9%; | ||
--card: 0 0% 100%; | ||
--card-foreground: 240 10% 3.9%; | ||
--popover: 0 0% 100%; | ||
--popover-foreground: 240 10% 3.9%; | ||
--primary: 240 5.9% 10%; | ||
--primary-foreground: 0 0% 98%; | ||
--secondary: 240 4.8% 95.9%; | ||
--secondary-foreground: 240 5.9% 10%; | ||
--muted: 240 4.8% 95.9%; | ||
--muted-foreground: 240 3.8% 46.1%; | ||
--accent: 240 4.8% 95.9%; | ||
--accent-foreground: 240 5.9% 10%; | ||
--destructive: 0 84.2% 60.2%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 240 5.9% 90%; | ||
--input: 240 5.9% 90%; | ||
--ring: 240 10% 3.9%; | ||
--radius: 0.5rem; | ||
|
||
--chart-1: 12 76% 61%; | ||
--chart-2: 173 58% 39%; | ||
--chart-3: 197 37% 24%; | ||
--chart-4: 43 74% 66%; | ||
--chart-5: 27 87% 67%; | ||
|
||
--sidebar-background: 0 0% 98%; | ||
--sidebar-foreground: 240 5.3% 26.1%; | ||
--sidebar-primary: 240 5.9% 10%; | ||
--sidebar-primary-foreground: 0 0% 98%; | ||
--sidebar-accent: 240 4.8% 95.9%; | ||
--sidebar-accent-foreground: 240 5.9% 10%; | ||
--sidebar-border: 220 13% 91%; | ||
--sidebar-ring: 240 5% 64.9%; | ||
--color-1: 0 100% 63%; | ||
--color-2: 270 100% 63%; | ||
--color-3: 210 100% 63%; | ||
--color-4: 195 100% 63%; | ||
--color-5: 90 100% 63%; | ||
} | ||
|
||
.dark { | ||
--background: 240 10% 3.9%; | ||
--foreground: 0 0% 98%; | ||
--card: 240 10% 3.9%; | ||
--card-foreground: 0 0% 98%; | ||
--popover: 240 10% 3.9%; | ||
--popover-foreground: 0 0% 98%; | ||
--primary: 0 0% 98%; | ||
--primary-foreground: 240 5.9% 10%; | ||
--secondary: 240 3.7% 15.9%; | ||
--secondary-foreground: 0 0% 98%; | ||
--muted: 240 3.7% 15.9%; | ||
--muted-foreground: 240 5% 64.9%; | ||
--accent: 240 3.7% 15.9%; | ||
--accent-foreground: 0 0% 98%; | ||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 240 3.7% 15.9%; | ||
--input: 240 3.7% 15.9%; | ||
--ring: 240 4.9% 83.9%; | ||
|
||
--chart-1: 220 70% 50%; | ||
--chart-2: 160 60% 45%; | ||
--chart-3: 30 80% 55%; | ||
--chart-4: 280 65% 60%; | ||
--chart-5: 340 75% 55%; | ||
|
||
--sidebar-background: 240 5.9% 10%; | ||
--sidebar-foreground: 240 4.8% 95.9%; | ||
--sidebar-primary: 224.3 76.3% 48%; | ||
--sidebar-primary-foreground: 0 0% 100%; | ||
--sidebar-accent: 240 3.7% 15.9%; | ||
--sidebar-accent-foreground: 240 4.8% 95.9%; | ||
--sidebar-border: 240 3.7% 15.9%; | ||
--sidebar-ring: 240 4.9% 83.9%; | ||
--color-1: 0 100% 63%; | ||
--color-2: 270 100% 63%; | ||
--color-3: 210 100% 63%; | ||
--color-4: 195 100% 63%; | ||
--color-5: 90 100% 63%; | ||
} | ||
} | ||
|
||
@layer base { | ||
html { | ||
@apply scroll-smooth; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
|
||
/* font-feature-settings: "rlig" 1, "calt" 1; */ | ||
font-synthesis-weight: none; | ||
text-rendering: optimizeLegibility; | ||
} | ||
} | ||
|
||
@media (max-width: 640px) { | ||
.container { | ||
@apply px-4; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import type { Metadata } from "next"; | ||
import { GeistSans } from "geist/font/sans"; | ||
import "./globals.css"; | ||
import { ThemeProvider } from "@/hooks/themes-provider"; | ||
import Header from "@/components/custom/site/header"; | ||
import Footer from "@/components/custom/site/footer"; | ||
|
||
|
||
export const metadata: Metadata = { | ||
title: "Plura Status", | ||
description: "Generated by create next app", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body | ||
className={`bg-background font-sans min-h-screen ${GeistSans.variable} antialiased`} | ||
> | ||
<ThemeProvider | ||
attribute="class" | ||
defaultTheme="dark" | ||
enableSystem | ||
disableTransitionOnChange | ||
> | ||
<div className="flex flex-col items-center w-full border-border/40 dark:border-border min-[1800px]:max-w-[1536px] min-[1800px]:border-x"> | ||
<Header/> | ||
{children} | ||
<Footer/> | ||
</div> | ||
</ThemeProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import StatusCard from "@/components/custom/status.card"; | ||
import { Activity } from "lucide-react"; | ||
|
||
export default function Home() { | ||
return ( | ||
<div className="flex flex-col gap-10 h-full w-full items-center justify-center my-10 overflow-auto"> | ||
<div className="fixed bottom-0 left-[-20%] right-0 top-[-10%] h-[500px] w-[500px] rounded-full bg-[radial-gradient(circle_farthest-side,rgba(211,211,211,0.15),rgba(255,255,255,0))]" /> | ||
<div className="flex flex-col items-center justify-center gap-2"> | ||
<div className="p-2 bg-secondary rounded-full"> | ||
<Activity className="size-8 text-green-500"/> | ||
</div> | ||
<h1 className="text-4xl font-bold">All services are online</h1> | ||
<span className="text-sm text-muted-foreground">Last updated on Nov 16 at 10:36am IST</span> | ||
</div> | ||
<div className="flex w-full h-full px-10 md:px-40"> | ||
<StatusCard/> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "app/globals.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className="py-6 md:px-8 md:py-0"> | ||
<div className="flex flex-col items-center gap-4 md:h-24 md:flex-row"> | ||
<p className="text-balance text-center text-sm leading-loose text-muted-foreground md:text-left"> | ||
© 2024 Plura Ai. All rights reserved. | ||
</p> | ||
</div> | ||
</footer> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"use client"; | ||
import { Badge } from '@/components/ui/badge' | ||
import { Button } from '@/components/ui/button' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
import React from 'react' | ||
|
||
export default function Header() { | ||
return ( | ||
<header className="sticky top-0 z-50 w-full border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 dark:border-border"> | ||
<div className="container flex h-14 max-w-screen-2xl items-center justify-between px-3"> | ||
<Link href="/" className="mr-4 flex items-center space-x-2 lg:mr-6"> | ||
<Image | ||
src="/images/plura-logo.jpg" | ||
alt="logo" | ||
width={50} | ||
height={50} | ||
className="rounded-full" | ||
/> | ||
<span className="hidden font-bold text-lg lg:inline-block"> | ||
Plura Ai | ||
</span> | ||
<Badge className='hidden md:block'>Beta</Badge> | ||
</Link> | ||
|
||
<Button size={"sm"} variant={"secondary"} className="ml-4"> | ||
Get Updates | ||
</Button> | ||
</div> | ||
</header> | ||
) | ||
} |
Oops, something went wrong.