From e276758859025a2927882b6f6c03a55c9d1f54a9 Mon Sep 17 00:00:00 2001 From: Nick Tchayka Date: Wed, 6 Sep 2023 13:31:43 +0100 Subject: Fix announcement --- docusaurus.config.js | 6 ++++++ src/css/custom.css | 17 +++++++++++++++++ src/pages/index.tsx | 14 -------------- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 69afc6e..4d821c8 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -81,6 +81,12 @@ const config = { disableSwitch: true, respectPrefersColorScheme: false, }, + announcementBar: { + content: ` + Greetings traveller! You probably found this site by accident. It is far from finished, but if you\'re curious about the project, join the Discord server and say hello! + `, + isCloseable: false, + }, navbar: { title: "NeoHaskell", logo: { diff --git a/src/css/custom.css b/src/css/custom.css index af24e92..11c4b29 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -15,6 +15,23 @@ letter-spacing: -0.095em; } +.announcementBar_node_modules-\@docusaurus-theme-classic-lib-theme-AnnouncementBar-styles-module { + @apply h-60 !important; + @apply m-7; + @apply p-7; + @apply text-5xl; + @apply text-black !important; + @apply bg-lightaccent !important; + @apply border-4 !important; + @apply border-black !important; + @apply shadow-neoyellow; + font-family: 'Lexend Mega', sans-serif; +} + +.close { + opacity: 1 !important; +} + body { background-color: theme('colors.lightbackground'); } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ccff804..ae3e0bf 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -57,20 +57,6 @@ export default function Home(): JSX.Element {
-
-

- If you're reading this, you probably found it by accident. This is a - WIP project, and the site is far from finished. If you're curious - about the project, better join the{" "} - - Discord server - - ! -

-
-- cgit