From fb2c8858645f14ae4f85ec9b3ffb2f0232220d8b Mon Sep 17 00:00:00 2001 From: Ludwig Kristoffersson Date: Sun, 7 Apr 2024 13:12:06 +0200 Subject: [PATCH] add alert at the top of the homepage that lets the user know the tool has been shut off --- web-ui/src/pages/index.less | 4 ++++ web-ui/src/pages/index.tsx | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/web-ui/src/pages/index.less b/web-ui/src/pages/index.less index 0fe404c..a4007a9 100644 --- a/web-ui/src/pages/index.less +++ b/web-ui/src/pages/index.less @@ -3,6 +3,10 @@ width: 100%; } +.alert { + margin-bottom: 350px; +} + .maxwidth { max-width: 600px; margin: auto; diff --git a/web-ui/src/pages/index.tsx b/web-ui/src/pages/index.tsx index b44120f..6f02125 100644 --- a/web-ui/src/pages/index.tsx +++ b/web-ui/src/pages/index.tsx @@ -2,7 +2,7 @@ import { Lecture } from '@/types/lecture'; import PageFrame from '@/components/page/page-frame/page-frame'; import SearchHuge from '@/components/search/search-huge/search-huge'; import { emitEvent, registerPageLoad } from '@/matomo'; -import { Button, Col, Row, Grid } from 'antd'; +import { Button, Col, Row, Grid, Result } from 'antd'; import styles from './index.less'; import { useEffect, useState } from 'react'; import SearchResult from '@/components/search/search-results/search-result'; @@ -59,6 +59,13 @@ export default function IndexPage() { return ( <> + + +