mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
Compare commits
1 Commits
v1.1175338
...
v1.1175365
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84f4de421f |
@@ -1,6 +1,5 @@
|
|||||||
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`
|
||||||
@@ -57,10 +56,20 @@ 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 layout="fill" src={image.src} blurDataURL={image.blurDataURL} />
|
<Image src={image.src} blurDataURL={image.blurDataURL} />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</ImageWrapper>
|
</ImageWrapper>
|
||||||
<Title>Morten Olsen</Title>
|
<Title>Morten Olsen</Title>
|
||||||
|
|||||||
Reference in New Issue
Block a user