Skip to content

Commit

Permalink
add alert at the top of the homepage that lets the user know the tool…
Browse files Browse the repository at this point in the history
… has been shut off
  • Loading branch information
nattvara committed Apr 7, 2024
1 parent 6e41b74 commit fb2c885
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions web-ui/src/pages/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
width: 100%;
}

.alert {
margin-bottom: 350px;
}

.maxwidth {
max-width: 600px;
margin: auto;
Expand Down
9 changes: 8 additions & 1 deletion web-ui/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -59,6 +59,13 @@ export default function IndexPage() {
return (
<>
<PageFrame>
<Row className={`${styles.fullwidth} ${styles.alert}`}>
<Result
className={styles.fullwidth}
title="This tool has been paused"
subTitle="Running this is very expensive, so to fund other tools, most functionality in this tool has been shut off."
/>
</Row>
<Row>
<Row className={styles.fullwidth}>
<SearchHuge
Expand Down

0 comments on commit fb2c885

Please sign in to comment.