Skip to content

Commit

Permalink
fix: change access to interview page (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerydluski committed Feb 14, 2024
1 parent aa100a5 commit f5f0f9f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
Binary file added client/public/static/images/dima.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 43 additions & 1 deletion client/src/modules/Home/pages/HomePage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Alert, Button, Col, Layout, List, Row } from 'antd';
import { Alert, Button, Col, Flex, Image, Layout, List, Modal, Row, Typography } from 'antd';
import { AlertDto, AlertsApi } from 'api';
import { AdminSider } from 'components/Sider/AdminSider';
import { FooterLayout } from 'components/Footer';
Expand Down Expand Up @@ -27,6 +27,12 @@ const alertService = new AlertsApi();
export function HomePage() {
const { courses = [], setCourse, course } = useActiveCourseContext();
const session = useContext(SessionContext);

// Dima's birthday modal
// TODO: remove after 14.02.2023
const isDima = useMemo(() => session?.githubId === 'dzmitry-varabei', [session]);
const [isModalVisible, setIsModalVisible] = useState(isDima);

const plannedCourses = (courses || []).filter(course => course.planned && !course.inviteOnly);
const wasMentor = isAnyMentor(session);
const hasRegistryBanner =
Expand Down Expand Up @@ -73,6 +79,42 @@ export function HomePage() {
return (
<Layout style={{ minHeight: '100vh', background: '#fff' }}>
<Header />
{/*will remove after 14.02.2023*/}
{isModalVisible && (
<Modal
title="Happy Birthday, Dima!"
open={isModalVisible}
onCancel={() => setIsModalVisible(false)}
onOk={() => setIsModalVisible(false)}
>
<Flex align="center" vertical gap={'small'}>
<Typography.Text strong>🎉 Поздравляем С Днём Рождения, Дима! 🎉</Typography.Text>
<Typography.Text>От команды разработчиков RS App и всех в Rolling Scopes Community,</Typography.Text>
<Typography.Text>
Сегодня мы отмечаем не просто день, а эпоху – <br />
Эру Димы, величайшего менеджера и лидера!
</Typography.Text>
<Typography.Text>
Ты как гуру JavaScript в мире управления, <br />
С тобой каждый баг превращается в feature, <br />
Каждый дедлайн – в новое приключение, <br />И каждое совещание – в комедийное шоу!
</Typography.Text>
<Typography.Text>
Ты не просто руководишь – ты вдохновляешь, <br />
Не просто планируешь – ты создаёшь искусство, <br />
Не просто общаешься – а заставляешь нас смеяться, <br />И делаешь каждый рабочий день чем-то особенным.
</Typography.Text>
<Typography.Text>
Сегодня мы отмечаем не только твой день рождения, <br />
Но и день, когда RS App и Rolling Scopes получили своего героя. <br />
С днём рождения, Дима! Оставайся всегда таким же крутым, <br />И пусть каждый твой код коммит будет без
конфликтов!
</Typography.Text>
<Typography.Text strong>С уважением и лучшими пожеланиями, Команда RS App 🎉🎈🎂</Typography.Text>
<Image src={`/static/images/dima.jpg`} alt={'dima'} width={300} height={300} />
</Flex>
</Modal>
)}
<Layout style={{ background: '#fff' }}>
{isPowerUser && <AdminSider courses={courses} activeCourse={course} />}
<Content style={{ margin: 16, marginBottom: 32 }}>
Expand Down

0 comments on commit f5f0f9f

Please sign in to comment.