-
Notifications
You must be signed in to change notification settings - Fork 88
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
Week12 - design handoff - Yifan&Yia #47
base: main
Are you sure you want to change the base?
Conversation
Yifan styling
Merge the herocard
update[style] responsiveness Footer
Yifan update style & README
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 job girls! ⭐️
It's difficult reviewing this week - but from what I know about you guys, I trust that you've followed the design closely. Seems to be working like it should!
Left some comments 🤷♀️
:root { | ||
--main-text-color: #000000; | ||
--secondary-color: #e4dbd2; | ||
--button-static-color: #b3583b; | ||
--button-hover-color: #552a1c; | ||
--button-text-color: #ffffff; | ||
} |
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! ⭐️
<div className="lauch-page"> | ||
<NavBar /> | ||
<Hero /> | ||
</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.
Could this have been a header
?
} | ||
`; | ||
|
||
export const Buttons = ({ buttonText, fontSize, paddinglr, width }) => { |
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.
Clever using props like this 🥳
src/components/ClassCard.jsx
Outdated
} | ||
|
||
//For tablets | ||
@media (min-width: 768px) and (max-width: 1024px) { |
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.
Why is there a gap between smartphones and tablets?
} | ||
`; | ||
|
||
//Hard code the class card |
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.
How come you hard coded the card instead of making it reusable?
export const Footer = () => { | ||
return ( | ||
<StyledFooter> | ||
<h3 className="footer-title"> |
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.
I love that you're using regular class names. Looks so much nicer and makes it easy to read. Totally prefer it!
@@ -0,0 +1,228 @@ | |||
import styled from "styled-components"; | |||
import buttonData from "../data/Buttons.json"; |
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.
wow, smart!
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.
Hey Yifan and Yia,
Just wanted to say great job on working with the UX designer! You guys really nailed bringing her designs to life. You really paid attention to all the details and put in the effort, and it definitely shows! Great job, guys!🤩
export const Buttons = ({ buttonText, fontSize, paddinglr, width }) => { | ||
return ( | ||
<StyledButton | ||
onClick={() => console.log(buttonText)} |
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.
This can be removed ?
paddinglr={windowWidth >= 1024 ? 32 : 16} | ||
width={windowWidth >= 744 ? 70 : windowWidth >= 448 ? 100 : 95} |
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 🌟
{/* First Card */} | ||
<StyledCard> | ||
<StyledClassImage src="/class01.png" alt="The Reformer" /> | ||
<StyledTextButton> | ||
<StyledClassName> | ||
<span className="class-keyword">The Reformer</span> - challenges | ||
core strength, stability, and balance. | ||
</StyledClassName> | ||
<StyledClassDescription> | ||
<p> | ||
We also offer 1-1 classes. <br /> | ||
Suitable for all levels of fitness. | ||
</p> | ||
</StyledClassDescription> | ||
<StyledButtonWrapper> | ||
<Buttons | ||
buttonText="Book Now" | ||
fontSize={15} | ||
paddinglr={windowWidth >= 1024 ? 32 : 16} | ||
width={windowWidth >= 744 ? 70 : windowWidth >= 448 ? 100 : 95} | ||
className="class-button" | ||
/> | ||
</StyledButtonWrapper> | ||
</StyledTextButton> | ||
</StyledCard> | ||
|
||
{/* Second Card */} | ||
<StyledCard> | ||
<StyledClassImage src="/class02.png" alt="Get on the Mat" /> | ||
<StyledTextButton> | ||
<StyledClassName> | ||
<span className="class-keyword">Get on the Mat</span> - Learn the | ||
fundamentals at your own pace. | ||
</StyledClassName> | ||
<StyledClassDescription> | ||
A great place to start your pilates journey. | ||
</StyledClassDescription> | ||
<StyledButtonWrapper> | ||
<Buttons | ||
buttonText="Book Now" | ||
fontSize={15} | ||
paddinglr={windowWidth >= 1024 ? 32 : 16} | ||
width={windowWidth >= 744 ? 70 : windowWidth >= 448 ? 100 : 95} | ||
className="class-button" | ||
/> | ||
</StyledButtonWrapper> | ||
</StyledTextButton> | ||
</StyledCard> | ||
|
||
{/* Third Card */} | ||
<StyledCard> | ||
<StyledClassImage src="/class03.png" alt="Pre and Postnatal" /> | ||
<StyledTextButton> | ||
<StyledClassName> | ||
<span className="class-keyword">Pre and Postnatal</span> | ||
</StyledClassName> | ||
<StyledClassDescription> | ||
Gentle exercises to maintain strength, flexibility, and promote | ||
relaxation. | ||
</StyledClassDescription> | ||
<StyledButtonWrapper> | ||
<Buttons | ||
buttonText="Book Now" | ||
fontSize={15} | ||
paddinglr={windowWidth >= 1024 ? 48 : 16} | ||
width={windowWidth >= 744 ? 70 : windowWidth >= 448 ? 100 : 95} | ||
className="class-button" | ||
/> | ||
</StyledButtonWrapper> | ||
</StyledTextButton> | ||
</StyledCard> | ||
|
||
{/* Fourth Card */} | ||
<StyledCard> | ||
<StyledClassImage src="/class04.png" alt="On Demand" /> | ||
<StyledTextButton> | ||
<StyledClassName> | ||
<span className="class-keyword">On Demand</span> - workout wherever, | ||
whenever, you decide. | ||
</StyledClassName> | ||
<StyledClassDescription> | ||
Live classes online and over 100 pre-recorded sessions. | ||
</StyledClassDescription> | ||
<StyledButtonWrapper> | ||
<Buttons | ||
buttonText="Book Now" | ||
fontSize={15} | ||
paddinglr={windowWidth >= 1024 ? 48 : 16} | ||
width={windowWidth >= 744 ? 70 : windowWidth >= 448 ? 100 : 95} | ||
className="class-button" | ||
/> | ||
</StyledButtonWrapper> | ||
</StyledTextButton> | ||
</StyledCard> | ||
</> | ||
); | ||
}; |
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.
Why couldn't you use a unique component instead of creating different cards which have the same structure?
margin-top: 1.5rem; | ||
} | ||
} | ||
|
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.
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.
Hi Yifan&Yia, congratulations for completing your week 12 project. It looks very nice! The site looks very close to the design and followed our requirements. How did you like Styled Components? Seems like you tackled it in the right way and implemented a great result! Now the design is not pixel perfect, but that's okay, here's a little things that need to be fixed to get closer to the desired result:
- Tablet layout doesn’t match the design: especially navbar, our classes, upcoming events and the footer section don't respect the margins and proportions or disposition of elements. Check the proportions and that elements are centered and have appropriate margins/paddings, for example:
Please fix accessibility and you're good to go 🚀 Thank you and again, well done almost there! 💪 🔥
Netlify link
https://curve-pilates.netlify.app/
Collaborators
[Citronskal]