Skip to content

Commit

Permalink
Added shaddn
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmacmak committed Jul 23, 2024
1 parent f22a65f commit 2c432bf
Show file tree
Hide file tree
Showing 14 changed files with 1,227 additions and 57 deletions.
6 changes: 6 additions & 0 deletions app/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { Revenue } from './definitions';
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}

export const formatCurrency = (amount: number) => {
return (amount / 100).toLocaleString('en-US', {
Expand Down
13 changes: 5 additions & 8 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ export default function Page() {
</div>
<div className="mt-4 flex grow flex-col gap-4 md:flex-row">
<div className="flex flex-col justify-center gap-6 rounded-lg bg-gray-50 px-6 py-10 md:w-2/5 md:px-20">
<div
className="relative w-0 h-0 border-l-[15px] border-r-[15px] border-b-[26px] border-l-transparent border-r-transparent border-b-black"
/>
{/* <div
* Add logo here
/> */}
<p className={`text-xl text-gray-800 md:text-3xl md:leading-normal ${afacad.className} antialiased`}>
<strong>Welcome to Acme.</strong> This is the example for the{' '}
<a href="https://nextjs.org/learn/" className="text-yellow-500">
Next.js Learn Course
</a>
, brought to you by Vercel.
<strong>Welcome to BusBuzzer.</strong>
<br />Realtime Bus tracking and monitoring
</p>
<Link
href="/login"
Expand Down
4 changes: 2 additions & 2 deletions app/ui/busbuzzer-logo.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { GlobeAltIcon } from '@heroicons/react/24/outline';
import { TruckIcon } from '@heroicons/react/24/outline';
import { afacad } from '@/app/ui/fonts';

export default function BusBuzzerLogo() {
return (
<div
className={`${afacad.className} flex flex-row items-center leading-none text-white`}
>
<GlobeAltIcon className="h-12 w-12 rotate-[15deg]" />
<TruckIcon className="h-12 w-12 rotate-[15deg]" />
<p className="text-[44px]">BusBuzzer</p>
</div>
);
Expand Down
78 changes: 78 additions & 0 deletions app/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import * as React from "react"
import { cn } from "../../app/lib/utils"

const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"rounded-lg border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
className
)}
{...props}
/>
))
Card.displayName = "Card"

const CardHeader = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex flex-col space-y-1.5 p-6", className)}
{...props}
/>
))
CardHeader.displayName = "CardHeader"

const CardTitle = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
<h3
ref={ref}
className={cn(
"text-2xl font-semibold leading-none tracking-tight",
className
)}
{...props}
/>
))
CardTitle.displayName = "CardTitle"

const CardDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
<p
ref={ref}
className={cn("text-sm text-neutral-500 dark:text-neutral-400", className)}
{...props}
/>
))
CardDescription.displayName = "CardDescription"

const CardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
))
CardContent.displayName = "CardContent"

const CardFooter = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex items-center p-6 pt-0", className)}
{...props}
/>
))
CardFooter.displayName = "CardFooter"

export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
Loading

0 comments on commit 2c432bf

Please sign in to comment.