Skip to content

Commit

Permalink
improved lighthouse score
Browse files Browse the repository at this point in the history
  • Loading branch information
paytonjewell committed Jul 18, 2022
1 parent f4f144f commit 0fdff3c
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/components/BaseLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function BaseLayout() {
</Grid>
<Grid item>
<Box component={'footer'} display={'flex'} flexDirection={'column'} alignItems={'center'}
py={'1.5rem'} sx={{opacity: 0.4}} width={'100%'}>
py={'1.5rem'} sx={{opacity: 0.7}} width={'100%'}>
<p>template created with &hearts; by <a href={'https://paytonpierce.dev'}>Payton Pierce</a></p>
<p>&copy; 2022</p>
</Box>
Expand Down
15 changes: 9 additions & 6 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ export default function Navbar({darkMode, handleClick}) {
<Box component={'ul'} display={'flex'} justifyContent={'center'} alignItems={'center'}
gap={{xs: '2rem', md: '8rem'}}
textTransform={'lowercase'} fontSize={'1rem'}>
{links.map(link => (
<Link to={link.to} onClick={() => setActive(link.active)}>
<Box component={'li'} className={(link.active === active && !link.type) && Style.active} sx={{borderImageSource: info.gradient }}>
{links.map((link, index) => (
<Box key={index} component={'li'} className={(link.active === active && !link.type) && Style.active}
sx={{borderImageSource: info.gradient}}>
<Link to={link.to} onClick={() => setActive(link.active)}>
{!link.type && <p style={{paddingBottom: '0.5rem'}}>{link.name}</p>}
{link.type && <h1>{link.name}</h1>}
</Box>
</Link>
</Link>
</Box>
))}
<Toggler darkMode={darkMode} handleClick={handleClick}/>
<li>
<Toggler darkMode={darkMode} handleClick={handleClick}/>
</li>
</Box>
</Box>
)
Expand Down
8 changes: 4 additions & 4 deletions src/components/about/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default function About() {
className={Style.green}>(main)</span> $</span> ls</p>
<p style={{color: info.baseColor}}> Proficient With</p>
<ul className={Style.skills}>
{info.skills.proficientWith.map(proficiency => <li>{proficiency}</li>)}
{info.skills.proficientWith.map((proficiency, index) => <li key={index}>{proficiency}</li>)}
</ul>
<p style={{color: info.baseColor}}> Exposed To</p>
<ul className={Style.skills}>
{info.skills.exposedTo.map(skill => <li>{skill}</li>)}
{info.skills.exposedTo.map((skill, index) => <li key={index}>{skill}</li>)}
</ul>
</>;
}
Expand All @@ -43,8 +43,8 @@ export default function About() {
<p><span style={{color: info.baseColor}}>hobbies/interests <span
className={Style.green}>(main)</span> $</span> ls</p>
<ul>
{info.hobbies.map(hobby => (
<li><Box component={'span'} mr={'1rem'}>{hobby.emoji}</Box>{hobby.label}</li>
{info.hobbies.map((hobby, index) => (
<li key={index}><Box component={'span'} mr={'1rem'}>{hobby.emoji}</Box>{hobby.label}</li>
))}
</ul>
</>;
Expand Down
12 changes: 6 additions & 6 deletions src/components/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ export default function Home() {
return (
<Box component={'main'} display={'flex'} flexDirection={{xs: 'column', md: 'row'}} alignItems={'center'}
justifyContent={'center'} minHeight={'calc(100vh - 175px)'}>
<Box className={classNames(Style.avatar, Style.shadowed)} style={{background: info.gradient}} component={'img'} src={me} width={{xs: '35vh', md: '40vh'}}
<Box className={classNames(Style.avatar, Style.shadowed)} alt={'image of developer'} style={{background: info.gradient}} component={'img'} src={me} width={{xs: '35vh', md: '40vh'}}
height={{xs: '35vh', md: '40vh'}}
borderRadius={'50%'} p={'0.75rem'} mb={{xs: '1rem', sm: 0}} mr={{xs: 0, md: '2rem'}}/>
<Box>
<h1>Hi, I'm <span style={{background: info.gradient, webkitBackgroundClip: 'text', webkitTextFillColor: 'transparent'}}>{info.firstName}</span><span className={Style.hand}>🤚</span>
<h1>Hi, I'm <span style={{background: info.gradient, WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent'}}>{info.firstName}</span><span className={Style.hand}>🤚</span>
</h1>
<h2>I'm {info.position}.</h2>
<Box component={'ul'} p={'0.8rem'}>
{info.miniBio.map(bio => (
<EmojiBullet emoji={bio.emoji} text={bio.text}/>
{info.miniBio.map((bio, index) => (
<EmojiBullet key={index} emoji={bio.emoji} text={bio.text}/>
))}
</Box>
<Box display={'flex'} gap={'1.5rem'} justifyContent={'center'} fontSize={{xs: '2rem', md: '2.5rem'}}>
{info.socials.map(social => (
<SocialIcon link={social.link} icon={social.icon} />
{info.socials.map((social, index) => (
<SocialIcon key={index} link={social.link} icon={social.icon} label={social.label} />
))}
</Box>
</Box>
Expand Down
4 changes: 2 additions & 2 deletions src/components/home/SocialIcon.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';

function SocialIcon(props) {
const {link, icon} = props;
const {link, icon, label} = props;
return (
<a target="_blank"
<a target="_blank" aria-label={label}
rel="noopener noreferrer" href={link}>
<i className={icon} aria-hidden="true"/>
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/components/portfolio/Portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default function Portfolio() {
return (
<Box>
<Grid container display={'flex'} justifyContent={'center'}>
{info.portfolio.map(project => (
<Grid item xs={12} md={4}>
{info.portfolio.map((project, index) => (
<Grid item xs={12} md={6} key={index}>
<PortfolioBlock image={project.image} live={project.live} source={project.source} title={project.title} />
</Grid>
))}
Expand Down
Binary file modified src/img/mock1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/mock2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/mock3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/mock4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/mock5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/self.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions src/info/Info.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,28 @@ export const info = {
socials: [
{
link: "https://facebook.com",
icon: 'fa fa-facebook'
icon: 'fa fa-facebook',
label: 'facebook'
},
{
link: "https://instagram.com",
icon: 'fa fa-instagram'
icon: 'fa fa-instagram',
label: 'instagram'
},
{
link: "https://github.com",
icon: "fa fa-github"
icon: "fa fa-github",
label: 'github'
},
{
link: "https://linkedin.com",
icon: "fa fa-linkedin"
icon: "fa fa-linkedin",
label: 'linkedin'
},
{
link: "https://twitter.com",
icon: "fa fa-twitter"
icon: "fa fa-twitter",
label: 'twitter'
}
// Feel free to remove any of these that you don't have. I'll write an FAQ on how to add new ones later, let me know if you have a request for an icon!
// Just change the links so that they lead to your social profiles.
Expand Down

1 comment on commit 0fdff3c

@vercel
Copy link

@vercel vercel bot commented on 0fdff3c Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.