Skip to content
Open
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
74 changes: 43 additions & 31 deletions apps/frontend/src/screens/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,60 @@ import { THEMES_DATA } from '@/constants/themes';

export const Landing = () => {
const { theme } = useThemeContext();
const currentTheme = THEMES_DATA.find(data => data.name === theme);
const currentTheme = THEMES_DATA.find((data) => data.name === theme);
return (
<>
<div className="max-w-full mt-0">
<div className="flex flex-col md:flex-row w-full gap-x-16">
{
currentTheme ? (
<img
className="rounded-md w-full h-[650px] hidden md:block"
src={`${currentTheme['board-image']}`}
alt="chess-board"
/>
) : (
<img
className="rounded-md w-full md:h-3/4 hidden md:block"
src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713647295/standardboard.1d6f9426_asqzum.png"
alt="chess-board"
/>
)}
{currentTheme ? (
<img
className="rounded-md w-full h-[650px] hidden md:block"
src={currentTheme?.['board-image']}
alt="chess-board"
/>
) : (
<img
className="rounded-md w-full md:h-3/4 hidden md:block"
src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713647295/standardboard.1d6f9426_asqzum.png"
alt="chess-board"
/>
)}
<PlayCard />
</div>
</div>

<div className="mt-32 bg-bgAuxiliary2 text-textMain w-full px-14 py-14 rounded-[36px]">
<div className="lg:grid grid-cols-[45%,1fr] gap-28">
<div className="rounded-xl">
<img src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713657312/undraw_questions_re_1fy7_kqjpu3.svg" alt="chess-board" />
</div>
<div className="mt-16 lg:mt-0">
<h1 className="text-6xl font-bold text-left mt-[-10px]">Found an Issue!</h1>
<p className="text-xl mt-6">Please create an issue in our github website below. You are also invited to contribute on the project.</p>
<a
href="https://github.com/code100x/chess/issues"
target="_blank"
className="mt-10 rounded-2xl px-4 py-4 border border-slate-400 bg-transparent w-full text-2xl flex gap-10 items-center justify-center"
>
<img className="w-16 h-16" src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713657100/github-svgrepo-com_uosbko.svg" alt="icon"/>
<p className="text-4xl">Github</p>
</a>
</div>
<div className="rounded-xl">
<img
src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713657312/undraw_questions_re_1fy7_kqjpu3.svg"
alt="chess-board"
/>
</div>

<div className="mt-16 lg:mt-0">
<h1 className="text-6xl font-bold text-left mt-[-10px]">Found an Issue!</h1>
<p className="text-xl mt-6">
Please create an issue in our github website below. You are also invited to contribute on the project.
</p>

<a
href="https://github.com/code100x/chess/issues"
target="_blank"
className="mt-10 rounded-2xl px-4 py-4 border border-slate-400 bg-transparent w-full text-2xl flex gap-10 items-center justify-center"
>
<img
className="w-16 h-16"
src="https://res.cloudinary.com/dcugqfvvg/image/upload/v1713657100/github-svgrepo-com_uosbko.svg"
alt="icon"
/>
<p className="text-4xl">Github</p>
</a>
</div>
</div>
</div>

<Footer />
</>
);
};
};
Loading