Skip to content

Commit

Permalink
fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsaleem1 committed Nov 4, 2024
2 parents dd76719 + 391d094 commit 966e9a0
Show file tree
Hide file tree
Showing 14 changed files with 167 additions and 67 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const nextConfig = {
},
basePath: "",
assetPrefix: "",
trailingSlash: true,
};

module.exports = nextConfig;
Binary file added public/images/randomCat.webp
Binary file not shown.
24 changes: 24 additions & 0 deletions src/app/course/[name]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Name from "@/components/course/name";
import { courses } from "@/courses";

interface props {
params: {
name: string;
};
}

export const generateStaticParams = () => {
return courses.map(({ param }) => ({ name: param }));
};

const Page = ({ params }: props) => {
const { name } = params;

return (
<>
<Name>{name}</Name>
</>
);
};

export default Page;
5 changes: 5 additions & 0 deletions src/app/course/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Page = () => {
return <div>Page</div>;
};

export default Page;
68 changes: 17 additions & 51 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,63 +1,29 @@
import Image from "next/image";
import HomePic from "@/public/images/homePage2.webp";
import train from "/public/landing/landingpagetrain.webp";
import path from "/public/landing/landingpagetrainpath.webp";
import rectangle35 from "/public/landing/Rectangle35.webp";
import rectangle36 from "/public/landing/Rectangle36.webp";
import rectangle37 from "/public/landing/Rectangle37.webp";
import ellipse13 from "/public/landing/Ellipse13.webp";
import Landing from "@/components/home/Landing";
import About from "@/components/home/about";
import ProjectCard from "@/components/home/ProjectCard";
import Cat from "@/public/images/randomCat.webp";

const Home = () => {
return (
<div className="flex h-screen w-screen flex-col bg-gradient-to-t from-devstation-blue-400 to-blue-950">
<div className="">
<div className="h-1/8 flex flex-row justify-between">
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="ml-4 h-8 w-24 bg-gray-300 text-center">
<p className="bg-gray-300 p-2">LOGO</p>
</div>
<div className="flex flex-row space-x-2">
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
</div>
<div>
<Landing />
<div className="flex flex-col">
<Image alt="graphics of home page" src={HomePic} />
<div className="absolute mt-[10%] text-white">
<About />
</div>

<div className="h-1/8 relative flex w-full flex-col pt-8">
<Image
className="relative ml-4 h-1/6 w-1/6"
src={rectangle36}
alt=""
<div className="absolute ml-[8vw] mt-[200vh] w-1/4">
<ProjectCard
backgroundImage={Cat}
title="Lorem Ipsum"
description="Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum"
/>
<Image className="absolute h-full w-1/4" src={ellipse13} alt="" />
<div className="bottom-4 flex h-full w-full flex-row">
<Image
className="relative ml-40 mr-12 h-1/5 w-1/2"
src={rectangle37}
alt=""
/>
<p className="font-sans-serif w-full text-[4vw] text-yellow-300">
DEVELOPER STATION
</p>
</div>
</div>
</div>

<div className="relative h-1/2">
<Image className="absolute h-3/4 w-full" src={rectangle35} alt="" />
<Image className="relative top-48 h-5/6 w-full" src={path} alt="" />
<Image className="absolute top-8 h-full w-full" src={train} alt="" />
</div>

<div className="flex h-1/4 flex-row">
<p className="ml-11 w-1/4 font-malayalam text-lg text-white">
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem
Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum
</p>
</div>
<Image alt="graphics of home page" src={HomePic} />
</div>
);
};
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions src/components/course/name.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
interface CourseNameProps {
children: string;
}

const Name = ({ children }: CourseNameProps) => {
return (
<div className="font-Malayalam rounded-2xl bg-devstation-cyan-100 py-4 text-center text-6xl text-white">
{children}
</div>
);
};
export default Name;
File renamed without changes.
14 changes: 0 additions & 14 deletions src/components/courselayout.tsx

This file was deleted.

