Skip to content

Commit 683ce87

Browse files
Merge pull request #24 from BregornOriginal/fix-warnings
fix warnings and move profile links to index component
2 parents 18a79f0 + bbc0504 commit 683ce87

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

components/ExperienceCard.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,19 @@ const ExperienceCard = ({ experience }: Props) => {
4545
)
4646
)}
4747
</div>
48-
<p className="uppercase py-5 text-gray-300">
49-
{new Date(experience.dateStarted).toLocaleDateString('en-us', {
48+
<p className="uppercase py-5 text-gray-300" suppressHydrationWarning>
49+
{new Date(experience.dateStarted).toLocaleDateString('en-US', {
5050
year: 'numeric',
5151
month: 'short',
52+
timeZone: 'UTC',
5253
})}{' '}
5354
-{' '}
5455
{experience.isCurrentlyWorkingHere
5556
? 'Present'
56-
: new Date(experience.dateEnded).toLocaleDateString('en-us', {
57+
: new Date(experience.dateEnded).toLocaleDateString('en-US', {
5758
year: 'numeric',
5859
month: 'short',
60+
timeZone: 'UTC',
5961
})}
6062
</p>
6163
<ul className="list-disc space-y-4 ml-5 text-md max-h-32 overflow-y-scroll pr-5 scrollbar-thin scrollbar-track-black scrollbar-thumb-[#f7ab0a]/80">

components/Footer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import React from 'react';
2+
import Link from 'next/link';
23

34
type Props = {};
45

56
const Footer = (props: Props) => {
67
return (
78
<footer className="sticky bottom-5 w-full cursor-pointer">
8-
<div className="flex flex-end items-center pr-6 justify-end">
9+
<Link href="#profile" className="flex flex-end items-center pr-6 justify-end">
910
<img
1011
className="h-10 w-10 rounded-full filter grayscale hover:grayscale-0 cursor-pointer object-cover"
1112
src="https://e00-elmundo.uecdn.es/assets/multimedia/imagenes/2022/04/19/16503736092836.jpg"
1213
alt="An image to homepage"
1314
width={40}
1415
height={40}
1516
/>
16-
</div>
17+
</Link>
1718
</footer>
1819
);
1920
};

components/Profile.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ export default function Profile({ pageInfo }: Props) {
6666
<Cursor cursorColor="orange" />
6767
</h1>
6868

69-
<div className="pt-5">
70-
<Link href="#about">
71-
<button type="button" className="profileButton">About</button>
69+
<div className="pt-5 flex flex-wrap justify-center gap-4">
70+
<Link href="#about" className="profileButton">
71+
About
7272
</Link>
73-
<Link href="#experience">
74-
<button type="button" className="profileButton">Experience</button>
73+
<Link href="#experience" className="profileButton">
74+
Experience
7575
</Link>
76-
<Link href="#skills">
77-
<button type="button" className="profileButton">Skills</button>
76+
<Link href="#skills" className="profileButton">
77+
Skills
7878
</Link>
79-
<Link href="#projects">
80-
<button type="button" className="profileButton">Projects</button>
79+
<Link href="#projects" className="profileButton">
80+
Projects
8181
</Link>
8282
</div>
8383
</div>

pages/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { fetchExperiences } from '../utils/fetchExperience';
1515
import { fetchProjects } from '../utils/fetchProjects';
1616
import { fetchSocial } from '../utils/fetchSocials';
1717
import { fetchSkills } from '../utils/fetchSkills';
18-
import Link from 'next/link';
1918

2019
type Props = {
2120
pageInfo: PageInfo;
@@ -61,9 +60,7 @@ const Home = ({ pageInfo, experiences, projects, skills, socials }: Props) => {
6160
<Contact name={''} email={''} subject={''} message={''} />
6261
</section>
6362

64-
<Link href="#profile">
65-
<Footer />
66-
</Link>
63+
<Footer />
6764

6865
<AIChatWidget
6966
pageInfo={pageInfo}

styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@layer components {
66
.profileButton {
7-
@apply px-6 py-2 border border-[#242424] rounded-full uppercase text-xs
7+
@apply inline-block px-6 py-2 border border-[#242424] rounded-full uppercase text-xs
88
tracking-widest text-gray-500 transition-all hover:border-[#f7ab0a]/40 hover:text-[#f7ab0a]/40;
99
}
1010

0 commit comments

Comments
 (0)