Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
30e1de0
Layout: expose Root and Container components
nl0 May 8, 2019
f5f041f
marketing pages wip
nl0 May 8, 2019
98c5561
website: Landing: testimonials
nl0 May 15, 2019
0545ae4
Layout: mv Container into separate file
nl0 May 15, 2019
ddfb69b
cosntants/routes: add routes for marketing pages
nl0 May 15, 2019
a29f443
Marketing/Testimonials: tweak typography
nl0 May 15, 2019
98b7607
NavBar: adjust according to the new design
nl0 May 15, 2019
a5b5b63
Footer: adjust according to the new design
nl0 May 15, 2019
6019988
Intercom: Provider: pass props as settings, expose 'dummy'
nl0 May 15, 2019
c13662a
app: adjust intercom launcher placement
nl0 May 15, 2019
acc20e8
webpack: load jpEg as well as jpg
nl0 May 15, 2019
57896bd
Layout: expose Layout component as a named export
nl0 May 15, 2019
89e82ca
Marketing: About page
nl0 May 15, 2019
6428476
Marketing: factor-out Bullet component
nl0 May 15, 2019
c3f0dae
Marketing: tertiary color for Theme and Bar
nl0 May 15, 2019
1f84d1e
Marketing: Personas page
nl0 May 15, 2019
e8581b1
Marketing: Product page
nl0 May 15, 2019
055b109
WIP reorganize marketing pages code
nl0 May 20, 2019
62518e3
rm stripe stuff
nl0 May 26, 2019
748bc41
utils: bgOffset, img2x
nl0 May 26, 2019
853eb25
WIP reorganize marketing pages
nl0 May 26, 2019
a5e3557
Footer: position relative
nl0 May 26, 2019
efa26a4
package: bump mui to v4
nl0 Jun 7, 2019
adf7ac5
app: rm obsolete code
nl0 Jun 7, 2019
81e1b7b
adjust mui imports
nl0 Jun 7, 2019
6e2b4a4
mui themes: adjust for mui v4
nl0 Jun 7, 2019
ab26f88
website: Landing: move things, responsive ui WIP
nl0 Jun 10, 2019
f37f925
utils/styledBy
nl0 Jun 11, 2019
ca864c8
Landing: Testimonials, tweaks
nl0 Jun 11, 2019
546fea2
website/components/Illustration: prettify
nl0 Jun 12, 2019
2869ae2
website/components/Backgrounds: adjust Backlight4
nl0 Jun 12, 2019
6e3dfe4
website/components/Plus: adjust, prettify
nl0 Jun 12, 2019
f241920
utils/styledBy: adjust callback params
nl0 Jun 12, 2019
5ddd209
website/components/Plus: use styledBy
nl0 Jun 12, 2019
5c73693
website/pages/Landing/Hero: prettify
nl0 Jun 12, 2019
a6f8081
website/pages/Landing/UseQuilt: prettify
nl0 Jun 12, 2019
e924d6e
website: Landing/Pricing: mobile adjustments
nl0 Jun 12, 2019
2820123
website: Landing: more about quilt mobile adjustments
nl0 Jun 12, 2019
e4c3c54
website/pages/About: mobile adjustments
nl0 Jun 12, 2019
37feea4
website/components/Bullet: use styledBy
nl0 Jun 12, 2019
9a43a45
website: Personas page: mobile adjustments
nl0 Jun 12, 2019
993b33c
website: Product page: mobile adjustments
nl0 Jun 12, 2019
ca67470
website: adjust backlights
nl0 Jun 13, 2019
8fce9e7
pkg: add react-router-hash-link
nl0 Jun 13, 2019
e9d2d96
website: fix #pricing navigation
nl0 Jun 13, 2019
2786460
Footer: fix links, adjust for mobile
nl0 Jun 13, 2019
18775f4
NavBar: adjust for mobile + drawer WIP
nl0 Jun 13, 2019
9953cc5
Layout: rm Container component (in favour of MUI/Container)
nl0 Jun 14, 2019
85c51af
pkg: bump mui
nl0 Jun 14, 2019
cbc8426
pkg: rm styled-components
nl0 Jun 14, 2019
bf58c02
Merge branch 'master' into new-website
nl0 Jul 9, 2019
bd56ad0
add `enableMarketingPages` to the config schema
nl0 Jul 9, 2019
82b3570
bump mui
nl0 Jul 9, 2019
bffebe0
Auth: adjust Box imports
nl0 Jul 9, 2019
ae56f55
Sparkline: dont use deprecated constant
nl0 Jul 10, 2019
cad652b
sort out theme nesting and stuff, fix some styling
nl0 Jul 10, 2019
1523ab7
HashLink component that handles ref fwd properly
nl0 Jul 16, 2019
6891c69
handle NoSuchBucket error
nl0 Jul 17, 2019
85c68c7
NavBar: mobile UI
nl0 Jul 17, 2019
0e36d08
Footer: better mobile ux
nl0 Jul 18, 2019
8d755ea
chmod -x
nl0 Jul 18, 2019
069576b
rm Feature component
nl0 Jul 18, 2019
959538a
Footer: align items
nl0 Jul 18, 2019
9841d7e
Logo component
nl0 Jul 18, 2019
8c4aec5
Footer, NavBar: use Logo component
nl0 Jul 18, 2019
eab473b
rm app/img (unused)
nl0 Jul 18, 2019
06b016d
Footer: adjust mobile styles a little
nl0 Jul 18, 2019
d3b2abb
Merge branch 'master' into new-website
nl0 Jul 18, 2019
be31602
website: landing: apn logo
nl0 Jul 23, 2019
d825a4b
optimize pngs w/ pngquant
nl0 Jul 23, 2019
74a4a58
optimize svgs w/ svgo
nl0 Jul 23, 2019
259b5c0
clean up global styles
nl0 Jul 23, 2019
0d3181e
Merge branch 'master' into new-website
nl0 Jul 23, 2019
60bc020
Merge branch 'master' into new-website
nl0 Jul 24, 2019
40dae6d
Merge branch 'master' into new-website
akarve Jul 30, 2019
d9672e2
Merge branch 'master' into new-website
nl0 Aug 10, 2019
c7ac445
AWS/ES: dont require _source
nl0 Aug 10, 2019
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
21 changes: 15 additions & 6 deletions catalog/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Needed for redux-saga es6 generator support
import '@babel/polyfill'