61 changes: 61 additions & 0 deletions src/components/home/Landing.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import Image from "next/image";
import train from "/public/landing/landingpagetrain.webp";
import path from "/public/landing/landingpagetrainpath.webp";
import rectangle35 from "/public/landing/Rectangle35.webp";
import rectangle36 from "/public/landing/Rectangle36.webp";
import rectangle37 from "/public/landing/Rectangle37.webp";
import ellipse13 from "/public/landing/Ellipse13.webp";
const Landing = () => {
return (
<div className="flex h-screen w-screen flex-col bg-gradient-to-t from-devstation-blue-400 to-blue-950">
<div>
<div className="h-1/8 flex flex-row justify-between p-4">
<div className="ml-4 h-8 w-24 bg-gray-300 text-center">
<p className="bg-gray-300 p-2">LOGO</p>
</div>
<div className="flex flex-row space-x-2">
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
<div className="h-8 w-8 rounded-full bg-gray-300"></div>
</div>
</div>

<div className="h-1/8 relative flex w-full flex-col space-y-4 pt-8">
<Image
className="relative ml-4 h-1/6 w-1/6"
src={rectangle36}
alt=""
/>
<Image className="absolute h-full w-1/4" src={ellipse13} alt="" />
<div className="bottom-4 flex h-full w-full flex-row">
<Image
className="relative ml-40 mr-12 h-1/5 w-1/2"
src={rectangle37}
alt=""
/>
<p className="font-sans-serif w-full text-[4vw] text-yellow-300">
DEVELOPER STATION
</p>
</div>
</div>
</div>

<div className="relative h-1/2">
<Image className="absolute h-3/4 w-full" src={rectangle35} alt="" />
<Image className="relative top-48 h-5/6 w-full" src={path} alt="" />
<Image className="absolute top-8 h-full w-full" src={train} alt="" />
</div>

<div className="flex h-1/4 flex-row pb-12">
<p className="ml-11 w-1/4 text-lg text-white">
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem
Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum
</p>
</div>
</div>
);
};

export default Landing;
2 changes: 1 addition & 1 deletion src/components/home/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({
}) => {
return (
<div className="flex flex-col items-center rounded-2xl border-4 border-devstation-green-500 bg-devstation-green-400 p-5">
<div className="mb-2 flex w-3/4 items-end justify-end rounded-2xl">
<div className="mb-[2vw] flex w-3/4 items-end justify-end rounded-2xl">
{backgroundImage && (
<Image src={backgroundImage} alt={title} className="rounded-2xl" />
)}
Expand Down
39 changes: 39 additions & 0 deletions src/components/home/Projects.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import ProjectCard from "../home/ProjectCard";
import backgroundImage from "/public/images/Projectshome1.webp";
const Projects = () => {
return (
<div className="mx-[3vw] my-[5vw] flex flex-col items-center rounded-xl bg-devstation-green-200 bg-opacity-80 p-[2.5vw] text-center text-white">
<div className="text-[4vw]">Our Projects</div>

<div className="mb-[2vw] text-lg">
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
</div>
<div className="grid grid-cols-3 flex-col items-center justify-center">
<div className="mx-[2vw] mb-[1vw]">
<ProjectCard
backgroundImage={backgroundImage}
description="Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum."
title="Title"
/>
</div>
<div className="mx-[2vw] mb-[1vw]">
<ProjectCard
backgroundImage={backgroundImage}
description="Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum."
title="Title"
/>
</div>
<div className="mx-[2vw] mb-[1vw]">
<ProjectCard
backgroundImage={backgroundImage}
description="Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum."
title="Title"
/>
</div>
</div>
</div>
);
};

export default Projects;
2 changes: 1 addition & 1 deletion src/components/home/about.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const About = () => {
return (
<div className="font-Malayalam flex h-screen w-screen flex-col items-center text-center">
<div className="flex w-screen flex-col items-center text-center">
<div>
<div className="text-[2.7vw]">About</div>
<div className="-mt-[1.5vw] text-[5vw]">"NAME"</div>
Expand Down
6 changes: 6 additions & 0 deletions src/courses/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const courses = [
{
name: "Introduction to Next.js",
param: "intro-nextjs",
},
];

0 comments on commit 966e9a0

Please sign in to comment.