-
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.
refactor: π· homepage layout and components
- Loading branch information
1 parent
af95d5e
commit 0c404e4
Showing
17 changed files
with
226 additions
and
164 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
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
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,20 @@ | ||
import { CONTACT } from '@/utils/constants' | ||
import HeroLink from './HeroLink' | ||
|
||
const sharedCss = 'border border-gray-300 bg-white text-neutral-900 hover:bg-gray-100 focus:ring-gray-100' | ||
|
||
const HeroContactLinks = () => { | ||
return ( | ||
<div className="mt-4 flex flex-col items-center justify-center sm:flex-row"> | ||
<HeroLink | ||
href={CONTACT.email.href} | ||
text={CONTACT.email.text} | ||
className={`${sharedCss} mb-2 sm:mb-0 sm:mr-2`} | ||
testId="hero-link-email" | ||
/> | ||
<HeroLink href={CONTACT.phone.href} text={CONTACT.phone.text} className={sharedCss} testId="hero-link-phone" /> | ||
</div> | ||
) | ||
} | ||
|
||
export default HeroContactLinks |
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,13 @@ | ||
import TypeAnimationText from '@/components/homepage/TypeAnimationText' | ||
|
||
const HeroHeading = () => { | ||
return ( | ||
<h1 data-testid="hero-heading" className="text-center text-5xl font-bold sm:text-6xl lg:text-7xl"> | ||
Daniel KrΕ‘iak | ||
<br /> | ||
<TypeAnimationText /> | ||
</h1> | ||
) | ||
} | ||
|
||
export default HeroHeading |
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,16 @@ | ||
type HeroLinkProps = { | ||
href: string | ||
text: string | ||
className: string | ||
testId: string | ||
} | ||
|
||
const sharedCss = 'w-[248px] text-md rounded-lg px-5 py-2.5 text-center font-medium focus:outline-none focus:ring-4' | ||
|
||
const HeroLink = ({ href, text, className = '', testId }: HeroLinkProps) => ( | ||
<a data-testid={testId} href={href} target="_blank" rel="noopener noreferrer" className={`${sharedCss} ${className}`}> | ||
{text} | ||
</a> | ||
) | ||
|
||
export default HeroLink |
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,29 @@ | ||
import { EXTERNAL_URL } from '@/utils/constants' | ||
import HeroLink from './HeroLink' | ||
|
||
const HeroMainLinks = () => { | ||
return ( | ||
<div className="mt-10 flex flex-col items-center justify-center sm:flex-row"> | ||
<HeroLink | ||
href={EXTERNAL_URL.linkedin} | ||
text="LinkedIn" | ||
className="mb-2 bg-blue-700 text-white hover:bg-blue-800 focus:ring-blue-300 sm:mb-0 sm:mr-2" | ||
testId="hero-link-linkedin" | ||
/> | ||
<HeroLink | ||
href={EXTERNAL_URL.github} | ||
text="GitHub" | ||
className="mb-2 bg-gray-700 text-white hover:bg-gray-800 focus:ring-gray-300 sm:mb-0 sm:mr-2" | ||
testId="hero-link-github" | ||
/> | ||
<HeroLink | ||
href={EXTERNAL_URL.resume} | ||
text="Resume" | ||
className="bg-red-700 text-white hover:bg-red-800 focus:ring-red-300 sm:mb-0" | ||
testId="hero-link-resume" | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
export default HeroMainLinks |
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,9 @@ | ||
const HeroParagraph = () => { | ||
return ( | ||
<p data-testid="hero-paragraph-1" className="mb-3 mt-4 text-center text-lg font-semibold text-neutral-600"> | ||
Hi π I am React Developer based in Brno, Czech Republic π¨πΏ | ||
</p> | ||
) | ||
} | ||
|
||
export default HeroParagraph |
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,22 @@ | ||
import { mindsetInfo } from '@/data/whatido' | ||
import Heading2 from '../shared/Heading2' | ||
|
||
const MyMindset = () => { | ||
return ( | ||
<div className="lg:w-1/2"> | ||
<Heading2 textColor="text-violet-600">π₯π I Have Committed Mindset</Heading2> | ||
{mindsetInfo.map((mindset) => ( | ||
<div className="mt-8" key={mindset.id}> | ||
<p className="mt-4 text-lg text-neutral-600"> | ||
<span className="font-bold"> | ||
<span className="text-violet-600">{mindset.id}.</span> {mindset.title} | ||
</span> | ||
</p> | ||
<p className="mt-2 text-lg text-neutral-600">{mindset.description}</p> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default MyMindset |
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,22 @@ | ||
import { skillsInfo } from '@/data/whatido' | ||
import Heading2 from '../shared/Heading2' | ||
|
||
const SkillsForCompany = () => { | ||
return ( | ||
<div className="lg:w-1/2"> | ||
<Heading2 textColor="text-violet-600">π°π My Skills For Your Company</Heading2> | ||
{skillsInfo.map((skill) => ( | ||
<div className="mt-8" key={skill.id}> | ||
<p className="mt-4 text-lg text-neutral-600"> | ||
<span className="font-bold"> | ||
<span className="text-violet-600">{skill.id}.</span> {skill.title} | ||
</span> | ||
</p> | ||
<p className="mt-2 text-lg text-neutral-600">{skill.description}</p> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default SkillsForCompany |
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,17 @@ | ||
import { Icon } from '@/utils/interfaces' | ||
import Image from 'next/image' | ||
|
||
type SkillsIconGroupProps = { | ||
icons: Icon[] | ||
className?: string | ||
} | ||
|
||
const SkillsIconGroup = ({ icons, className = '' }: SkillsIconGroupProps) => ( | ||
<div className={`flex justify-center space-x-2 ${className}`}> | ||
{icons.map((item) => ( | ||
<Image key={item.name} src={item.path} alt={item.name} width={44} height={44} /> | ||
))} | ||
</div> | ||
) | ||
|
||
export default SkillsIconGroup |
Oops, something went wrong.