Skip to content

Commit

Permalink
Merge pull request #69 from nattvara/feature/add-paused-message
Browse files Browse the repository at this point in the history
Add alert that service is suspended
  • Loading branch information
nattvara authored Apr 7, 2024
2 parents 6e41b74 + fb2c885 commit 2227fb4
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 2227fb4

Please sign in to comment.