2 Commits

Author SHA1 Message Date
Morten Olsen
5467979563 Minor updates 2021-08-29 22:36:44 +02:00
Morten Olsen
42952604e3 Attempted to fix iOS bug 2021-08-27 22:40:21 +02:00
4 changed files with 24 additions and 37 deletions

View File

@@ -14,14 +14,12 @@ const ImageWrapper = styled.div<{loaded: boolean}>`
border-radius: 50%;
border: solid 10px rgba(255, 255, 255, .5);
box-shadow: 0 0 35px rgba(0, 0, 0, .5);
overflow: hidden;
width: 100%;
max-width: 300px;
position: relative;
transition: all .6s;
transform: rotateY(180deg);
transition: all 1.2s;
opacity: ${({ loaded }) => loaded ? '1' : '0'};
transform: ${({ loaded }) => loaded ? 'rotateY(180deg)' : 'rotateY(90deg) translateX(-300px)'};
transform: rotateY(180deg) translateZ(0);
`;
const Spacer = styled.div`
@@ -57,19 +55,11 @@ const SubTitle = styled.h2`
0 0 10px rgba(0, 0, 0, .5);
`;
const Divider = styled.div`
margin-top: 70px;
width: 100%;
max-width: 800px;
height: 1px;
background: rgba(255, 255, 255, .5);
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;
border-radius: 50%;
top: 0;
left: 0;
width: 100%;
@@ -80,8 +70,8 @@ const Me: React.FC<{}> = () => {
const imgRef = useRef<HTMLImageElement>();
const [loaded, setLoaded] = useState(false);
useEffect(() => {
if (imgRef.current) {
setLoaded(imgRef.current.complete);
if (imgRef.current && imgRef.current.complete) {
setLoaded(true);
}
}, [imgRef]);
return (
@@ -97,7 +87,6 @@ const Me: React.FC<{}> = () => {
</ImageWrapper>
<Title>Morten Olsen</Title>
<SubTitle>...One part genius, one part crazy</SubTitle>
<Divider />
</Wrapper>
);
};

View File

@@ -15,11 +15,9 @@ const Outer = styled.div`
align-items: center;
`;
const Image = styled.div<{ src: string }>`
const Image = styled.img<{ src: string }>`
width: 50px;
height: 50px;
background: url('${({ src }) => src}');
background-size: cover;
margin-right: 10px;
transition: all .8s;
filter: grayscale(100%) invert();
@@ -31,7 +29,7 @@ const Wrapper = styled.div`
align-items: center;
height: 100%;
flex-wrap: wrap;
max-width: 1000px;
max-width: 1600px;
`;
const ItemWrapper = styled.a`
@@ -53,7 +51,7 @@ const ItemWrapper = styled.a`
color: #000;
box-shadow: 0 0 35px rgba(0, 0, 0, .3);
&> div {
&> img {
filter: grayscale(100%);
}
}

View File

@@ -1,4 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import { createGlobalStyle } from 'styled-components';
import Head from 'next/head';
import Background from '../components/Background';
@@ -12,6 +13,10 @@ import codinGameLogo from '../public/images/logos/codingame.svg';
import resumeLogo from '../public/images/logos/resume.svg';
const Globals = createGlobalStyle`
html, body, #__next {
height: 90%;
margin: 0;
}
body {
background: #03544e;
}
@@ -22,9 +27,17 @@ const Globals = createGlobalStyle`
}
`;
const Wrapper = styled.div`
min-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`
const Frontpage: React.FC<{}> = () => {
return (
<>
<Wrapper>
<Head>
<title>Morten Olsen</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
@@ -61,7 +74,7 @@ const Frontpage: React.FC<{}> = () => {
logo: linkedinLogo,
}]}
/>
</>
</Wrapper>
);
};

View File

@@ -1,22 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 176 33" style="enable-background:new 0 0 176 33;" xml:space="preserve">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 33 33" style="enable-background:new 0 0 176 33;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
.st1{fill:#000;}
</style>
<g>
<path class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