diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ca62ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.well-known/ \ No newline at end of file diff --git a/public/assets/css/style.css b/public/assets/css/style.css index b768539..1e5558f 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -46,7 +46,7 @@ main > div { /* --- */ .logo { - --size: 3vw; + --size: 5em; --skew: calc(var(--size) / 1.7); width: 0; @@ -186,6 +186,14 @@ nav a:hover { height: 100%; } +@media screen and (max-width: 1010px) { + + #myface { + display: none; + } + +} + @media screen and (max-width: 800px) { h1 { @@ -211,8 +219,8 @@ nav a:hover { text-align: justify; } - #myface { - display: none; + #intro .block p:last-of-type { + text-align: initial; } nav a { @@ -221,4 +229,7 @@ nav a:hover { font-size: 5vw; } -} \ No newline at end of file +} + + +/* Victor Westerlund */ \ No newline at end of file diff --git a/public/assets/img/where.gif b/public/assets/img/where.gif new file mode 100644 index 0000000..9c34296 Binary files /dev/null and b/public/assets/img/where.gif differ diff --git a/public/assets/img/where.png b/public/assets/img/where.png new file mode 100644 index 0000000..864db1c Binary files /dev/null and b/public/assets/img/where.png differ diff --git a/public/assets/img/where.webp b/public/assets/img/where.webp new file mode 100644 index 0000000..3e73ef2 Binary files /dev/null and b/public/assets/img/where.webp differ diff --git a/public/not_found.html b/public/not_found.html new file mode 100644 index 0000000..bd9a455 --- /dev/null +++ b/public/not_found.html @@ -0,0 +1,51 @@ + + + + + + + + + + Page Not Found - Victor Westerlund + + + +
+ +

404 Not Found

+

idk..

+
+ + + + + + + \ No newline at end of file diff --git a/server.conf b/server.conf new file mode 100644 index 0000000..c08d0a5 --- /dev/null +++ b/server.conf @@ -0,0 +1,77 @@ +# == victorwesterlund.com == + +server { + listen 80; + listen [::]:80; + + server_name www.victorwesterlund.com victorwesterlund.com; + + return 301 https://victorwesterlund.com$request_uri; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name victorwesterlund.com; + + ssl on; + include snippets/ssl.conf; + + root /var/www/github_victorwesterlund_victorwesterlund.com/public; + + error_page 404 403 /not_found.html; + + location \ { + try_files $uri $uri.html $uri/ =404; + } + + location ~ \.php$ { + add_header Access-Control-Allow-Origin *; + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } + + location ~ /\.git { + deny all; + return 404; + } +} + +# == api.victorwesterlund.com == + +server { + listen 80; + listen [::]:80; + + server_name api.victorwesterlund.com; + + return 301 https://api.victorwesterlund.com$request_uri; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name api.victorwesterlund.com; + + ssl on; + include snippets/ssl.conf; + + root /var/www/github_victorwesterlund_victorwesterlund.com/api; + + location \ { + try_files $uri $uri.html $uri/ =404; + } + + location ~ \.php$ { + add_header Access-Control-Allow-Origin *; + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } + + location ~ /\.git { + deny all; + return 404; + } +} \ No newline at end of file