Skip to content
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

Home / Search page #45

Merged
merged 40 commits into from
Mar 17, 2024
Merged

Home / Search page #45

merged 40 commits into from
Mar 17, 2024

Conversation

banushi-a
Copy link
Contributor

Description

I wanted to make a smaller PR to avoid making massive ones. The changes here are that I've made a home screen according to the LoFi + HiFi in the figma. It is not yet mobile responsive since there is no design for that yet, but this can be a ticket in the future.

I also made a header component that we can update in the future.

I also made some changes in the tailwind config. I figured since we are going to have to change inline colors for this in the future anyways, might as well play around with this. We can probably discuss with designers what the color palette is going to be so we can fill that out properly.

Checklist

  • Add task name to the PR title
  • Add ticket number to ("Closes #")
  • Move task to "In Review" on the Cooper Project Board
  • Add atleast one person to review your PR
  • Ask for review on Slack

banushi-a and others added 30 commits February 11, 2024 15:29
BREAKING CHANGE: modify schema
Copy link

vercel bot commented Feb 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cooper ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 6:29pm

Copy link
Collaborator

@RishikeshNK RishikeshNK left a comment

Choose a reason for hiding this comment

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

Looking 🔥 so far! We might wanna do a few changes I recommended and then we can get this merged. 🚀

Edit: Another small observation, the header is a little too squished on smaller devices and the search bar component is also cut off partially. Could you possibly also improve the responsiveness on smaller devices? 🤩

src/app/page.tsx Outdated Show resolved Hide resolved
src/components/header.tsx Outdated Show resolved Hide resolved
src/components/header.tsx Outdated Show resolved Hide resolved
src/components/login-button.tsx Outdated Show resolved Hide resolved
src/components/login-button.tsx Outdated Show resolved Hide resolved
src/components/review-form.tsx Outdated Show resolved Hide resolved
src/components/header.tsx Show resolved Hide resolved
src/components/search-bar.tsx Show resolved Hide resolved
@@ -33,6 +33,8 @@
--ring: 222.2 84% 4.9%;

--radius: 0.5rem;

--font-sans: "BentonSans";
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm slightly unsure if this will actually apply the font. See ~/app/layout.tsx. We are already applying Inter as a font. In order to apply a custom font, we may have to import and use the .woff2 file that @michellewu13 sent using the localFonts(...) function.

See: Optimizing: Fonts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that makes sense, I don't see where the file is so maybe we can do that during standup on thrusday

tailwind.config.ts Show resolved Hide resolved
@banushi-a
Copy link
Contributor Author

Looks like vercel still works with the auth change 🙏

Copy link
Collaborator

@RishikeshNK RishikeshNK left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 I don't think I fully understand how localFont works, especially when using multiple font variants, but we can probably work on that as a different ticket. Seems like the font currently being used is the default serif font (not Benton Sans). However, we can merge this for now!

@banushi-a banushi-a merged commit 3019fbe into main Mar 17, 2024
4 checks passed
@banushi-a banushi-a deleted the home-page branch March 17, 2024 01:00
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.

2 participants