-
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
Week 12 – Design Handover – Trista & Nathalie #57
base: main
Are you sure you want to change the base?
Conversation
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.
Nathalie and Trista! such a good effort! 👏🏼 the designer must be super happy with this result. I found some small suggestions for improvements, but I guess you would be happy to ignore them all except maybe two of them. Really well done. very clean setup too🤩
src/components/ClassPieces.jsx
Outdated
<img src={image} alt={alt} className='w-[342px] h-[289px] rounded-[10px]'/> | ||
<div className="flex flex-col gap-y-2"> | ||
<h5 className="text-xl">{courseName}</h5> | ||
<p className="text-5xl">{courseInfo}</p> |
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 had a similar problem as you still have in safari for text - it overflows the container- use "white-space:normal" in order to keep it within the container.
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.
Thank you for the tip. We really need to keep an eye on other browser.
<img src={image} alt={alt} className={imageStyle} /> | ||
<div className="flex flex-col gap-y-[8px] md:gap-y-[15px] lg:gap-y-[20px]"> | ||
<h3 className=" text-lg md:text-xl ">{instructorName}</h3> | ||
<p className=" lg:text-7xl text-base leading-tight tracking-wide"> |
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.
same issue in safari as the class description container- use "white-space:normal" in order to keep it within the container.
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.
maybe store the info and images to this section in an object?
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.
maybe store instructor info in an object, so you could just loop over it and keep it more DRY?
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 is a lot if images who are huge (several megabytes), the site would preform much faster if the images was compressed and/or also had webp or avif formats.
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 could potentially save 20 mb+ if the images where optimized for web.
Using image CDNs
Compressing images
Replacing animated GIFs with video
Lazy loading images
Serving responsive images
Serving images with correct dimensions
Using WebP images
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.
Yeah good point. I actually thought about lazy loading the images that are not in the viewport, but were already late with the hand in. Ideally, we would use WebP and lazy loading. Thank you for this input!
return ( | ||
<div className="flex flex-row items-center gap-[11px] self-end md:justify-end md:gap-[20px] md:self-start "> | ||
<p className="text-8xl md:text-9xl text-yellow lg:text-lg"> | ||
Read more about it{" "} |
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.
should this be clickable?
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.
We discussed it with the designer. It's not clickable. At least not for now. Therefore, we didn't put a link behind it.
return ( | ||
<div className="flex flex-row items-center gap-[11px] self-end md:justify-end md:gap-[20px] "> | ||
<p className="text-8xl md:text-9xl text-yellow lg:text-lg"> | ||
Read more about it{" "} |
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.
same as middlereadmore - i miss some feedback in order to see that this is clickable.
import smallTraining from "/valueImg/smallTraining.png" | ||
|
||
export const ValueCards = () => { | ||
return ( |
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 it be smart to store the data needed in a separate object, and then just loop through it to render the content to keep it a bit more DRY?
The Zumba Hall | ||
</h1> | ||
<p className="mx-[24px] mb-3 mt-[8px] leading-tight md:mb-6 md:text-base lg:mb-7 lg:mt-1 lg:text-3xl"> | ||
Join our training centre and get fit through{" "} |
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.
no it's just for the gap between "through" and "Dance"
@@ -0,0 +1,37 @@ | |||
import { useState } from "react"; | |||
|
|||
export const FindUsButton = () => { |
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.
These buttons seems the same except for the copy - why make two different versions?
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.
They are almost the same. But yeah we could have just pass the content into the button element, but you know. We went the easy route 😉
The Zumba Hall | ||
</h1> | ||
<p className="mx-[24px] mb-3 mt-[8px] leading-tight md:mb-6 md:text-base lg:mb-7 lg:mt-1 lg:text-3xl"> | ||
Join our training centre and get fit through{" "} |
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.
no it's just for the gap between "through" and "Dance"
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.
Hello Nathalie and Trista, congratulations for completing your week 12 project. It looks ✨ awesome ✨ The site looks very close to the design and followed our requirements. How did you like Tailwind? Seems like you tackled it in the right way and implemented a great result! Would have been nice to see the carousel used rather than the scrollable section, maybe it's something you can improve on a second iteration of your implementation.
Good job nailing accessibility and responsiveness, kudos! 👏
@@ -11,16 +11,26 @@ | |||
}, | |||
"dependencies": { | |||
"react": "^18.2.0", | |||
"react-dom": "^18.2.0" | |||
"react-dom": "^18.2.0", | |||
"react-responsive-carousel": "^3.2.23", |
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.
please remove the installed packages if unused 🧹
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.
We didn't have the time to make a proper carousel. Therefore, the fastest way was the horizontal scroll. We talked with the designer about it, and it was okay for her.
We might consider adding a carousel when we find the time to change it.
Tailwind itself was fun. It made sense to us to use Tailwind. It's nice to add something new to our skill set.
Netlify link
https://the-zumba-hall.netlify.app/
Collaborators
[trista1987]