-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feat/styling #28
Conversation
@@ -10,34 +10,11 @@ | |||
content="Web site created using create-react-app" | |||
/> | |||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | |||
<!-- |
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.
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; |
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.
love the responsive design!
.card p { | ||
font-size: 14px; | ||
flex-grow: 1; | ||
overflow: hidden; |
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.
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}> |
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.
awesome job limiting our divs!
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.
love the comments happening in here!
border-bottom: 0.5rem solid #C1292E; | ||
border-right: 0.5rem solid #C1292E; | ||
width: fit-content; | ||
} |
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 primary color usage!
Incredible work! |
.then((data) => { | ||
await fetch(url + new URLSearchParams(params).toString()) | ||
.then((response) => { | ||
if (!response.ok) { |
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.
that spacing looks incredible, i love that you cleaned so much up
#resultName { | ||
align-self: center; | ||
color: #161925; | ||
background-color: #FDFFFC; |
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 the primary colors turned out really well! I love how it looks!
transition: background-color 0.3s ease; | ||
} | ||
.saveButton, .favoriteButton { | ||
background-color: #161925; |
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.
the use of primary colors makes it really pop off, well done
} | ||
} | ||
|
||
@media screen and (max-width: 500px) { |
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.
media queries 💪🏻
console.error('There was a problem with the fetch operation:', error); | ||
}); | ||
} | ||
setInitialResults(data.query.search[0]); |
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.
data.query.search[0]
is quite a handful - could you store this in a variable with an appropriate variable name to improve readability?
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?
Type of change
Checklist:
What's next?
Incorporation of Auth0 to nail down how that will impact any further styling.