// TODO: remove after mui v4 release
import './installStyles'
/* eslint-disable import/first */

// Import all the third party stuff
import * as React from 'react'
import ReactDOM from 'react-dom'
import { createBrowserHistory as createHistory } from 'history'
import 'sanitize.css/sanitize.css'
import { ThemeProvider } from '@material-ui/styles'
import * as M from '@material-ui/core'

// side-effect: inject global css
import 'sanitize.css'

// Import root app
import Error from 'components/Error'
Expand Down Expand Up @@ -100,6 +100,7 @@ const sentryUserSelector = (state) => {
const render = (messages) => {
ReactDOM.render(
nest(
[M.MuiThemeProvider, { theme: style.appTheme }],
WithGlobalStyles,
FinalBoundary,
Sentry.Provider,
Expand All @@ -110,15 +111,23 @@ const render = (messages) => {
Data.Provider,
Cache.Provider,
[Config.Provider, { path: '/config.json' }],
[ThemeProvider, { theme: style.theme }],
[React.Suspense, { fallback: <Placeholder /> }],
[Sentry.Loader, { userSelector: sentryUserSelector }],
ErrorBoundary,
FormProvider,
Notifications.Provider,
[APIConnector.Provider, { fetch, middleware: [Auth.apiMiddleware] }],
[Auth.Provider, { checkOn: LOCATION_CHANGE, storage }],
[Intercom.Provider, { userSelector: intercomUserSelector }],
[
Intercom.Provider,
{
userSelector: intercomUserSelector,
horizontal_padding:
// align the launcher with the right side of the container
(window.innerWidth - Math.min(1280, window.innerWidth)) / 2 + 32,
vertical_padding: 59,
},
],
[
Tracking,
{
Expand Down
3 changes: 1 addition & 2 deletions catalog/app/components/Error/Error.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import PT from 'prop-types'
import * as React from 'react'
import { setPropTypes } from 'recompose'
import { unstable_Box as Box } from '@material-ui/core/Box'
import Typography from '@material-ui/core/Typography'
import { Box, Typography } from '@material-ui/core'
import { styled } from '@material-ui/styles'

import { composeComponent } from 'utils/reactTools'
Expand Down
46 changes: 0 additions & 46 deletions catalog/app/components/Feature/Feature.js

This file was deleted.

1 change: 0 additions & 1 deletion catalog/app/components/Feature/index.js

This file was deleted.

32 changes: 0 additions & 32 deletions catalog/app/components/Feature/messages.js

This file was deleted.

223 changes: 154 additions & 69 deletions catalog/app/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,161 @@
import * as React from 'react'
import { FormattedMessage } from 'react-intl'
import { withStyles } from '@material-ui/styles'
import { Link } from 'react-router-dom'
import * as M from '@material-ui/core'

import FAIcon from 'components/FAIcon'
import { blog, twitter, gitWeb } from 'constants/urls'
import * as RT from 'utils/reactTools'
import * as Intercom from 'components/Intercom'
import Logo from 'components/Logo'
import * as style from 'constants/style'
import * as URLS from 'constants/urls'
import * as Config from 'utils/Config'
import HashLink from 'utils/HashLink'
import * as NamedRoutes from 'utils/NamedRoutes'

import messages from './messages'

export default RT.composeComponent(
'Footer',
withStyles(({ palette, breakpoints, spacing: { unit } }) => ({
root: {
backgroundColor: palette.primary.dark,
color: palette.getContrastText(palette.primary.dark),
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-between',
paddingBottom: 2 * unit,
paddingTop: 2 * unit,
},
col: {
width: '25%',
textAlign: 'center',
[breakpoints.down('xs')]: {
width: '100%',
'& + &': {
marginTop: 2 * unit,
},
},
},
small: {
fontSize: '.8em',
lineHeight: '2em',
opacity: 0.7,
},
link: {
fontSize: '2em',
lineHeight: '2em',
'&, &:active, &:visited': {
color: 'inherit',
opacity: 0.9,
},
'&:hover, &:focus': {
color: 'inherit',
opacity: 1,
},
},
})),
({ classes }) => (
<footer className={classes.root}>
<div className={classes.col}>
<a className={classes.link} href={twitter}>
<FAIcon type="twitter" />
</a>
</div>
<div className={classes.col}>
<a className={classes.link} href={gitWeb}>
<FAIcon type="github" />
</a>
</div>
<div className={classes.col}>
<a className={classes.link} href={blog}>
<FAIcon type="medium" />
</a>
</div>
<div className={classes.col}>
<p className={classes.small}>
&copy;&nbsp;
<FormattedMessage {...messages.copy} />
</p>
</div>
</footer>
),
import bg from './bg.png'
import iconFacebook from './icon-facebook.svg'
import iconGithub from './icon-github.svg'
import iconTwitter from './icon-twitter.svg'
import iconMedium from './icon-medium.svg'

const Footer = M.styled('footer')(({ theme: t }) => ({
background: `left / 64px url(${bg})`,
boxShadow: [
'0px -12px 24px 0px rgba(25, 22, 59, 0.05)',
'0px -16px 40px 0px rgba(25, 22, 59, 0.07)',
'0px -24px 88px 0px rgba(25, 22, 59, 0.16)',
],
height: 230,
paddingTop: t.spacing(6),
position: 'relative',
[t.breakpoints.down('xs')]: {
alignItems: 'center',
display: 'flex',
paddingTop: 0,
},
}))

const Container = M.styled(M.Container)(({ theme: t }) => ({
alignItems: 'center',
display: 'grid',
[t.breakpoints.up('sm')]: {
gridRowGap: t.spacing(6),
gridTemplateColumns: 'auto 1fr auto',
gridTemplateRows: '36px auto',
gridTemplateAreas: `
"logo . links"
"copy . icons"
`,
},
[t.breakpoints.down('xs')]: {
gridRowGap: t.spacing(3),
gridTemplateColumns: '1fr',
gridTemplateRows: '36px auto auto auto',
gridTemplateAreas: `
"logo"
"links"
"icons"
"copy"
`,
},
}))

const NavLink = (props) => (
<M.Link
variant="button"
underline="none"
color="textPrimary"
component={props.to ? HashLink : undefined}
{...props}
/>
)

const NavSpacer = () => <M.Box ml={{ xs: 2, sm: 3 }} />

const NavIcon = ({ icon, ...props }) => (
<M.Box component="a" {...props}>
<M.Box component="img" height={18} src={icon} alt="" display="block" />
</M.Box>
)

export default () => {
const cfg = Config.useConfig()
const { urls } = NamedRoutes.use()
const intercom = Intercom.use()
return (
<M.MuiThemeProvider theme={style.navTheme}>
<Footer>
<Container maxWidth="lg">
<M.Box
style={{ gridArea: 'logo' }}
display="flex"
justifyContent={{ xs: 'center', sm: 'flex-start' }}
>
<M.Box component={Link} to={urls.home()} display="block">
<Logo />
</M.Box>
</M.Box>

<M.Box
component="nav"
display="flex"
alignItems="center"
justifyContent={{ xs: 'center', sm: 'flex-end' }}
style={{ gridArea: 'links' }}
>
<NavLink href={URLS.docs} target="_blank">
Docs
</NavLink>
{!!cfg.enableMarketingPages && (
<>
<NavSpacer />
<NavLink to={`${urls.home()}#pricing`}>Pricing</NavLink>
</>
)}
<NavSpacer />
<NavLink href={URLS.blog} target="_blank">
Blog
</NavLink>
<NavSpacer />
<NavLink href={URLS.jobs} target="_blank">
Jobs
</NavLink>
{!!cfg.enableMarketingPages && (
<>
<NavSpacer />
<NavLink to={urls.about()}>About</NavLink>
</>
)}
</M.Box>

<M.Box
style={{ gridArea: 'copy' }}
display="flex"
justifyContent={{ xs: 'center', sm: 'flex-start' }}
>
<M.Typography color="textSecondary">
&copy;&nbsp;
<FormattedMessage {...messages.copy} />
</M.Typography>
</M.Box>

<M.Box
component="nav"
display="flex"
justifyContent={{ xs: 'center', sm: 'flex-end' }}
style={{ gridArea: 'icons' }}
>
<NavIcon icon={iconFacebook} href={URLS.facebook} target="_blank" />
<NavIcon icon={iconTwitter} href={URLS.twitter} target="_blank" ml={4} />
<NavIcon icon={iconGithub} href={URLS.gitWeb} target="_blank" ml={4} />
<NavIcon icon={iconMedium} href={URLS.blog} target="_blank" ml={4} />
{!intercom.dummy && (
<M.Box ml={4} width={60} display={{ xs: 'none', sm: 'block' }} />
)}
</M.Box>
</Container>
</Footer>
</M.MuiThemeProvider>
)
}
Binary file added catalog/app/components/Footer/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions catalog/app/components/Footer/icon-facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions catalog/app/components/Footer/icon-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions catalog/app/components/Footer/icon-medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions catalog/app/components/Footer/icon-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading