From a709eec8f01e4b8f0c0c3ee64033b6881b79184a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20Ny=CC=81vlt?= Date: Mon, 8 Jan 2024 17:17:40 +0100 Subject: [PATCH] Update and format pages --- src/layouts/Layout.astro | 53 +++++++-------- src/pages/index.astro | 139 +++++++++++++++++---------------------- 2 files changed, 86 insertions(+), 106 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 3b34352..0638a79 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -28,13 +28,13 @@ const { title } = Astro.props; :root { /* Radix colors – see https://www.radix-ui.com/colors */ - --gray-1: hsl(0, 0%, 99.0%); + --gray-1: hsl(0, 0%, 99%); --gray-2: hsl(0, 0%, 97.5%); --gray-3: hsl(0, 0%, 94.6%); - --gray-4: hsl(0, 0%, 92.0%); + --gray-4: hsl(0, 0%, 92%); --gray-5: hsl(0, 0%, 89.5%); --gray-6: hsl(0, 0%, 86.8%); - --gray-7: hsl(0, 0%, 83.0%); + --gray-7: hsl(0, 0%, 83%); --gray-8: hsl(0, 0%, 73.2%); --gray-9: hsl(0, 0%, 55.2%); --gray-10: hsl(0, 0%, 50.3%); @@ -49,10 +49,10 @@ const { title } = Astro.props; --accent-6: hsl(360, 81.7%, 87.8%); --accent-7: hsl(359, 74.2%, 81.7%); --accent-8: hsl(359, 69.5%, 74.3%); - --accent-9: hsl(358, 75.0%, 59.0%); + --accent-9: hsl(358, 75%, 59%); --accent-10: hsl(358, 67.4%, 54.6%); - --accent-11: hsl(358, 65.0%, 47.0%); - --accent-12: hsl(350, 63.0%, 24.0%); + --accent-11: hsl(358, 65%, 47%); + --accent-12: hsl(350, 63%, 24%); } @media (prefers-color-scheme: dark) { @@ -65,23 +65,23 @@ const { title } = Astro.props; --gray-6: hsl(0, 0%, 24.7%); --gray-7: hsl(0, 0%, 29.1%); --gray-8: hsl(0, 0%, 37.5%); - --gray-9: hsl(0, 0%, 43.0%); + --gray-9: hsl(0, 0%, 43%); --gray-10: hsl(0, 0%, 50.7%); --gray-11: hsl(0, 0%, 69.5%); --gray-12: hsl(0, 0%, 93.5%); - --accent-1: hsl(353, 23.0%, 9.8%); + --accent-1: hsl(353, 23%, 9.8%); --accent-2: hsl(354, 30.2%, 12.4%); --accent-3: hsl(353, 40.8%, 16.4%); --accent-4: hsl(353, 46.3%, 19.2%); --accent-5: hsl(353, 51.2%, 22.1%); --accent-6: hsl(353, 57.3%, 26.2%); --accent-7: hsl(354, 65.7%, 33.2%); - --accent-8: hsl(358, 75.0%, 47.1%); - --accent-9: hsl(358, 75.0%, 59.0%); + --accent-8: hsl(358, 75%, 47.1%); + --accent-9: hsl(358, 75%, 59%); --accent-10: hsl(359, 84.8%, 67.6%); - --accent-11: hsl(358, 100%, 76.0%); - --accent-12: hsl(350, 100%, 91.0%); + --accent-11: hsl(358, 100%, 76%); + --accent-12: hsl(350, 100%, 91%); } } @@ -97,20 +97,6 @@ const { title } = Astro.props; box-sizing: border-box; } - body { - font-size: clamp(1.5rem, 4vw, 1.75rem); - font-family: "Ysabeau", sans-serif; - line-height: 1.4; - background-color: var(--gray-1); - color: var(--gray-12); - } - - @media screen and (min-width: 800px) { - /* body { - font-size: 2rem; - } */ - } - *, *:before, *:after { @@ -118,6 +104,14 @@ const { title } = Astro.props; box-sizing: inherit; } + body { + font-size: clamp(1.5rem, 4vw, 2rem); + font-family: "Ysabeau", sans-serif; + line-height: 1.4; + background-color: var(--gray-1); + color: var(--gray-12); + } + img { max-width: 100%; height: auto; @@ -175,4 +169,11 @@ const { title } = Astro.props; margin-right: 0.5em; opacity: 0.25; } + + .container { + max-width: 1080px; + padding: 1.5rem; + margin: 3rem auto; + word-wrap: break-word; + } diff --git a/src/pages/index.astro b/src/pages/index.astro index 5a25723..1605b74 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,105 +4,84 @@ import Layout from "../layouts/Layout.astro";
-
-
-

- I’m Ondřej Nývlt, -

-

- a designer, software engineer, and student of social & cultural anthtropology. -

-
-
+

+ I’m Ondřej Nývlt, a designer, software engineer, and student + of social & cultural anthtropology. +

-
-

About me

-
    -
  • I mostly make web apps. I try to stay close to the web platform and I prefer hypermedia driven applications to SPAs. -
  • I like a good typography and hate repetitive work. That’s why I experiment with computational typesetting and Pollen for my school theses. -
  • I contribute to open-source projects at nolog.cz, activist IT collective - which provides privacy-focused infrastructure to social movements (You should consider supporting them). +
    +
      +
    • I make web apps that look nice and work well for everyone.
    • +
    • I experiment with computational typesetting for my school theses. +
    • +
    • I contribute to nolog.cz, + a collective of people who provides social movements with privacy-focused + IT infrastructure. +
    - - - +
    +

    Contact:

    + +