mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
fixes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import Image from 'next/image'
|
||||
import image from '../public/images/me.jpg';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
@@ -57,10 +56,20 @@ const Divider = styled.div`
|
||||
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<{}> = () => (
|
||||
<Wrapper>
|
||||
<ImageWrapper>
|
||||
<Image layout="fill" src={image.src} blurDataURL={image.blurDataURL} />
|
||||
<Image src={image.src} blurDataURL={image.blurDataURL} />
|
||||
<Spacer />
|
||||
</ImageWrapper>
|
||||
<Title>Morten Olsen</Title>
|
||||
|
||||
Reference in New Issue
Block a user