We are no longer using w2 for our website. Our new website is deployed using https://github.com/wunderdogsw/w3.
React site with hardcoded content, no ssr, no cms. Easily hackable by anybody because everything is hardcoded. No need to make complicated UIs for CMS integrations etc.
- You need to install our fonts to the src/fonts folder, these can be found in our marketing materials
yarn
yarn dev
oryarn dev --open
to magically open in browser- Go to localhost:1234
Make a pull request. Add @thatsprettyfaroutman or @niutski as a reviewer. In case you made visual changes, show them to Addu. Additional info @ wunderwiki
Site lives in amazon s3 bucket and uses cloudfront CDN. Changes to master will be deployed automatically via Travis CI.
- Staging
- CI tuning so master isn't automatically deployed. Maybe use git tag or slack integration 😱
- Guide: How to create content ( for non-developers )
- 301 redirects from old site
- Lynx support
- Clear old files from s3 when releaseing new build
- No server side rendering. Might cause problems when sharing links to facebook etc.
- No ie support, because we like to keep things simple. Edge works fine. According to our analytics barely anyone uses ie anyway.
Contains react components. Most of them are cosmetic only adding styles to items in contents dir.
Contains constants used throught the app
Contains dynamically loaded components with all the actual content of the site. These are usually wrapped in components found in components dir. JSX Example:
import Hero from 'App/components/Hero'
import { Hero as Content } from 'App/contents/other/Hero'
export default () => (
<div className="SomeContainer">
<Hero>
<Content />
</Hero>
</div>
)
Hero component adds the css styling to dynamically loaded Content
Contains helper functions for fetching external data, blog posts and such.
Contains main routes or views. There is only two atm. Home
is the landing page and everythign else is just Page
Contains app state. Its made with react context api and is provided via hoc to the components that need it.
Contains utility functions
Main tag styles are found in root css file: src/index.css
. Rest of the styles are written so that each component have their own styles. Positioning of the components are overriden in components found in routes dir. Each component try to fill as much space as they are allowed by their container component.