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(www): Add Blog section to Homepage #10024

Merged
merged 23 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4995a64
feat(www): rebase Ecosystem and Blog sections
greglobinski Nov 2, 2018
a92fa81
fix(www): fix stylelint error
greglobinski Nov 15, 2018
8f791a4
feat(): finish styles of Blog section
greglobinski Nov 16, 2018
bf10d9d
fix(www): add cover to one post for development
greglobinski Nov 16, 2018
26dc295
fix(www): update margins for section action btns
greglobinski Nov 16, 2018
a09dec8
fix(www): update margins of Blog section
greglobinski Nov 16, 2018
0cb3692
refactor(www): email-cature-form
greglobinski Nov 16, 2018
f46d9d6
refactor(www): email-cature-form
greglobinski Nov 16, 2018
6cb7fa7
feat(www): add ornaments to assets
greglobinski Nov 18, 2018
051d78c
feat(www): update colors palette
greglobinski Nov 18, 2018
5eb1af1
feat(www): add Homepage variant style to newsletter form
greglobinski Nov 18, 2018
f888249
feat(www): add Homepage variant style to newsletter form
greglobinski Nov 18, 2018
5ee473b
feat(www): mobile style for Homepage Newsletter section
greglobinski Nov 18, 2018
cb3ed45
refactor(www): refactor homepage-section
greglobinski Nov 19, 2018
08e3295
fix(www): fix homepage section padding
greglobinski Nov 19, 2018
346c4b3
refactor(www): refactor ecosystem scroollers
greglobinski Nov 19, 2018
e27d0d6
fix(www): fix some styles
greglobinski Nov 19, 2018
47cc6c3
fix(www): add cover image to one post
greglobinski Nov 19, 2018
fc0ee94
fix(www): add border-radius to cover image
greglobinski Nov 19, 2018
6c353d3
fix(www): add automaticExcerpt if the handwritten one does not exists
greglobinski Nov 19, 2018
b10cceb
feat(www): add conditional formating to post dates
greglobinski Nov 19, 2018
2f93025
fix(www): fix hover effect on Blog cards
greglobinski Nov 19, 2018
63d30f7
fix(www): remove 'Submit an article button'
greglobinski Nov 26, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/blog/2018-11-07-gatsby-for-apps/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tags:
- applications
- beyond static
excerpt: Gatsby is great for not only static sites but also traditional web applications. Using Gatsby enables the benefits of both static and web applications so you don't have to sacrifice the advantages of one approach to reap the benefits of the other.
cover: images/what-if-i-told-you.jpg
---

Gatsby is great for static sites. You probably know this! It’s equally great for web applications. You may not know this. Gatsby is great for building web experiences that leverage the benefits of both so called static sites and web applications -- simultaneously. You don't have to sacrifice the advantages of one approach to reap the benefits of the other.
Expand Down
14 changes: 14 additions & 0 deletions www/src/assets/newsletter-form-ornament.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions www/src/assets/ornaments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import NewsletterFormOrnament from "!raw-loader!./newsletter-form-ornament.svg"

export { NewsletterFormOrnament }
13 changes: 5 additions & 8 deletions www/src/components/ecosystem/ecosystem-featured-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import styled from "react-emotion"
import { Link } from "gatsby"
import Img from "gatsby-image"

import { HorizontalScrollerItem } from "../shared/horizontal-scroller"

import StarIcon from "react-icons/lib/md/star"
import ArrowDownwardIcon from "react-icons/lib/md/arrow-downward"

Expand All @@ -12,17 +14,12 @@ import presets, { colors } from "../../utils/presets"

const MAX_DESCRIPTION_LENGTH = 100

const EcosystemFeaturedItemRoot = styled(`li`)`
width: 85vw;
margin: 0 2px 0 0;
padding: 5px;

:last-child {
margin-right: 0;
}
const EcosystemFeaturedItemRoot = styled(HorizontalScrollerItem)`
margin-right: ${rhythm(options.blockMarginBottom)};

${presets.Tablet} {
border-bottom: 1px solid ${colors.gray.superLight};
box-shadow: none;
margin: 0;
padding: 0;
width: auto;
Expand Down
16 changes: 10 additions & 6 deletions www/src/components/ecosystem/ecosystem-featured-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ import React from "react"
import PropTypes from "prop-types"
import styled from "react-emotion"

import {
HorizontalScroller,
HorizontalScrollerContent,
} from "../shared/horizontal-scroller"

import presets, { colors } from "../../utils/presets"
import { rhythm, options } from "../../utils/typography"
import { scrollbarStyles } from "../../utils/styles"
import { SCROLLER_CLASSNAME } from "../../utils/scrollers-observer"

export const EcosystemFeaturedItemsRootBase = styled(`div`)`
overflow-x: scroll;
const EcosystemFeaturedItemsRoot = styled(HorizontalScroller)`
margin: ${rhythm(0.1)} -${rhythm(options.blockMarginBottom)};
-webkit-overflow-scrolling: touch;
`

const EcosystemFeaturedItemsRoot = styled(EcosystemFeaturedItemsRootBase)`
${presets.Tablet} {
border-top: 1px solid ${colors.gray.superLight};
margin-top: ${rhythm(0.4)};
Expand All @@ -31,7 +32,10 @@ export const ListBase = styled(`ul`)`
padding: 0 calc(${rhythm(options.blockMarginBottom)} - 5px) 4px;
`

const List = styled(ListBase)`
const List = styled(HorizontalScrollerContent)`
padding-left: ${rhythm(options.blockMarginBottom)};
padding-right: ${rhythm(options.blockMarginBottom)};

${presets.Tablet} {
flex-direction: column;
padding: 0;
Expand Down
Loading