Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,115 @@
h1 {
@apply text-5xl
}
:root {

--background: 0 0% 100%;

--foreground: 0 0% 3.9%;

--card: 0 0% 100%;

--card-foreground: 0 0% 3.9%;

--popover: 0 0% 100%;

--popover-foreground: 0 0% 3.9%;

--primary: 0 0% 9%;

--primary-foreground: 0 0% 98%;

--secondary: 0 0% 96.1%;

--secondary-foreground: 0 0% 9%;

--muted: 0 0% 96.1%;

--muted-foreground: 0 0% 45.1%;

--accent: 0 0% 96.1%;

--accent-foreground: 0 0% 9%;

--destructive: 0 84.2% 60.2%;

--destructive-foreground: 0 0% 98%;

--border: 0 0% 89.8%;

--input: 0 0% 89.8%;

--ring: 0 0% 3.9%;

--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%;

--radius: 0.5rem
}
.dark {

--background: 0 0% 3.9%;

--foreground: 0 0% 98%;

--card: 0 0% 3.9%;

--card-foreground: 0 0% 98%;

--popover: 0 0% 3.9%;

--popover-foreground: 0 0% 98%;

--primary: 0 0% 98%;

--primary-foreground: 0 0% 9%;

--secondary: 0 0% 14.9%;

--secondary-foreground: 0 0% 98%;

--muted: 0 0% 14.9%;

--muted-foreground: 0 0% 63.9%;

--accent: 0 0% 14.9%;

--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;

--destructive-foreground: 0 0% 98%;

--border: 0 0% 14.9%;

--input: 0 0% 14.9%;

--ring: 0 0% 83.1%;

--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%
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
68 changes: 45 additions & 23 deletions app/programs/interns/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
import Image from "next/image";
import internTestimonials from "@/data/internTestimonials";
import {
Carousel,
CarouselContent,
CarouselItem,
CarouselNext,
CarouselPrevious,
} from "@/components/ui/carousel"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"
import Link from "next/link";

const Interns = () => {
Expand Down Expand Up @@ -73,29 +88,36 @@ const Interns = () => {
<h2 className="text-3xl font-bold mb-4 uppercase decoration-[#f3dab9]">
Intern Testimonials
</h2>
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
{internTestimonials.map((testimonial, index) => (
<div
key={index}
className="bg-white p-6 rounded-lg shadow-md border-2 hover:shadow-lg transition duration-300"
>
<div className="flex items-center justify-center mb-4">
<Image
src={testimonial.imageSrc}
alt={testimonial.name}
width={150}
height={150}
className="rounded-full"
/>
</div>
<p className="mt-2 font-semibold">{testimonial.name}</p>
<p className="mt-2 font-semibold">
Intern class of {testimonial.internYear}
</p>
<p className="mt-2 text-gray-700">{testimonial.experience}</p>
</div>
))}
</div>
<Carousel className="w-full max-w-s">
<CarouselContent>
{internTestimonials.map((testimonial, index) => (
<CarouselItem key={index} className="md:basis-1/2 lg:basis-1/3 flex">
<div className="p-1">
<Card className="h-full flex flex-col">
<CardContent className="flex aspect-square items-center justify-center">
<Image
src={testimonial.imageSrc}
alt={testimonial.name}
width={150}
height={150}
className="rounded-full"
/>
</CardContent>
<CardContent>
<p className="mt-2 font-semibold">{testimonial.name}</p>
<p className="mt-2 font-semibold">
Intern class of {testimonial.internYear}
</p>
<p className="mt-2 text-gray-700">{testimonial.experience}</p>
</CardContent>
</Card>
</div>
</CarouselItem>
))}
</CarouselContent>
<CarouselPrevious />
<CarouselNext />
</Carousel>
</div>
</div>
</div>
Expand Down
21 changes: 21 additions & 0 deletions components.json
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.js",
"css": "app/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
57 changes: 57 additions & 0 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
{
variants: {
variant: {
default:
"bg-primary text-primary-foreground shadow hover:bg-primary/90",
destructive:
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
outline:
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
secondary:
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-9 px-4 py-2",
sm: "h-8 rounded-md px-3 text-xs",
lg: "h-10 rounded-md px-8",
icon: "h-9 w-9",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)

export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean
}

const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button"
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
)
}
)
Button.displayName = "Button"

export { Button, buttonVariants }
76 changes: 76 additions & 0 deletions components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import * as React from "react"

import { cn } from "@/lib/utils"

const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"rounded-xl border bg-card text-card-foreground shadow",
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<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("font-semibold leading-none tracking-tight", className)}
{...props}
/>
))
CardTitle.displayName = "CardTitle"

const CardDescription = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("text-sm text-muted-foreground", 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