-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
170 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { Section } from '@/components/2D/Section.jsx' | ||
import { GameEducation } from '@/components/2D/Game/Prizes/Education.jsx' | ||
import { GameProjects } from '@/components/2D/Game/Prizes/Projects.jsx' | ||
import { GameCertifications } from '@/components/2D/Game/Prizes/Certifications.jsx' | ||
import { GameTalks } from '@/components/2D/Game/Prizes/Talks.jsx' | ||
import { GameExperience } from '@/components/2D/Game/Prizes/Experience.jsx' | ||
import { useCursorHandlers } from '@/components/2D/Cursor.jsx' | ||
|
||
export const FullInfo = ({ before, setShowFullInformation, after }) => { | ||
const cursorHandlers = useCursorHandlers() | ||
|
||
return ( | ||
<Section key="placeholder" className="fixed bg-white z-20 !py-0"> | ||
<div className="overflow-y-auto max-w-full overflow-x-hidden px-3 lg:pl-0 lg:pr-3"> | ||
{before && before} | ||
|
||
{setShowFullInformation && ( | ||
<button | ||
{...cursorHandlers} | ||
onClick={e => { | ||
e.stopPropagation() | ||
setShowFullInformation(false) | ||
}} | ||
className="absolute top-0 right-0 text-primary p-2 z-20 bg-white rounded-bl-2xl scale-75 outline-squircle"> | ||
<svg xmlns="http://www.w3.org/2000/svg" className="w-10 h-10" viewBox="0 0 24 24"> | ||
<path | ||
fill="currentColor" | ||
d="m12 13.4l-2.917 2.925q-.277.275-.704.275t-.704-.275q-.275-.275-.275-.7t.275-.7L10.6 12L7.675 9.108Q7.4 8.831 7.4 8.404t.275-.704q.275-.275.7-.275t.7.275L12 10.625L14.892 7.7q.277-.275.704-.275t.704.275q.3.3.3.713t-.3.687L13.375 12l2.925 2.917q.275.277.275.704t-.275.704q-.3.3-.712.3t-.688-.3z" | ||
/> | ||
</svg> | ||
</button> | ||
)} | ||
|
||
<br /> | ||
<Title title="Educations" subTitle="My academic background" /> | ||
<GameEducation /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<Title | ||
title="Projects" | ||
subTitle="The open source projects I worked on (scroll horizontally)" | ||
/> | ||
<GameProjects /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<Title title="Certifications" subTitle="My certifications (scroll horizontally)" /> | ||
<GameCertifications /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<Title title="Talks" subTitle="The talks I gave (less than a scrollable area :D )" /> | ||
<GameTalks /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<Title | ||
title="Work experience" | ||
subTitle="List of the companies I worked for (scroll horizontally)" | ||
/> | ||
<GameExperience /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
{after && after} | ||
</div> | ||
</Section> | ||
) | ||
} | ||
|
||
const Title = ({ title, subTitle }) => ( | ||
<div className="mb-5"> | ||
<h2 className="w-[100vw] text-left text-3xl lg:text-4xl font-bold text-primary mt-6 lg:mt-8"> | ||
{title} | ||
</h2> | ||
{subTitle && ( | ||
<p className="w-[100vw] text-left text-[12px] lg:text-md text-gray-400"> | ||
<span className="hidden lg:inline ml-2 mr-1">> </span> | ||
{subTitle} | ||
</p> | ||
)} | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters