Spaces:
Sleeping
Sleeping
Commit ·
2b21361
1
Parent(s): a181c8d
The images are 400*600
Browse filesOn the journey selector screen, move the Journey
src/app/journey/[journeyId]/page.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
"use client";
|
| 2 |
|
| 3 |
import { useEffect, useState, useCallback } from 'react';
|
|
@@ -161,7 +162,7 @@ export default function JourneyPage() {
|
|
| 161 |
<Image
|
| 162 |
src={journey.imageUrl}
|
| 163 |
alt={journey.title}
|
| 164 |
-
width={
|
| 165 |
height={600}
|
| 166 |
className="h-full w-full object-contain p-2"
|
| 167 |
data-ai-hint={journey.imageHint}
|
|
|
|
| 1 |
+
|
| 2 |
"use client";
|
| 3 |
|
| 4 |
import { useEffect, useState, useCallback } from 'react';
|
|
|
|
| 162 |
<Image
|
| 163 |
src={journey.imageUrl}
|
| 164 |
alt={journey.title}
|
| 165 |
+
width={400}
|
| 166 |
height={600}
|
| 167 |
className="h-full w-full object-contain p-2"
|
| 168 |
data-ai-hint={journey.imageHint}
|
src/app/page.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import Link from 'next/link';
|
| 2 |
import { Button } from '@/components/ui/button';
|
| 3 |
import { Rocket } from 'lucide-react';
|
|
@@ -12,10 +13,10 @@ export default function LandingPage() {
|
|
| 12 |
<section className="container mx-auto flex h-[calc(100vh-4rem)] flex-col items-center justify-center px-4 py-12 md:flex-row md:gap-8 md:px-6 md:py-20 lg:py-28">
|
| 13 |
<div className="mb-8 w-full md:mb-0 md:w-1/2 lg:w-2/5">
|
| 14 |
<Image
|
| 15 |
-
src="https://placehold.co/
|
| 16 |
alt="AI Learning Journey"
|
| 17 |
-
width={
|
| 18 |
-
height={
|
| 19 |
className="rounded-lg shadow-2xl"
|
| 20 |
data-ai-hint="learning education"
|
| 21 |
priority
|
|
|
|
| 1 |
+
|
| 2 |
import Link from 'next/link';
|
| 3 |
import { Button } from '@/components/ui/button';
|
| 4 |
import { Rocket } from 'lucide-react';
|
|
|
|
| 13 |
<section className="container mx-auto flex h-[calc(100vh-4rem)] flex-col items-center justify-center px-4 py-12 md:flex-row md:gap-8 md:px-6 md:py-20 lg:py-28">
|
| 14 |
<div className="mb-8 w-full md:mb-0 md:w-1/2 lg:w-2/5">
|
| 15 |
<Image
|
| 16 |
+
src="https://placehold.co/400x600.png"
|
| 17 |
alt="AI Learning Journey"
|
| 18 |
+
width={400}
|
| 19 |
+
height={600}
|
| 20 |
className="rounded-lg shadow-2xl"
|
| 21 |
data-ai-hint="learning education"
|
| 22 |
priority
|
src/components/journey/journey-card.tsx
CHANGED
|
@@ -18,17 +18,19 @@ export function JourneyCard({ journey, index }: JourneyCardProps) {
|
|
| 18 |
|
| 19 |
return (
|
| 20 |
<Card className="flex h-full flex-col overflow-hidden shadow-lg transition-shadow hover:shadow-xl group">
|
| 21 |
-
<CardHeader className="relative h-
|
| 22 |
<Image
|
| 23 |
src={journey.imageUrl}
|
| 24 |
-
alt={journey.title}
|
| 25 |
layout="fill"
|
| 26 |
objectFit="cover"
|
| 27 |
data-ai-hint={journey.imageHint}
|
| 28 |
className="transition-transform duration-300 ease-in-out group-hover:scale-105"
|
| 29 |
/>
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
<Button asChild size="sm" className="font-semibold">
|
| 33 |
<Link href={`/journey/${journey.id}`}>
|
| 34 |
Launch
|
|
@@ -36,12 +38,7 @@ export function JourneyCard({ journey, index }: JourneyCardProps) {
|
|
| 36 |
</Link>
|
| 37 |
</Button>
|
| 38 |
</div>
|
| 39 |
-
</CardHeader>
|
| 40 |
-
<CardContent className="flex-grow p-6">
|
| 41 |
-
<CardTitle className="font-headline text-xl">{journeyLabel}</CardTitle>
|
| 42 |
-
{/* Description removed as per request */}
|
| 43 |
</CardContent>
|
| 44 |
-
{/* Footer removed as launch button is on image */}
|
| 45 |
</Card>
|
| 46 |
);
|
| 47 |
}
|
|
|
|
| 18 |
|
| 19 |
return (
|
| 20 |
<Card className="flex h-full flex-col overflow-hidden shadow-lg transition-shadow hover:shadow-xl group">
|
| 21 |
+
<CardHeader className="relative h-60 w-full p-0 md:h-72"> {/* Adjusted height for 400x600 aspect ratio if needed */}
|
| 22 |
<Image
|
| 23 |
src={journey.imageUrl}
|
| 24 |
+
alt={journey.title}
|
| 25 |
layout="fill"
|
| 26 |
objectFit="cover"
|
| 27 |
data-ai-hint={journey.imageHint}
|
| 28 |
className="transition-transform duration-300 ease-in-out group-hover:scale-105"
|
| 29 |
/>
|
| 30 |
+
</CardHeader>
|
| 31 |
+
<CardContent className="flex-grow p-4 md:p-6">
|
| 32 |
+
<div className="flex items-center justify-between">
|
| 33 |
+
<CardTitle className="font-headline text-xl">{journeyLabel}</CardTitle>
|
| 34 |
<Button asChild size="sm" className="font-semibold">
|
| 35 |
<Link href={`/journey/${journey.id}`}>
|
| 36 |
Launch
|
|
|
|
| 38 |
</Link>
|
| 39 |
</Button>
|
| 40 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
</CardContent>
|
|
|
|
| 42 |
</Card>
|
| 43 |
);
|
| 44 |
}
|
src/lib/journeys.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import type { Journey } from '@/types';
|
| 2 |
|
| 3 |
export const journeys: Journey[] = [
|
|
@@ -5,21 +6,21 @@ export const journeys: Journey[] = [
|
|
| 5 |
id: 'ancient-civilization',
|
| 6 |
title: 'Ancient Civilization',
|
| 7 |
description: 'Explore the ruins of a long-lost civilization and uncover its secrets through AI-generated questions.',
|
| 8 |
-
imageUrl: 'https://placehold.co/
|
| 9 |
imageHint: 'archaeology ruins',
|
| 10 |
},
|
| 11 |
{
|
| 12 |
id: 'space-anomaly',
|
| 13 |
title: 'Space Anomaly',
|
| 14 |
description: 'Investigate a mysterious anomaly detected in a distant galaxy. What will the AI ask you?',
|
| 15 |
-
imageUrl: 'https://placehold.co/
|
| 16 |
imageHint: 'nebula galaxy',
|
| 17 |
},
|
| 18 |
{
|
| 19 |
id: 'microscopic-world',
|
| 20 |
title: 'Microscopic Marvels',
|
| 21 |
description: 'Dive into the unseen world of microorganisms and their complex structures, guided by AI.',
|
| 22 |
-
imageUrl: 'https://placehold.co/
|
| 23 |
imageHint: 'microscope cells',
|
| 24 |
},
|
| 25 |
];
|
|
|
|
| 1 |
+
|
| 2 |
import type { Journey } from '@/types';
|
| 3 |
|
| 4 |
export const journeys: Journey[] = [
|
|
|
|
| 6 |
id: 'ancient-civilization',
|
| 7 |
title: 'Ancient Civilization',
|
| 8 |
description: 'Explore the ruins of a long-lost civilization and uncover its secrets through AI-generated questions.',
|
| 9 |
+
imageUrl: 'https://placehold.co/400x600.png',
|
| 10 |
imageHint: 'archaeology ruins',
|
| 11 |
},
|
| 12 |
{
|
| 13 |
id: 'space-anomaly',
|
| 14 |
title: 'Space Anomaly',
|
| 15 |
description: 'Investigate a mysterious anomaly detected in a distant galaxy. What will the AI ask you?',
|
| 16 |
+
imageUrl: 'https://placehold.co/400x600.png',
|
| 17 |
imageHint: 'nebula galaxy',
|
| 18 |
},
|
| 19 |
{
|
| 20 |
id: 'microscopic-world',
|
| 21 |
title: 'Microscopic Marvels',
|
| 22 |
description: 'Dive into the unseen world of microorganisms and their complex structures, guided by AI.',
|
| 23 |
+
imageUrl: 'https://placehold.co/400x600.png',
|
| 24 |
imageHint: 'microscope cells',
|
| 25 |
},
|
| 26 |
];
|