From 33200758d7dc3ec2e9a28598a031fbddb87aee38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Tue, 16 Jul 2024 09:34:44 +0200 Subject: [PATCH] Install Roboto Font --- package.json | 1 + src/pages/index.astro | 39 ++++++++++++--------------------------- src/styles/global.css | 6 +++--- 3 files changed, 16 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index af2055e..3f30574 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@astrojs/mdx": "^2.1.1", "@astrojs/rss": "^4.0.5", "@astrojs/sitemap": "^3.0.5", + "@fontsource/roboto": "^5.0.13", "astro": "^4.4.0" } } diff --git a/src/pages/index.astro b/src/pages/index.astro index f0f09e8..4593614 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,8 @@ --- -import PostList from '../components/PostList.astro'; +import '@fontsource/roboto/400.css'; + import { SITE_DESCRIPTION } from '../consts'; +import PostList from '../components/PostList.astro'; import BaseLayout from '../layouts/BaseLayout.astro'; --- @@ -8,38 +10,21 @@ import BaseLayout from '../layouts/BaseLayout.astro';

Welcome to my website

- My name is Maciej, but if you're not sure how to - pronounce it, then you can call me Mac. I'm an - eighteen-year-old frontend developer from Poland. - Although I mainly use Vue and Nuxt for my - projects, I'm also familiar with Alpine and Astro. + If you don't know how to pronounce my name, you can call me Mac. During the day, I'm a Computer Science student at PJAIT in Warsaw. After hours, I'm an aficionado of all things motorsport and house + music.

My blog

- It serves as a means of documenting the development process and inner - workings of my applications. Check out the latest - posts below: -

- -
-
-

Like my work?

-

- If so, make sure to follow me on GitHub, Twitter, or Mastodon. + Here I document the development of my personal projects and their inner + workings. Check out the latest posts below:

+
diff --git a/src/styles/global.css b/src/styles/global.css index 854d3b5..9cc07ba 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -2,7 +2,7 @@ The CSS in this style tag is based off of Bear Blog's default CSS. https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md - */ +*/ body { margin: 0 auto; padding: 0; @@ -12,7 +12,7 @@ body { height: 100vh; line-height: 1.8; font-size: 1rem; - font-family: Arial, Helvetica, sans-serif; + font-family: Arial, Helvetica, 'Roboto', sans-serif; background-color: #485870; color: #fff; text-align: left; @@ -121,7 +121,7 @@ article > time { } h1.cmr2-text { - margin: 22px 0; + margin: 1.375rem 0; } .cmr2-text > span,