Skip to content

Commit

Permalink
style(fix): fix weirdness on the session screenshots and tweak text size
Browse files Browse the repository at this point in the history
Co-authored-by: proudparrot2 <[email protected]
Co-authored-by: AnonymousFxz <[email protected]>
  • Loading branch information
IncognitoTGT and AnonymousFxz committed Dec 19, 2024
1 parent 7efe5bf commit 94a232d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ export default async function Dashboard() {
const images = await db.select().from(image);
return (
<div className="m-auto flex w-full flex-col p-4">
<h1 className="text-2xl font-bold mb-6">Workspaces</h1>
<h1 className="text-3xl font-bold mb-6">Workspaces</h1>
<section className="flex flex-wrap gap-2">
<Suspense fallback={<Loader2 size={64} className="animate-spin" />}>
{images.map((image) => (
<Dialog key={image.dockerImage}>
<DialogTrigger>
<div className="relative w-64 aspect-[5/3] rounded-lg overflow-hidden shadow-lg bg-accent/40 backdrop-blur-lg group">
<div className="relative w-64 aspect-[5/3] rounded-lg overflow-hidden shadow-lg bg-accent/40 group">
<Image
src={image.icon}
alt={image.friendlyName}
fill
className="object-cover group-hover:scale-105 duration-200"
/>
<div className="absolute inset-0 bg-gradient-to-t from-accent/90 to-transparent" />
<div className="absolute bottom-2 left-2 text-white flex flex-col">
<div className="absolute bottom-2 left-2 text-foreground flex flex-col">
<h3 className="text-lg font-bold">{image.friendlyName}</h3>
<p className="text-left text-sm text-muted-foreground">{image.category}</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/sessions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function Dashboard() {
const containerStates = await Promise.all(sessions.map((session) => docker.getContainer(session.id).inspect()));
return (
<div className="m-auto flex w-full flex-col p-4">
<h1 className="text-2xl font-bold mb-6">Sessions</h1>
<h1 className="text-3xl font-bold mb-6">Sessions</h1>
<section className="flex flex-wrap gap-1">
<Suspense fallback={<Loader2 size={64} className="animate-spin" />}>
{sessions.length ? (
Expand Down Expand Up @@ -121,7 +121,7 @@ export default async function Dashboard() {
fill
sizes="6.5rem 13rem"
alt=""
className="object-fill rounded-sm md:h-[6.5rem] md:w-[13rem] h-[3.25rem] w-[6.5rem]"
className="object-fill rounded-none md:h-[6.5rem] md:w-[13rem] h-[3.25rem] w-[6.5rem]"
/>
) : (
<div className="flex items-center justify-center rounded-sm bg-muted h-36 w-full">
Expand Down

0 comments on commit 94a232d

Please sign in to comment.