Skip to content

Commit

Permalink
Revert "fix: change access to interview page (#2437)"
Browse files Browse the repository at this point in the history
This reverts commit f5f0f9f.
  • Loading branch information
valerydluski committed Feb 14, 2024
1 parent 1b7e708 commit 62e1e96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
Binary file removed client/public/static/images/dima.jpg
Binary file not shown.
44 changes: 1 addition & 43 deletions 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, Flex, Image, Layout, List, Modal, Row, Typography } from 'antd';
import { Alert, Button, Col, Layout, List, Row } from 'antd';
import { AlertDto, AlertsApi } from 'api';
import { AdminSider } from 'components/Sider/AdminSider';
import { FooterLayout } from 'components/Footer';
Expand Down Expand Up @@ -27,12 +27,6 @@ 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 @@ -79,42 +73,6 @@ 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 62e1e96

Please sign in to comment.