|
1 | 1 | import React, { useState } from 'react';
|
| 2 | + |
2 | 3 | import {
|
3 | 4 | ButtonBase,
|
4 | 5 | Container,
|
5 | 6 | Typography,
|
6 | 7 | useMediaQuery,
|
7 | 8 | } from '@mui/material';
|
8 |
| -import theme from '../../config/themes/light'; |
9 |
| - |
10 | 9 | import makeStyles from '@mui/styles/makeStyles';
|
| 10 | + |
| 11 | +import theme from '../../config/themes/light'; |
| 12 | +import PostHolders from './PostHolder'; |
11 | 13 | import SocietyCards from './SocietyCards';
|
12 | 14 |
|
13 | 15 | const STAGE = {
|
| 16 | + DSW: 'Dean SW', |
| 17 | + SP: 'Sac President', |
14 | 18 | SOB: 'SAC Office Bearers',
|
15 |
| - DNF: 'Dean’s Nominee for Fests', |
16 |
| - DNS: 'Dean’s Nominee for societies', |
17 |
| - FC: 'Fest Convenors', |
| 19 | +}; |
| 20 | + |
| 21 | +const POSTS = { |
| 22 | + FMS: [ |
| 23 | + { |
| 24 | + position: 'Vice President', |
| 25 | + name: 'Prof. Binod Bihari Sahu', |
| 26 | + phone: '0661-2462782', |
| 27 | + |
| 28 | + }, |
| 29 | + { |
| 30 | + position: 'Vice President', |
| 31 | + name: 'Dr. Balaji P.S.', |
| 32 | + phone: '0661-2462528', |
| 33 | + |
| 34 | + }, |
| 35 | + ], |
| 36 | + LCS: [ |
| 37 | + { |
| 38 | + position: 'Vice President', |
| 39 | + name: 'Dr. Akshaya Kumar Rath', |
| 40 | + phone: '0661-2462697', |
| 41 | + |
| 42 | + }, |
| 43 | + { |
| 44 | + position: 'Vice President', |
| 45 | + name: 'Dr. Winny Routray', |
| 46 | + phone: '', |
| 47 | + |
| 48 | + }, |
| 49 | + ], |
| 50 | + GSS: [ |
| 51 | + { |
| 52 | + position: 'Vice President', |
| 53 | + name: 'Prof. Ramesh Kumar Mohapatra', |
| 54 | + phone: '0661-2462366', |
| 55 | + |
| 56 | + }, |
| 57 | + { |
| 58 | + position: 'Vice President', |
| 59 | + name: 'Dr. Mayank Yadav', |
| 60 | + phone: '', |
| 61 | + |
| 62 | + }, |
| 63 | + ], |
| 64 | + TS: [ |
| 65 | + { |
| 66 | + position: 'Vice President', |
| 67 | + name: 'Dr. Kaustav Chaudhury', |
| 68 | + phone: '0661-2462535 ', |
| 69 | + |
| 70 | + }, |
| 71 | + { |
| 72 | + position: 'Vice President', |
| 73 | + name: 'Dr. Prasun Chongder', |
| 74 | + phone: '', |
| 75 | + |
| 76 | + }, |
| 77 | + ], |
18 | 78 | };
|
19 | 79 |
|
20 | 80 | const SacInfoNavbar = () => {
|
21 |
| - const [stage, setStage] = useState(STAGE.SOB); |
| 81 | + const [stage, setStage] = useState(STAGE.DSW); |
22 | 82 | const classes = useStyles();
|
23 | 83 | const matches = useMediaQuery(theme.breakpoints.down('md'));
|
24 | 84 |
|
25 | 85 | const renderTeam = () => {
|
26 | 86 | switch (stage) {
|
27 |
| - case STAGE.SOB: |
| 87 | + case STAGE.DSW: |
28 | 88 | return (
|
29 | 89 | <>
|
30 |
| - <SocietyCards society='Film and Music Society' /> |
31 |
| - <SocietyCards society='Literary and Cultural Society' />{' '} |
32 |
| - <SocietyCards society='Games and Sports Society' /> |
33 |
| - <SocietyCards society='Technical Society' />{' '} |
| 90 | + <PostHolders |
| 91 | + position='Dean SW' |
| 92 | + name='Prof. Sidhartha S. Jena' |
| 93 | + |
| 94 | + /> |
34 | 95 | </>
|
35 | 96 | );
|
36 |
| - case STAGE.DNF: |
| 97 | + case STAGE.SP: |
37 | 98 | return (
|
38 | 99 | <>
|
39 |
| - <SocietyCards society='Film and Music Society' /> |
40 |
| - <SocietyCards society='Literary and Cultural Society' /> |
41 |
| - <SocietyCards society='Games and Sports Society' /> |
42 |
| - <SocietyCards society='Technical Society' />{' '} |
| 100 | + <PostHolders |
| 101 | + position='Sac President' |
| 102 | + name='Prof. Poonam Singh' |
| 103 | + |
| 104 | + /> |
43 | 105 | </>
|
44 | 106 | );
|
45 |
| - case STAGE.DNS: |
46 |
| - return ( |
47 |
| - <> |
48 |
| - <SocietyCards society='Film and Music Society' /> |
49 |
| - <SocietyCards society='Literary and Cultural Society' />{' '} |
50 |
| - <SocietyCards society='Games and Sports Society' /> |
51 |
| - <SocietyCards society='Technical Society' />{' '} |
52 |
| - </> |
53 |
| - ); |
54 |
| - case STAGE.FC: |
| 107 | + case STAGE.SOB: |
55 | 108 | return (
|
56 | 109 | <>
|
57 |
| - <SocietyCards society='Film and Music Society' /> |
58 |
| - <SocietyCards society='Literary and Cultural Society' />{' '} |
59 |
| - <SocietyCards society='Games and Sports Society' /> |
60 |
| - <SocietyCards society='Technical Society' />{' '} |
| 110 | + <SocietyCards society='Film and Music Society' posts={POSTS.FMS} /> |
| 111 | + <SocietyCards |
| 112 | + society='Literary and Cultural Society' |
| 113 | + posts={POSTS.LCS} |
| 114 | + />{' '} |
| 115 | + <SocietyCards |
| 116 | + society='Games and Sports Society' |
| 117 | + posts={POSTS.GSS} |
| 118 | + /> |
| 119 | + <SocietyCards society='Technical Society' posts={POSTS.TS} />{' '} |
61 | 120 | </>
|
62 | 121 | );
|
63 | 122 | default:
|
64 | 123 | return (
|
65 | 124 | <>
|
66 |
| - <SocietyCards society='Film and Music Society' /> |
67 |
| - <SocietyCards society='Literary and Cultural Society' />{' '} |
68 |
| - <SocietyCards society='Games and Sports Society' /> |
69 |
| - <SocietyCards society='Technical Society' />{' '} |
| 125 | + <SocietyCards society='Film and Music Society' posts={POSTS.FMS} /> |
| 126 | + <SocietyCards |
| 127 | + society='Literary and Cultural Society' |
| 128 | + posts={POSTS.LCS} |
| 129 | + />{' '} |
| 130 | + <SocietyCards |
| 131 | + society='Games and Sports Society' |
| 132 | + posts={POSTS.GSS} |
| 133 | + /> |
| 134 | + <SocietyCards society='Technical Society' posts={POSTS.TS} />{' '} |
70 | 135 | </>
|
71 | 136 | );
|
72 | 137 | }
|
|
0 commit comments