mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
33 lines
595 B
TypeScript
33 lines
595 B
TypeScript
import React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
const Wrapper = styled.div`
|
|
display: flex;
|
|
display-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
`;
|
|
|
|
const Image = styled.div<{ src: string }>`
|
|
border: 30px #efefef solid;
|
|
width: 360px;
|
|
border-radius: 50%;
|
|
background: url('${({ src }) => src}');
|
|
background-size: cover;
|
|
`;
|
|
|
|
const Spacer = styled.div`
|
|
padding-bottom: 100%;
|
|
`;
|
|
|
|
const Me: React.FC<{}> = () => (
|
|
<Wrapper>
|
|
<Image src="/images/me.jpg">
|
|
<Spacer />
|
|
</Image>
|
|
</Wrapper>
|
|
);
|
|
|
|
export default Me;
|