From 783a8091b19f37ba2b22bf031ebc927db9605860 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 25 Dec 2022 19:10:03 +0100 Subject: [PATCH] home: redo the homepage Signed-off-by: Matej Focko --- docusaurus.config.js | 18 ++++++++-------- src/components/HomepageFeatures/index.js | 27 +++++++++++++----------- src/pages/index.js | 2 +- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index af11806..377794c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -49,18 +49,18 @@ class Subject { } const subjects = [ - new Subject("ib002", "Algorithms"), - // new Subject("ib015", "Non-imperative programming"), - // new Subject("ib110", "Introduction to informatics"), - // new Subject("ib111", "Foundations of programming"), - new Subject("pb071", "C"), - new Subject("pb161", "C++"), + new Subject("ib002", "Algorithms"), + // new Subject("ib015", "Non-imperative programming"), + // new Subject("ib110", "Introduction to informatics"), + // new Subject("ib111", "Foundations of programming"), + new Subject("pb071", "C"), + new Subject("pb161", "C++"), ]; /** @type {import('@docusaurus/types').Config} */ const config = { - title: "Additional materials by mf", - tagline: "Additional materials", + title: "mf", + tagline: "blog and additional materials for courses at φ", url: process.env.URL, baseUrl: process.env.BASE_URL, onBrokenLinks: "warn", @@ -119,7 +119,7 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { - title: "Additional materials by mf", + title: "mf", items: [ ...subjects.map(s => s.navbar()), { diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index 90b106d..a50e2e3 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -3,30 +3,33 @@ import clsx from "clsx"; import styles from "./styles.module.css"; const FeatureList = [ + { + title: "About Me", + description: ( +

+ I'm working in Red Hat in the Packit + team and studying at FI MUNI while + also tutoring some courses there. +

+ ), + }, { title: "Content", description: ( <> - On this page you can find unofficial materials I have written over the - course of teaching multiple courses at the FI. + On this page you can find my blog or unofficial materials I have written + over the course of teaching multiple courses at the FI. ), }, { - title: "Source", + title: "This web", description: ( <> This content can be found as a source at{" "} GitLab or{" "} - FI GitLab. - - ), - }, - { - title: "Deployment", - description: ( - <> - This content is also deployed on{" "} + FI GitLab. And you can + find it deployed on {" "} aisa or{" "} poincare. diff --git a/src/pages/index.js b/src/pages/index.js index a824832..caa98f4 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -23,7 +23,7 @@ export default function Home() { return (