How to use the @xstyled/styled-components.h1 function in @xstyled/styled-components

To help you get started, we’ve selected a few @xstyled/styled-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gregberge / gregberge.com / src / components / Navbar.js View on Github external
`

export const NavbarBrandLink = styled.a`
  flex: 0 0 auto;
  cursor: pointer;
  transition: base;
  color: lighter;

  &:hover,
  &:focus {
    color: accent;
    outline: none;
  }
`

export const NavbarBrand = styled.h1`
  font-size: 20;
  font-weight: 500;
  margin: 0;
`

export const NavbarSecondary = styled.div`
  display: none;

  ${up(
    'md',
    css`
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    `,
github argos-ci / argos / src / review / components / Navbar.js View on Github external
import styled from '@xstyled/styled-components'
import { FadeLink } from './Link'

export const Navbar = styled.nav`
  padding: 20 3;
  max-width: container;
  margin: 0 auto;
  display: flex;
`

export const NavbarBrandLink = styled(FadeLink)`
  flex: 1 0;
`

export const NavbarBrand = styled.h1`
  font-size: 20;
  color: darker;
  display: flex;
  align-items: center;
  font-weight: normal;
  margin: 0;
  text-decoration: none;
`

export const NavbarSecondary = styled.div`
  flex-shrink: 0;
`
github gregberge / gregberge.com / src / containers / Hero.js View on Github external
background-size: cover;
  mix-blend-mode: overlay;
  mask-image: linear-gradient(to top, transparent 5%, black 95%),
    linear-gradient(to right, transparent 20%, black 80%);
  mask-composite: exclude;
  -webkit-mask-composite: source-in;
`

export const HeroIntro = styled.p`
  font-family: monospace;
  font-size: 16;
  margin: 0;
  color: accent;
`

export const HeroTitle = styled.h1`
  margin: 0;
  font-size: 40;
  font-weight: 700;

  strong {
    color: lighter;
  }

  ${up(
    'md',
    css`
      font-size: 70;
    `,
  )}
`
github gregberge / gregberge.com / src / pages / 404.js View on Github external
import React from 'react'
import styled from '@xstyled/styled-components'
import { PageContainer } from '../components/Container'
import { SectionDescription } from '../components/Section'

const Title = styled.h1`
  color: lighter;
  margin: 2 0;
`

export default function NotFound() {
  return (
    
      <title>Page not found</title>
      
        We couldn’t find what you were looking for... <br>
        You should leave this page as soon as possible 😰.
      
      <div>
        <a href="https://dribbble.com/shots/2402048-Kylo-is-waiting">
          </a></div>
github smooth-code / bundle-analyzer / apps / client / src / components / Navbar.js View on Github external
import styled from '@xstyled/styled-components'
import { FadeLink } from './Link'

export const Navbar = styled.nav`
  padding: 20 3;
  max-width: container;
  margin: 0 auto;
  display: flex;
`

export const NavbarBrandLink = styled(FadeLink)`
  flex: 1 0;
`

export const NavbarBrand = styled.h1`
  font-size: 20;
  color: white;
  display: flex;
  align-items: center;
  font-weight: normal;
  margin: 0;
  text-decoration: none;
`

export const NavbarSecondary = styled.div`
  flex-shrink: 0;
`