Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some basic styling and placeholders added for the main page #64

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 99 additions & 3 deletions client/src/pages/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,105 @@ const MainPage = (): JSX.Element => {
const user = useAppSelector((state) => state.user.userData);

return (
<div className="min-h-screen bg-gray-100 flex flex-col items-center justify-center">
<h1 className="text-4xl font-extrabold mb-4">Main Page</h1>
<h1>Welcome {user?.firstName} !</h1>
<div className="pt-40 min-h-screen bg-gray-900 text-white flex flex-col items-center justify-center p-4">
<h1 className="text-4xl font-extrabold mb-4">Welcome!</h1>

<section className="w-full max-w-4xl p-4 mt-4 bg-gradient-to-l from-gray-700 via-gray-800 to-gray-900 rounded-lg shadow-lg flex md:flex-row flex-col items-center gap-4">
<img
src="https://picsum.photos/200/300?grayscale"
alt="Description of Image 1"
className="flex-shrink-0 w-full md:w-1/2 rounded-lg object-cover"
style={{ maxHeight: "300px" }}
/>
<div className="flex-grow">
<h3 className="text-2xl font-bold mb-2">About Code Hammers</h3>
<p className="text-gray-300">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
in ligula eu erat sollicitudin porttitor. Nunc congue mi eget nunc
dapibus dictum.Duis tempus diam ac massa bibendum, sed tempus sapien
posuere. In elementum enim ac dui interdum porta. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac.
</p>
</div>
</section>

<section className="w-full max-w-4xl p-4 mt-4 bg-gradient-to-r from-gray-700 via-gray-800 to-gray-900 rounded-lg shadow-lg flex md:flex-row flex-col items-center gap-4">
<img
src="https://picsum.photos/200/300?grayscale"
alt="Description of Image 1"
className="flex-shrink-0 w-full md:w-1/2 rounded-lg object-cover md:order-last"
style={{ maxHeight: "300px" }}
/>
<div className="flex-grow">
<h3 className="text-2xl font-bold mb-2">Features</h3>
<p className="text-gray-300">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
in ligula eu erat sollicitudin porttitor. Nunc congue mi eget nunc
dapibus dictum. Duis tempus diam ac massa bibendum, sed tempus
sapien posuere. In elementum enim ac dui interdum porta.
Pellentesque habitant morbi tristique senectus et netus et malesuada
fames ac.
</p>
</div>
</section>

<section className="w-full max-w-4xl p-4 mt-4 bg-gradient-to-l from-gray-700 via-gray-800 to-gray-900 rounded-lg shadow-lg flex md:flex-row flex-col items-center gap-4">
<img
src="https://picsum.photos/200/300?grayscale"
alt="Description of Image 1"
className="flex-shrink-0 w-full md:w-1/2 rounded-lg object-cover"
style={{ maxHeight: "300px" }}
/>
<div className="flex-grow">
<h3 className="text-2xl font-bold mb-2">Get Started!</h3>
<p className="text-gray-300">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
in ligula eu erat sollicitudin porttitor. Nunc congue mi eget nunc
dapibus dictum.Duis tempus diam ac massa bibendum, sed tempus sapien
posuere. In elementum enim ac dui interdum porta. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac.
</p>
</div>
</section>

<section className="w-full max-w-4xl p-4 mt-4 bg-gradient-to-r from-gray-700 via-gray-800 to-gray-900 rounded-lg shadow-lg flex md:flex-row flex-col items-center gap-4">
<img
src="https://picsum.photos/200/300?grayscale"
alt="Description of Image 1"
className="flex-shrink-0 w-full md:w-1/2 rounded-lg object-cover md:order-last"
style={{ maxHeight: "300px" }}
/>
<div className="flex-grow">
<h3 className="text-2xl font-bold mb-2">Boopity Bops</h3>
<p className="text-gray-300">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
in ligula eu erat sollicitudin porttitor. Nunc congue mi eget nunc
dapibus dictum. Duis tempus diam ac massa bibendum, sed tempus
sapien posuere. In elementum enim ac dui interdum porta.
Pellentesque habitant morbi tristique senectus et netus et malesuada
fames ac.
</p>
</div>
</section>

<section className="w-full max-w-4xl p-4 mt-4 bg-gradient-to-l from-gray-700 via-gray-800 to-gray-900 rounded-lg shadow-lg flex md:flex-row flex-col items-center gap-4">
<img
src="https://picsum.photos/200/300?grayscale"
alt="Description of Image 1"
className="flex-shrink-0 w-full md:w-1/2 rounded-lg object-cover"
style={{ maxHeight: "300px" }}
/>
<div className="flex-grow">
<h3 className="text-2xl font-bold mb-2">Bopitty Boops</h3>
<p className="text-gray-300">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
in ligula eu erat sollicitudin porttitor. Nunc congue mi eget nunc
dapibus dictum.Duis tempus diam ac massa bibendum, sed tempus sapien
posuere. In elementum enim ac dui interdum porta. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac.
</p>
</div>
</section>
</div>
);
};
Expand Down
17 changes: 0 additions & 17 deletions client/src/pages/MainPage/__snapshots__/MainPage.test.tsx.snap

This file was deleted.

Loading