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

Feat/styling #28

Merged
merged 6 commits into from
Jan 2, 2024
Merged

Feat/styling #28

merged 6 commits into from
Jan 2, 2024

Conversation

tenthwalker
Copy link
Collaborator

What I did:
This pull request adds styling to bring the project in line with the wireframe and style inspiration. It updates colors, borders, layouts, class/id naming where necessary, responsive design flexibility, and removes placeholder/boilerplate code.

Did this break anything?

  • No
  • Yes

Type of change

  • New feature (non-breaking change which adds functionality)
  • Styling
  • Bug fix (non-breaking change which fixes an issue)
  • Refactor(DRY-ing up/ reorganizing code, etc.)
  • Super small fix (Corrected a typo, removed a comment, etc.)
  • Skip all the other stuff and briefly explain the fix.

Checklist:

  • If this code needs to be tested, all tests are passing
  • The code runs locally
  • There are comments where clarification/ organization is needed
  • The code is DRY. If it's not, I tried my best
  • I reviewed my code before pushing

What's next?
Incorporation of Auth0 to nail down how that will impact any further styling.

@tenthwalker tenthwalker self-assigned this Jan 2, 2024
This was linked to issues Jan 2, 2024
@tenthwalker tenthwalker added enhancement New feature or request dev task dev story + workflow labels Jan 2, 2024
@tenthwalker tenthwalker marked this pull request as ready for review January 2, 2024 06:50
@@ -10,34 +10,11 @@
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Copy link
Owner

Choose a reason for hiding this comment

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

good job cleaning this up! i didnt even thin kto check that out

}

.header-text {
color: blue;
background-color: #FDFFFC;
border-bottom: .5rem solid #235789;
Copy link
Owner

Choose a reason for hiding this comment

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

love the responsive design!

.card p {
font-size: 14px;
flex-grow: 1;
overflow: hidden;
Copy link
Owner

Choose a reason for hiding this comment

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

good use of overflow hidden!

@@ -16,11 +16,11 @@ const Card = ({ snippet }) => {

return (
<div className="card">
<div className="card-content" onClick={handleTitleClick}>
<article className="card-content" onClick={handleTitleClick}>
Copy link
Owner

Choose a reason for hiding this comment

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

awesome job limiting our divs!

Copy link

Choose a reason for hiding this comment

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

love the comments happening in here!

border-bottom: 0.5rem solid #C1292E;
border-right: 0.5rem solid #C1292E;
width: fit-content;
}
Copy link
Owner

Choose a reason for hiding this comment

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

great primary color usage!

@JoeyStewart
Copy link
Collaborator

Incredible work!

.then((data) => {
await fetch(url + new URLSearchParams(params).toString())
.then((response) => {
if (!response.ok) {
Copy link
Owner

Choose a reason for hiding this comment

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

that spacing looks incredible, i love that you cleaned so much up

#resultName {
align-self: center;
color: #161925;
background-color: #FDFFFC;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah the primary colors turned out really well! I love how it looks!

@MaryBruff MaryBruff merged commit 39101c9 into main Jan 2, 2024
transition: background-color 0.3s ease;
}
.saveButton, .favoriteButton {
background-color: #161925;
Copy link
Owner

Choose a reason for hiding this comment

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

the use of primary colors makes it really pop off, well done

}
}

@media screen and (max-width: 500px) {
Copy link

Choose a reason for hiding this comment

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

media queries 💪🏻

console.error('There was a problem with the fetch operation:', error);
});
}
setInitialResults(data.query.search[0]);
Copy link

Choose a reason for hiding this comment

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

data.query.search[0] is quite a handful - could you store this in a variable with an appropriate variable name to improve readability?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev task dev story + workflow enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Responsive Design Setup Responsiveness
5 participants