Skip to content

Commit 86d4f57

Browse files
authored
Add a disclaimer in the application window for students (#854)
1 parent eaa6e0f commit 86d4f57

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const TOPIC_DISCLAIMER_TEXT =
2+
'Topics are offered by different research groups. Please verify based on your study program that ' +
3+
'you are eligible to write your thesis at the respective research group before submitting your application.'

client/src/pages/LandingPage/LandingPage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import TopicsProvider from '../../providers/TopicsProvider/TopicsProvider'
22
import TopicsTable from '../../components/TopicsTable/TopicsTable'
33
import { TopicState } from '../../requests/responses/topic'
4-
import { Button, Group, Stack, Center } from '@mantine/core'
4+
import { Alert, Button, Group, Stack, Center } from '@mantine/core'
55
import { Link, useParams, useSearchParams } from 'react-router'
66
import PublishedTheses from './components/PublishedTheses/PublishedTheses'
77
import { usePageTitle } from '../../hooks/theme'
88
import LandingPageHeader from './components/LandingPageHeader/LandingPageHeader'
9-
import { ListIcon, SquaresFourIcon } from '@phosphor-icons/react'
9+
import { InfoIcon, ListIcon, SquaresFourIcon } from '@phosphor-icons/react'
1010
import { useEffect, useMemo, useState } from 'react'
1111
import { useDebouncedValue } from '@mantine/hooks'
1212
import { GLOBAL_CONFIG } from '../../config/global'
@@ -16,6 +16,7 @@ import { doRequest } from '../../requests/request'
1616
import { showSimpleError } from '../../utils/notification'
1717
import { getApiResponseErrorMessage } from '../../requests/handler'
1818
import TopicSearchFilters from '../../components/TopicSearchFilters/TopicSearchFilters'
19+
import { TOPIC_DISCLAIMER_TEXT } from '../../components/TopicDisclaimerAlert/TopicDisclaimerAlert'
1920

2021
const LandingPage = () => {
2122
usePageTitle('Find a Thesis Topic')
@@ -135,6 +136,10 @@ const LandingPage = () => {
135136
}
136137
/>
137138

139+
<Alert variant='light' color='blue' icon={<InfoIcon />} style={{ flexShrink: 0 }}>
140+
{TOPIC_DISCLAIMER_TEXT}
141+
</Alert>
142+
138143
<TopicSearchFilters
139144
searchKey={searchKey}
140145
setSearchKey={setSearchKey}

client/src/pages/LandingPage/components/LandingPageHeader/LandingPageHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const LandingPageHeader = ({ researchGroupId }: LandingPageHeaderProps) => {
3838
<Card
3939
radius='md'
4040
bg={computedColorScheme === 'dark' ? 'dark.6' : 'gray.1'}
41-
p='xl'
41+
p='md'
4242
style={{ flexShrink: 0 }}
4343
>
4444
<Flex justify='flex-start' align='center' gap='xl' wrap='nowrap'>
@@ -55,7 +55,7 @@ const LandingPageHeader = ({ researchGroupId }: LandingPageHeaderProps) => {
5555
</Title>
5656
</Flex>
5757

58-
<LogoCircle size={100} logoSize={80} visibleFrom='sm' />
58+
<LogoCircle size={80} logoSize={60} visibleFrom='sm' />
5959
</Flex>
6060
</Card>
6161
)

client/src/pages/ReplaceApplicationPage/components/SelectTopicStep/SelectTopicStep.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { ITopic } from '../../../../requests/responses/topic'
2-
import { Stack } from '@mantine/core'
2+
import { Alert, Stack } from '@mantine/core'
3+
import { InfoIcon } from '@phosphor-icons/react'
34
import React, { useEffect, useState } from 'react'
5+
import { TOPIC_DISCLAIMER_TEXT } from '../../../../components/TopicDisclaimerAlert/TopicDisclaimerAlert'
46
import { GLOBAL_CONFIG } from '../../../../config/global'
57
import { useSearchParams } from 'react-router'
68
import { useDebouncedValue } from '@mantine/hooks'
@@ -64,6 +66,9 @@ const SelectTopicStep = (props: ISelectTopicStepProps) => {
6466

6567
return (
6668
<Stack gap={'0rem'} pt={'1rem'}>
69+
<Alert variant='light' color='blue' icon={<InfoIcon />} mb='md'>
70+
{TOPIC_DISCLAIMER_TEXT}
71+
</Alert>
6772
<TopicSearchFilters
6873
searchKey={searchKey}
6974
setSearchKey={setSearchKey}

0 commit comments

Comments
 (0)