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

What’s new page #55

Merged
merged 44 commits into from
Oct 23, 2018
Merged

What’s new page #55

merged 44 commits into from
Oct 23, 2018

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Oct 9, 2018

This is a work in progress page to get news links into the app.

My approach to this is to get a data structure with links and content types listed out. They will be sorted by newest first. Displayed with a title, where the link lives, and date. For extra credit, I'm going to see if I can filter these links with some UI.

  • List links in date order
  • Display the links with content type
  • Add UI for filtering links
  • Get unique primer.style illustrations into the page

@vercel
Copy link

vercel bot commented Oct 9, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@jonrohan jonrohan changed the base branch from site-updates to master October 10, 2018 03:12
@jonrohan jonrohan changed the title [WIP] What’s new page What’s new page Oct 11, 2018
@jonrohan
Copy link
Member Author

I'm ready for review on this,

@emilybrick can you review the design? https://primer-style-ttaprfxfpb.now.sh/news
@emplums can you review the react?

@emilybrick
Copy link
Contributor

emilybrick commented Oct 11, 2018

Hey! Dropping some design feedback in here, happy to jump on a call though.

Header

  • I would try positioning the header + intro para to where it is on the team page. Looks a bit high at the moment.
  • Looks like the nav* and container padding is jumping a bit between team & news page, not sure exactly why
  • On mobile, match typography of team page header & intro paragraph
  • On mobile, SVG is positioned above the header text, right underneath the nav

Filters

  • I'd avoid using the buttons as filters here...on primer.style that button style is primarily used for going to a new destination 🤔 curious what @broccolini thinks. It also took me a sec to realize that the buttons were filters and not separate destinations
  • I don't think filtering capabilities are actually necessary at this stage. It might make more sense to tag each item with a label for whatever type of content it is, and clicking on an individual label could filter the list to just that type of content.

I'm going to take a minute to play with the list and label styling, and I'll follow up in a bit.

Thanks for putting this together so quickly 🙌 !

@emilybrick
Copy link
Contributor

This spacing is a bit rough, but general thoughts for the list formatting/styling:
whats-new-1

filtered list:
screenshot 2018-10-11 18 02 45

Let me know what you think, I think we could definitely improve it, but might be an ok first pass?

@emilybrick
Copy link
Contributor

A couple passes at the illustration. First one feels the best to me, but could still use some refining :/

screenshot 2018-10-11 18 27 52

screenshot 2018-10-11 18 27 43

Sorry for all the last minute feedback/designs! I would be okay pushing this release to next week if it feels like too much.

@broccolini
Copy link
Member

@emilybrick I think this looks great for a first pass, I like the first illo 🙌.

Copy link
Contributor

@emplums emplums left a comment

Choose a reason for hiding this comment

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

Just left a few comments!

<Box p={4}>
<Text fontSize={5}>What’s new</Text>
<Box className="container-xl" p={3} py={7} style={{overflow: 'hidden'}}>
<FlexContainer justifyContent="space-between" flexDirection={['column', 'column', 'row', 'row']}>
Copy link
Contributor

Choose a reason for hiding this comment

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

The team pages are built to have 5 breakpoints, we might want to match that here

<Text fontSize={5}>What’s new</Text>
<Box className="container-xl" p={3} py={7} style={{overflow: 'hidden'}}>
<FlexContainer justifyContent="space-between" flexDirection={['column', 'column', 'row', 'row']}>
<Box maxWidth="550px">
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use percentages here? I think the team page is using 1/2

