1 Commits

Author SHA1 Message Date
Morten Olsen
238d5bb768 updates 2021-08-27 21:01:01 +02:00
2 changed files with 3 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ jobs:
node-version: '12' node-version: '12'
- name: Build READM.md - name: Build READM.md
run: node scripts/update-readme.js > README.md run: node scripts/readme.js > README.md
- uses: EndBug/add-and-commit@v7 - uses: EndBug/add-and-commit@v7
with: with:

View File

@@ -1,5 +1,6 @@
import React from 'react'; import React from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import Image from 'next/image'
import image from '../public/images/me.jpg'; import image from '../public/images/me.jpg';
const Wrapper = styled.div` const Wrapper = styled.div`
@@ -56,20 +57,10 @@ const Divider = styled.div`
box-shadow: 0 0 30px rgba(255, 255, 255, .7); box-shadow: 0 0 30px rgba(255, 255, 255, .7);
`; `;
const Image = styled.img<{blurDataURL: string}>`
background: url("${({ blurDataURL }) => blurDataURL}");
position: absolute;
background-size: cover;
top: 0;
left: 0;
width: 100%;
height: 100%;
`
const Me: React.FC<{}> = () => ( const Me: React.FC<{}> = () => (
<Wrapper> <Wrapper>
<ImageWrapper> <ImageWrapper>
<Image src={image.src} blurDataURL={image.blurDataURL} /> <Image layout="fill" src={image.src} blurDataURL={image.blurDataURL} />
<Spacer /> <Spacer />
</ImageWrapper> </ImageWrapper>
<Title>Morten Olsen</Title> <Title>Morten Olsen</Title>