diff --git a/README.md b/README.md index 4821722..d7c4cba 100644 --- a/README.md +++ b/README.md @@ -3,5 +3,6 @@ This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. ## Über den Blog + Ich möchte gelegentlich über coole der Themen der Mathematik, der Informatik oder das programmieren schreiben. diff --git a/babel.config.js b/babel.config.js index e00595d..0adade1 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], + presets: [require.resolve('@docusaurus/core/lib/babel/preset')], }; diff --git a/blog/2022-08-02-willkommen.md b/blog/2022-08-02-willkommen.md index a7790cc..322a0fe 100644 --- a/blog/2022-08-02-willkommen.md +++ b/blog/2022-08-02-willkommen.md @@ -5,6 +5,6 @@ authors: niklas tags: [hallo] --- -Willkommen +Willkommen WIP \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 5ccb710..f7a867e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,136 +6,136 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'Mathematik, Informatik und Programmierung', - tagline: 'Mathematik und Informatik sind cool', - url: 'https://www.niklas-birk.de', - baseUrl: '/', - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', - favicon: 'img/niklas-birk-icon.ico', + title: 'Mathematik, Informatik und Programmierung', + tagline: 'Mathematik und Informatik sind cool', + url: 'https://www.niklas-birk.de', + baseUrl: '/', + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'warn', + favicon: 'img/niklas-birk-icon.ico', - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - // organizationName: 'niklas', // Usually your GitHub org/user name. - // projectName: 'niklas_birk_blog', // Usually your repo name. + // GitHub pages deployment config. + // If you aren't using GitHub pages, you don't need these. + // organizationName: 'niklas', // Usually your GitHub org/user name. + // projectName: 'niklas_birk_blog', // Usually your repo name. - // Even if you don't use internalization, you can use this field to set useful - // metadata like html lang. For example, if your site is Chinese, you may want - // to replace "en" with "zh-Hans". - i18n: { - defaultLocale: 'de', - locales: ['de'], - }, + // Even if you don't use internalization, you can use this field to set useful + // metadata like html lang. For example, if your site is Chinese, you may want + // to replace "en" with "zh-Hans". + i18n: { + defaultLocale: 'de', + locales: ['de'], + }, - presets: [ - [ - 'classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: false, //{ - // sidebarPath: require.resolve('./sidebars.js'), - // // Please change this to your repo. - // // Remove this to remove the "edit this page" links. - // // editUrl: - // // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - // }, - blog: { - showReadingTime: true, - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - // editUrl: - // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }), + presets: [ + [ + 'classic', + /** @type {import('@docusaurus/preset-classic').Options} */ + ({ + docs: false, //{ + // sidebarPath: require.resolve('./sidebars.js'), + // // Please change this to your repo. + // // Remove this to remove the "edit this page" links. + // // editUrl: + // // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + // }, + blog: { + showReadingTime: true, + // Please change this to your repo. + // Remove this to remove the "edit this page" links. + // editUrl: + // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + }, + theme: { + customCss: require.resolve('./src/css/custom.css'), + }, + }), + ], ], - ], - themeConfig: + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - colorMode: { - defaultMode: 'dark', - disableSwitch: true, - respectPrefersColorScheme: false, - }, - navbar: { - title: 'Mathematik und Informatik', - logo: { - alt: 'Logo von Niklas Birk', - src: 'img/niklas-birk-logo.svg', - }, - items: [ - // { - // type: 'doc', - // docId: 'intro', - // position: 'left', - // label: 'Tutorial', - // }, - {to: '/blog', label: 'Blog', position: 'left'}, - { - href: 'https://git.niklas-birk.de/niklas/niklas_birk_blog', - label: 'Gitea', - position: 'right', - }, - ], - }, - footer: { - style: 'dark', - links: [ - // { - // title: 'Docs', - // items: [ - // { - // label: 'Tutorial', - // to: '/docs/intro', - // }, - // ], - // }, - { - title: 'Community', - items: [ - { - label: 'Twitter', - href: 'https://twitter.com/SirNik_OdTW', - }, - { - label: 'Mastodon', - href: 'https://mastodon.social/web/@SirNik', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'Website', - href: 'https://www.niklas-birk.de', - }, - { - label: 'Gitea', - href: 'https://git.niklas-birk.de', - }, - { - label: 'Surveys', - href: 'https://survey.niklas-birk.de', - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} Niklas Birk. Built with Docusaurus.`, - }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - }, - }), + ({ + colorMode: { + defaultMode: 'dark', + disableSwitch: true, + respectPrefersColorScheme: false, + }, + navbar: { + title: 'Mathematik und Informatik', + logo: { + alt: 'Logo von Niklas Birk', + src: 'img/niklas-birk-logo.svg', + }, + items: [ + // { + // type: 'doc', + // docId: 'intro', + // position: 'left', + // label: 'Tutorial', + // }, + {to: '/blog', label: 'Blog', position: 'left'}, + { + href: 'https://git.niklas-birk.de/niklas/niklas_birk_blog', + label: 'Gitea', + position: 'right', + }, + ], + }, + footer: { + style: 'dark', + links: [ + // { + // title: 'Docs', + // items: [ + // { + // label: 'Tutorial', + // to: '/docs/intro', + // }, + // ], + // }, + { + title: 'Community', + items: [ + { + label: 'Twitter', + href: 'https://twitter.com/SirNik_OdTW', + }, + { + label: 'Mastodon', + href: 'https://mastodon.social/web/@SirNik', + }, + ], + }, + { + title: 'More', + items: [ + { + label: 'Blog', + to: '/blog', + }, + { + label: 'Website', + href: 'https://www.niklas-birk.de', + }, + { + label: 'Gitea', + href: 'https://git.niklas-birk.de', + }, + { + label: 'Surveys', + href: 'https://survey.niklas-birk.de', + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} Niklas Birk. Built with Docusaurus.`, + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + }, + }), }; module.exports = config; diff --git a/sidebars.js b/sidebars.js index fd342f2..4cfd076 100644 --- a/sidebars.js +++ b/sidebars.js @@ -13,19 +13,19 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { - // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], + // By default, Docusaurus generates a sidebar from the docs folder structure + tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], - // But you can create a sidebar manually - /* - tutorialSidebar: [ - { - type: 'category', - label: 'Tutorial', - items: ['hello'], - }, - ], - */ + // But you can create a sidebar manually + /* + tutorialSidebar: [ + { + type: 'category', + label: 'Tutorial', + items: ['hello'], + }, + ], + */ }; module.exports = sidebars; diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index f51146d..a7093f2 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -3,59 +3,79 @@ import clsx from 'clsx'; import styles from './styles.module.css'; const FeatureList = [ - { - title: 'Mathematik', - Svg: require('@site/static/img/niklas-birk-logo.svg').default, - description: ( - <> - Mathematik ist ... - > - ), - }, - { - title: 'Informatik', - Svg: require('@site/static/img/niklas-birk-logo.svg').default, - description: ( - <> - Informatik ist ... - > - ), - }, - { - title: 'Programmierung', - Svg: require('@site/static/img/niklas-birk-logo.svg').default, - description: ( - <> - Programmierung ist ... - > - ), - }, + { + title: 'Mathematik', + Svg: require('@site/static/img/math-logo.svg').default, + description: ( + <> +
Mathematik ist eine Wissenschaft, die selbstgeschaffene abstrakte Strukturen auf ihre Eigenschaften + und Muster untersucht.
+Sie ist mehr als dir die Schule zeigt und wesentlich cooler als du glaubst!
+ Gib ihr eine Chance!
Informatik ist eine Strukturwissenschaft, die sich mit der Information und deren automatischer + Verarbeitung befasst.
+
+ In der Informatik geht es genau so wenig um Computer, wie in der Astronomie um
+ Teleskope.
+
Programmierung ist das Erstellen von Programmen mit einer Programmiersprache.
++
+
+ int main(void)
+ {
+ printf("Programmierst du auch?");
+ return 0;
+ }
+
+
+
+ >
+ ),
+ },
];
function Feature({Svg, title, description}) {
- return (
- {description}
-{description}
+{siteConfig.tagline}
-{siteConfig.tagline}
+