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

Pja sk pretty welcome screen #42

Merged
merged 18 commits into from
May 25, 2020
Merged

Conversation

SaraSweetie
Copy link
Contributor

@SaraSweetie SaraSweetie commented May 19, 2020

For an example of how to fill this template out, see this Pull Request.

To Do

  • Meet as a group to discuss the app's name, colors, fonts, etc.
  • Implement Google Fonts
  • Create CSS color variables for the color pallet
  • Create a header component for the name/logo
  • Create a repeating background image
  • Design button hover effects
  • Check color contrast for accessibility
  • Fix Bug: ShareList.js? If the token field is empty the app breaks.
  • Extra: CSS animations? drop-shadows?
  • Extra: icons/ or simple graphics?
  • Extra: style the error message if a token is invalid?

Description

We had a design meeting as a group and collaborated on an app name, fonts, and colors.

Taking that information we designed the welcome screen.

  • Black has some green in it, there is a CSS color variable for black.
  • A class of .error was created for error messages. I had difficulty finding a bright color that would pass contrast ratio standards for accessibility on top of the light blue background color.
  • A header component was added to the pages. Previous <h1> tags were converted to <h2> tags. After the Header component is the tag and it's contents.

Related Issue

closes #16

Acceptance Criteria

The welcome screen (the screen a user sees before they’ve created their list) looks something like the following (or equivalent, use your creativity!):

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
💯 Add tests
🔗 Update dependencies
📜 Docs

Updates

Before

Welcome Screen
Screen Shot 2020-05-19 at 3 17 29 PM

Error message on the Welcome Screen
Screen Shot 2020-05-19 at 3 17 54 PM

After

Home Screen showing a dark button hover state and error message
Screen Shot 2020-05-24 at 9 47 10 AM

Testing Steps / QA Criteria

View our branch pja-sk-pretty-welcom-screen

@laurenmbeatty
Copy link
Contributor

That background is super cute. ❤️ 🍳

@SaraSweetie SaraSweetie marked this pull request as ready for review May 23, 2020 19:30
*/

body {
background-size: 22%;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

background-size can be used to adjust the scale of the repeat image.

@@ -0,0 +1,13 @@
import React from 'react';

class Header extends React.Component {
Copy link
Contributor

@laurenmbeatty laurenmbeatty May 23, 2020

Choose a reason for hiding this comment

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

Awesome to separate this out into its own component. If you wanted, you could make this a simple functional component like:
const Header = () => <h1>Eggheadded</h1>

and then export default at the bottom as you have currently.

'We couldn't find that shopping list. Please try again or create a
new list.'
</p>
<React.Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

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

Another way to write a React.Fragment is: <></> instead of <React.Fragment></React.Fragment>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just learned about <React.Fragement>. So thanks for teaching me a shorthand! It's good to know.

@@ -10,13 +40,91 @@
display: flex;
flex-direction: column;
font-size: 1em;
background-color: #dff2f2;
max-width: 450px;
Copy link
Contributor

Choose a reason for hiding this comment

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

You may end up making this a little wider. The other team added an item details link/button to the shopping details page.

@laurenmbeatty
Copy link
Contributor

I think this looks very cute. I'm a vote for either way for the background colors. I think they both look great! Well done!

Love that you ran this through a contrast-checker for a11y.

Copy link
Contributor

@laurenmbeatty laurenmbeatty left a comment

Choose a reason for hiding this comment

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

Thumbs-up from me. I'll let the team vote on background-color. This meets all of this week's AC for making the home screen look pretty. : )

Copy link
Contributor

@skillitzimberg skillitzimberg left a comment

Choose a reason for hiding this comment

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

Thank you! It looks great!

--light-gray: #cccccc;
--dark-gray: #282c34;
--black: #0f272a;
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the green inflected black! nice.

Copy link
Contributor

@espain16 espain16 left a comment

Choose a reason for hiding this comment

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

I think the welcome page looks really nice.

@laurenmbeatty
Copy link
Contributor

Great work. Your incremental commits are 🔥 .

@jaysonjphillips
Copy link

Awesome work!

@SaraSweetie SaraSweetie merged commit e8666ab into master May 25, 2020
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.

14. As a user, I want the welcome screen to look pretty
5 participants