Files
supabase/apps/learn/components/what-will-i-learn.tsx
Ivan VasilovandJordi Enric 56de26fe22 chore: Migrate the monorepo to use Tailwind v4 (#45318)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-04-30 10:53:24 +00:00

139 lines
5.1 KiB
TypeScript

import {
BarChart3,
CalendarRange,
Database,
History,
Lock,
Network,
Rocket,
Timer,
} from 'lucide-react'
import Image from 'next/image'
import { Card, CardDescription, CardHeader, CardTitle } from 'ui'
const learningTracks = [
{
icon: Database,
title: 'Model and manage your data',
description: 'Design relational schemas, automate migrations, and keep your project tidy.',
takeaways: [
'set up tables, relationships, and seed data',
'work with realtime subscriptions and triggers',
'version and deploy database changes safely',
],
},
{
icon: Lock,
title: 'Secure every request',
description: 'Master authentication and Row Level Security to keep data scoped correctly.',
takeaways: [
'configure supabase auth providers',
'write row level security policies with confidence',
'audit, monitor, and debug access issues fast',
],
},
{
icon: Network,
title: 'Go realtime by default',
description: 'Stream updates into your UI with channels, presence, and edge functions.',
takeaways: [
'broadcast updates with realtime channels',
'listen for database changes from the client',
'connect edge functions to your realtime flows',
],
},
{
icon: Rocket,
title: 'Deploy production-grade apps',
description: 'Integrate storage, vector search, and observability for resilient launches.',
takeaways: [
'serve files securely from supabase storage',
'index and query embeddings for ai features',
'monitor performance and scale without surprises',
],
},
]
export function WhatWillILearn() {
return (
<section className="grid gap-8">
<div className="grid gap-2 max-w-2xl">
<h3 className="text-2xl font-bold mb-4">What will I learn?</h3>
<p className="text-base text-foreground-light">
In the fundamental courses, you&apos;ll learn all the basics:
</p>
</div>
<div className="grid gap-6 md:grid-cols-2">
{learningTracks.map((track) => {
const Icon = track.icon
return (
<Card key={track.title} className="h-full border-border/60">
<CardHeader className="grid gap-2 border-b border-border/40">
<Icon className="h-5 w-5 text-brand-500" />
<CardTitle className="text-base font-semibold text-foreground">
{track.title}
</CardTitle>
<CardDescription className="text-sm text-foreground-light">
{track.description}
</CardDescription>
</CardHeader>
</Card>
)
})}
</div>
<div className="mt-8">
<h4 className="text-lg font-bold mb-2">Smart Office project</h4>
<p className="text-base text-foreground-light">
In the Smart Office project, you&apos;ll learn how to build a full-featured Dashboard:
</p>
<div className="grid grid-cols-12 gap-12 mt-6">
<div className="col-span-6">
<Image
src={'/img/smart-office.png'}
alt="Smart Office project dashboard screenshot"
className="w-full h-auto"
width={1000}
height={875}
/>
</div>
<div className="col-span-6">
<ul className="grid gap-6 text-foreground-light ">
<li className="grid grid-cols-[auto_1fr] gap-3 border-b border-border/40 pb-3">
<span className="flex h-9 w-9 items-center justify-center rounded-md bg-brand-500/10 text-brand-500">
<Timer className="h-5 w-5" />
</span>
<span>Real-time room monitoring that tracks live occupancy, sensor readings</span>
</li>
<li className="grid grid-cols-[auto_1fr] gap-3 border-b border-border/40 pb-3">
<span className="flex h-9 w-9 items-center justify-center rounded-md bg-brand-500/10 text-brand-500">
<CalendarRange className="h-5 w-5" />
</span>
<span>Booking management with live status filters, calendar integrations.</span>
</li>
<li className="grid grid-cols-[auto_1fr] gap-3 border-b border-border/40 pb-3">
<span className="flex h-9 w-9 items-center justify-center rounded-md bg-brand-500/10 text-brand-500">
<History className="h-5 w-5" />
</span>
<span>
Advanced analytics that surface 30+ days of utilization trends and patterns.
</span>
</li>
<li className="grid grid-cols-[auto_1fr] gap-3">
<span className="flex h-9 w-9 items-center justify-center rounded-md bg-brand-500/10 text-brand-500">
<BarChart3 className="h-5 w-5" />
</span>
<span>
Detect capacity issues, open facilities tasks, and track resolution SLAs without
leaving the app.
</span>
</li>
</ul>
</div>
</div>
</div>
</section>
)
}