From ab5ab99b2ce6bb0185cf0d24082375fcbee73723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Fri, 15 Nov 2024 10:17:23 +0100 Subject: [PATCH] add(public): more articles and some adjustment to the footer --- apps/public/app/global.css | 16 ++ apps/public/app/not-found.tsx | 2 + apps/public/components/footer.tsx | 38 +-- apps/public/components/logo.tsx | 4 +- apps/public/components/toc.tsx | 2 +- .../articles/how-to-secure-ubuntu-server.mdx | 236 ++++++++++++++++++ .../articles/self-hosted-web-analytics.mdx | 92 +++++++ apps/public/public/content/secure-server.jpg | Bin 0 -> 275438 bytes .../public/content/self-hosted-analytics.jpg | Bin 0 -> 269958 bytes 9 files changed, 370 insertions(+), 20 deletions(-) create mode 100644 apps/public/content/articles/how-to-secure-ubuntu-server.mdx create mode 100644 apps/public/content/articles/self-hosted-web-analytics.mdx create mode 100644 apps/public/public/content/secure-server.jpg create mode 100644 apps/public/public/content/self-hosted-analytics.jpg diff --git a/apps/public/app/global.css b/apps/public/app/global.css index 1730bd63..84d9e40f 100644 --- a/apps/public/app/global.css +++ b/apps/public/app/global.css @@ -197,4 +197,20 @@ strong { h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { font-size: inherit !important; +} + +.prose pre { + background: hsl(var(--background-dark)); + border: 1px solid hsl(var(--background-light)); + padding: 10px 15px; + border-radius: 10px; + font-size: 12px; +} + +.prose pre code { + background: transparent; + padding: 0; + border-radius: 0; + font-size: inherit; + border: none; } \ No newline at end of file diff --git a/apps/public/app/not-found.tsx b/apps/public/app/not-found.tsx index 0dc597f0..4050bb26 100644 --- a/apps/public/app/not-found.tsx +++ b/apps/public/app/not-found.tsx @@ -12,6 +12,7 @@ export default function NotFound({ }): React.ReactElement { return (
+
@@ -23,6 +24,7 @@ export default function NotFound({

+
); } diff --git a/apps/public/components/footer.tsx b/apps/public/components/footer.tsx index 15a3e5e7..bc296a81 100644 --- a/apps/public/components/footer.tsx +++ b/apps/public/components/footer.tsx @@ -27,9 +27,12 @@ export function Footer() {
-