Skip to content

Conversation

@mikaelasturk
Copy link

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

Copy link

@Npahlfer Npahlfer left a comment

Choose a reason for hiding this comment

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

@daniellauding
Copy link

Im missing the "Please include a link to your Figma design and a Netlify link." at PR description ;)

Copy link

@daniellauding daniellauding left a 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

Choose a reason for hiding this comment

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

I didnt see any images, maybe intentionally? on the projects articles etc
image

<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>

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`

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;

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`

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"

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} />

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">

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"/>

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"/>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants