Front-end team lead
Oslo Market Solutions
espen_dev
esphen
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
import React from 'react';
import { css } from 'react-emotion';
const linkClass = css`
color: #bc128e;
font-size: 1.25rem;
margin: 0.5em 0;
text-decoration: none;
`;
const App = () => (
<a href="/" className={linkClass}>
Emotion example!
</a>
);
import React from 'react';
import { css } from 'react-emotion';
const link = `
color: #bc128e;
font-size: 1.25rem;
margin: 0.5em 0;
text-decoration: none;
`;
const App = () => (
<a href="/" css={link}>
Emotion example!
</a>
);
import React from 'react';
import styled from 'react-emotion';
const Box = styled.div`
padding: 25px;
color: white;
background-color: ${props => props.backgroundColor};
`;
const App = () => (
<>
<Box backgroundColor="red">
Red box
</Box>
<Box backgroundColor="blue">
Blue box
</Box>
</>
);
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi nec metus justo. Aliquam erat volutpat.
import React from 'react';
import { Wrapper } from './styles';
const FooComponent = () => (
<Wrapper>
<h1>Hello world!</h1>
<p>I am using emotion</p>
</Wrapper>
);
export default FooComponent;