frontend geliştirildi. Hatalar düzeltildi.Fixlendi
This commit is contained in:
parent
25d8c76889
commit
f5bf674066
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -0,0 +1,45 @@
|
||||||
|
"use client";
|
||||||
|
import React from 'react';
|
||||||
|
import Link from 'next/link';
|
||||||
|
import styles from './page.module.css';
|
||||||
|
import Container from '@/components/Container';
|
||||||
|
|
||||||
|
const Step = ({ step, completed, onClick }) => (
|
||||||
|
<div className={styles.step} onClick={() => onClick()}>
|
||||||
|
{completed ? '✅' : '◻️'} {step}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
const Home = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.container}>
|
||||||
|
{/* Soldaki ders videosu */}
|
||||||
|
<div className={styles.videoContainer}>
|
||||||
|
{/* Video bileşeni veya iframe ekleyebilirsiniz */}
|
||||||
|
<iframe
|
||||||
|
src="https://www.youtube.com/embed/VIDEO_ID"
|
||||||
|
title="YouTube video player"
|
||||||
|
frameBorder="0"
|
||||||
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
|
allowFullScreen
|
||||||
|
className={styles.video}
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Sağdaki kurs içeriği */}
|
||||||
|
<div className={styles.sidebar}>
|
||||||
|
|
||||||
|
<div className={styles.courseContainer}>
|
||||||
|
<h2>Kurs İçeriği</h2>
|
||||||
|
<div className={styles.courseContent}>
|
||||||
|
<Step step="Adım 1" completed={false} onClick={() => {}} />
|
||||||
|
<Step step="Adım 2" completed={false} onClick={() => {}} />
|
||||||
|
<Step step="Adım 3" completed={false} onClick={() => {}} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Home;
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
/* styles/Home.module.css */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
width: 500px;
|
||||||
|
padding: 50px;
|
||||||
|
border-left: 2px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videoContainer {
|
||||||
|
flex: 1;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.courseContent {
|
||||||
|
flex: 1;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step {
|
||||||
|
cursor: pointer;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video {
|
||||||
|
width: 120%;
|
||||||
|
max-width: 1000px;
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import Link from 'next/link';
|
||||||
import Container from "@/components/Container";
|
import Container from "@/components/Container";
|
||||||
import { COURSES } from "@/mockData";
|
import { COURSES } from "@/mockData";
|
||||||
import { cn, formatPrice } from "@/utils";
|
import { cn, formatPrice } from "@/utils";
|
||||||
|
|
@ -21,9 +22,11 @@ export default function CourseDetailPage({ params }) {
|
||||||
<button className={cn(styles.buyButton, "btn btn-primary")}>
|
<button className={cn(styles.buyButton, "btn btn-primary")}>
|
||||||
Satın Al: {formatPrice(course.price)}
|
Satın Al: {formatPrice(course.price)}
|
||||||
</button>
|
</button>
|
||||||
<button className={cn(styles.buyButton, "btn btn-primary")}>
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<Link href={`/kurslar/${params.courseId}/ogren`} className={cn(styles.startButton, "btn btn-primary")}>
|
||||||
Eğitime Başla
|
Eğitime Başla
|
||||||
</button>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@
|
||||||
.buyButton {
|
.buyButton {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
|
.startButton {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ export default function HomePage() {
|
||||||
<CourseGrid courses={COURSES} />
|
<CourseGrid courses={COURSES} />
|
||||||
</section>
|
</section>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,6 @@ export default function Header() {
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<div className={styles.nav}>
|
<div className={styles.nav}>
|
||||||
{/* Arama butonu ekleniyor */}
|
|
||||||
<div className={styles.search}>
|
|
||||||
<input className={styles["search-input"]} type="text" placeholder="Ara..." />
|
|
||||||
<button className={styles["search-button"]} type="button">
|
|
||||||
Ara
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Link href="/hesabim" className="btn btn-flat">
|
<Link href="/hesabim" className="btn btn-flat">
|
||||||
Hesabım
|
Hesabım
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue