-
Notifications
You must be signed in to change notification settings - Fork 55
Mikaelas js-project-portfolio #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Npahlfer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
|
Im missing the "Please include a link to your Figma design and a Netlify link." at PR description ;) |
daniellauding
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Clean and fresh code.
| @@ -1 +1,3 @@ | |||
| # Portfolio | |||
|
|
|||
| mikaela-js-project-portfolio.netlify.app | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <style> | ||
| @import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap'); | ||
| @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); | ||
| </style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that you added it in index.html, it loads before react mounts and causes fewer layout shifts, me usually add it as:
/* index.css */
@import url
but import in CSS is slower (blocks rendering) and can cause FOUT/FOIT (flash of unstyled text).
👍
| @@ -0,0 +1,31 @@ | |||
| import styled from "styled-components"; | |||
|
|
|||
| export const StyledSection = styled.div` | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StyledSection is well-structured and the variant mapping to theme tokens is a solid pattern. A couple of small suggestions below
| /* Tablet and up --> */ | ||
| @media (min-width: ${({ theme }) => theme.breakpoints.tablet}) { | ||
| display: flex; | ||
| flex-direction: column; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
display: flex and flex-direction don’t need to be repeated inside media queries.
| @@ -0,0 +1,31 @@ | |||
| import styled from "styled-components"; | |||
|
|
|||
| export const StyledSection = styled.div` | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may consider switching to styled.section for semantic benefits
| @@ -0,0 +1,24 @@ | |||
| import styled from "styled-components" | |||
| import { CardImage, Tag, Button, SvgIcon } from "../ui/ui" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that you built some core component =)
| <CardImage src={article.image} alt={article.alt}/> | ||
| <Tag tag={article.date} /> | ||
| <CardTitle title={article.name} /> | ||
| <BodyText text={article.description} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Would maybe recommend trying to use <Title/Text> as component and variant can be maybe "Card" or something :] but nice
| <Tag tag={article.date} /> | ||
| <CardTitle title={article.name} /> | ||
| <BodyText text={article.description} /> | ||
| <Button href={article.link} text= "Read article" variant="article"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text= " a nice little spacing maybe accidentally came here
| export const ArticleSection = ({ variant }) => { | ||
| return ( | ||
| <StyledSection variant={variant} gap="56px" padding="120px 16px"> | ||
| <SectionTitle title="My words" variant={variant} textAlign="left"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice props for alignment!
| <Avatar /> | ||
| <StyledDiv> | ||
| <BodyText text={aboutMe.name} weight="semibold" fontSizeT="tablet" | ||
| fontSizeD="desktop"fontFam="heading"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks a bit wierd with fontSizeD="desktop"fontFam="
no spacing? :D

Please include a link to your Figma design and a Netlify link.