src/Article.js Outdated
<Text fontFamily="mono" f={1} color="blue.1">
<Link color="blue.1" href={url}>
{articleDomain(url)}
</Link>{' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this {' '} will cause that jumping behavior we saw on the team page, use a &nbsp; here instead

src/NewsList.js Outdated
import styled from 'react-emotion'

const FilterButton = styled(props => {
const Tag = props.selected ? ButtonFill : ButtonOutline
Copy link
Contributor

@emplums emplums Oct 12, 2018

Choose a reason for hiding this comment

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

this Tag isn't used, did you mean to set the tag prop in line 11 with it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I had this, and meant to delete the line, 👍

@emilybrick
Copy link
Contributor

I started playing around with ways to make these sub pages more cohesive with the main index page...

A few things I tried:

  • updated the SVG on the team page a bit (changed the angle of the hexagon & diamond so that the shapes aren't rotated on an angle)
  • took negative top margin off team page SVG
  • increased the padding top on the container-xl component

before (prod):
screenshot 2018-10-17 13 32 33

updated svg & placement:
screenshot 2018-10-17 13 50 36
screenshot 2018-10-17 13 50 41

Let me know if this feels any better, I can always roll these changes back. Still working on mobile adjustments.

Copy link
Contributor

@shawnbot shawnbot 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 this looks great! 👏

@emilybrick
Copy link
Contributor

emilybrick commented Oct 18, 2018

Pushed up most changes we talked about yesterday aside from the mobile image sizes, which I think I need @jonrohan's help with 😬.

I tried out using the team heading styles on the news page, but I'm not crazy about it:
screenshot 2018-10-18 12 35 07
screenshot 2018-10-18 12 36 03
screenshot 2018-10-18 12 35 58

Specifically on mobile it feels out of place..I reverted back to Mono. I don't feel strongly that the relationship needs to be 1:1 with title styling on the page, but we can continue discussing it if others feel strongly.

Done:
Adjusted margin for filter bar on mobile
Changed tag labels to mono
Stacked filter nav on mobile
Tightened line height for news titles to 1.25

To do:

  • SVG sizing on mobile

@emilybrick
Copy link
Contributor

emilybrick commented Oct 19, 2018

Would love some feedback on this. If it's feeling good I'd love to merge today, since this branch has been hanging around for a bit.

Based on feedback from Wednesday afternoon, I've been going back and forth with the typography on the /news list titles. Using the same size as our titles on the /team page felt really loud*. At the same time, the mono font doesn't feel as right here, as it seems like we are typically using mono for metadata or short strings (aside from the questions on the page).

As a middle ground, I'm using the sans font for the titles, but one size down from the team page titles.

Link: https://primer-style-fiipaarela.now.sh/

👋 Updates as per convo w/ @broccolini:

  • add a bit more margin between list items on /news

  • add React podcast

  • Swap filter titles to mono

  • Add all releases (not just major/minor)

  • Use full words for releases (e.g. Primer Components v4.0.0-beta or Primer CSS v10.9.0)

  • add truncation for article descriptions

  • follow up: fix link underline color to match text

done
done

echo "[ $(echo $output | sed -e "s/,$//g") ]" > ./src/data/releases.json
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to pretty-print the JSON so that diffs were more useful, but that might be tricky given the way this is generated. 😬

src/whats-new.js Outdated Show resolved Hide resolved
broccolini and others added 2 commits October 22, 2018 15:44
Co-Authored-By: jonrohan <rohan@github.com>
@emilybrick emilybrick merged commit f23ff2c into master Oct 23, 2018
@broccolini broccolini deleted the news_page branch October 24, 2018 03:27
dkngyn pushed a commit to dkngyn/primer.style that referenced this pull request Jun 9, 2019
* creating a whats new page

* Adding some links

* Updates to small text, adding link

* Adding stateful news list with filterbuttons

Co-authored-by: shawnbot <shawnbot@github.com>

* Updating the ui and extracting

* Lint

* Adding border to fill button so the filter buttons don't jump

* Change border color on hover

* Making updates to what's new design and adding more data

* Pluralizing the filters

* Updates based on feedback

* New line for prettier

* Adding padding to nav

* Using Flex instead of FlexContainer and FlexItem

* Another FlexContainer to replace

* Completing get releases data script and updating releases data

* Blue.2

* fontSize prop

* updated the design to the news page and removed unused assets

* ran the linter, added target blank and fixed a typo in an article description

* replaced 6px margin for 4px & 8px

* updated descriptions

* styling tweaks to svg illo and placement

* reduced padding top on container xl down to 8

* fixed mobile margin and margin right for team image

* linter fixes

* styling changes for news page and team page image and content

* reverted image sizing changes and renamed team svg

* Formating and using the styled octicon

* fixed sizing of svg and changed news list title font

* styling changes to filter titles and list margin

* updated get release data

* new function to create titles for releases

* changed truncation to start after 30 words

* changed diamond color to blue 2

* Update src/whats-new.js

Co-Authored-By: jonrohan <rohan@github.com>

* linter fixes
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.

5 participants