-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc1975d
commit 23a1cbc
Showing
5 changed files
with
159 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,137 @@ | ||
import React, { useState } from 'react'; | ||
|
||
import { | ||
ButtonBase, | ||
Container, | ||
Typography, | ||
useMediaQuery, | ||
} from '@mui/material'; | ||
import theme from '../../config/themes/light'; | ||
|
||
import makeStyles from '@mui/styles/makeStyles'; | ||
|
||
import theme from '../../config/themes/light'; | ||
import PostHolders from './PostHolder'; | ||
import SocietyCards from './SocietyCards'; | ||
|
||
const STAGE = { | ||
DSW: 'Dean SW', | ||
SP: 'Sac President', | ||
SOB: 'SAC Office Bearers', | ||
DNF: 'Dean’s Nominee for Fests', | ||
DNS: 'Dean’s Nominee for societies', | ||
FC: 'Fest Convenors', | ||
}; | ||
|
||
const POSTS = { | ||
FMS: [ | ||
{ | ||
position: 'Vice President', | ||
name: 'Prof. Binod Bihari Sahu', | ||
phone: '0661-2462782', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Balaji P.S.', | ||
phone: '0661-2462528', | ||
email: '[email protected]', | ||
}, | ||
], | ||
LCS: [ | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Akshaya Kumar Rath', | ||
phone: '0661-2462697', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Winny Routray', | ||
phone: '', | ||
email: '[email protected]', | ||
}, | ||
], | ||
GSS: [ | ||
{ | ||
position: 'Vice President', | ||
name: 'Prof. Ramesh Kumar Mohapatra', | ||
phone: '0661-2462366', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Mayank Yadav', | ||
phone: '', | ||
email: '[email protected]', | ||
}, | ||
], | ||
TS: [ | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Kaustav Chaudhury', | ||
phone: '0661-2462535 ', | ||
email: '[email protected]', | ||
}, | ||
{ | ||
position: 'Vice President', | ||
name: 'Dr. Prasun Chongder', | ||
phone: '', | ||
email: '[email protected]', | ||
}, | ||
], | ||
}; | ||
|
||
const SacInfoNavbar = () => { | ||
const [stage, setStage] = useState(STAGE.SOB); | ||
const [stage, setStage] = useState(STAGE.DSW); | ||
const classes = useStyles(); | ||
const matches = useMediaQuery(theme.breakpoints.down('md')); | ||
|
||
const renderTeam = () => { | ||
switch (stage) { | ||
case STAGE.SOB: | ||
case STAGE.DSW: | ||
return ( | ||
<> | ||
<SocietyCards society='Film and Music Society' /> | ||
<SocietyCards society='Literary and Cultural Society' />{' '} | ||
<SocietyCards society='Games and Sports Society' /> | ||
<SocietyCards society='Technical Society' />{' '} | ||
<PostHolders | ||
position='Dean SW' | ||
name='Prof. Sidhartha S. Jena' | ||
email='[email protected]' | ||
/> | ||
</> | ||
); | ||
case STAGE.DNF: | ||
case STAGE.SP: | ||
return ( | ||
<> | ||
<SocietyCards society='Film and Music Society' /> | ||
<SocietyCards society='Literary and Cultural Society' /> | ||
<SocietyCards society='Games and Sports Society' /> | ||
<SocietyCards society='Technical Society' />{' '} | ||
<PostHolders | ||
position='Sac President' | ||
name='Prof. Poonam Singh' | ||
email='[email protected]' | ||
/> | ||
</> | ||
); | ||
case STAGE.DNS: | ||
return ( | ||
<> | ||
<SocietyCards society='Film and Music Society' /> | ||
<SocietyCards society='Literary and Cultural Society' />{' '} | ||
<SocietyCards society='Games and Sports Society' /> | ||
<SocietyCards society='Technical Society' />{' '} | ||
</> | ||
); | ||
case STAGE.FC: | ||
case STAGE.SOB: | ||
return ( | ||
<> | ||
<SocietyCards society='Film and Music Society' /> | ||
<SocietyCards society='Literary and Cultural Society' />{' '} | ||
<SocietyCards society='Games and Sports Society' /> | ||
<SocietyCards society='Technical Society' />{' '} | ||
<SocietyCards society='Film and Music Society' posts={POSTS.FMS} /> | ||
<SocietyCards | ||
society='Literary and Cultural Society' | ||
posts={POSTS.LCS} | ||
/>{' '} | ||
<SocietyCards | ||
society='Games and Sports Society' | ||
posts={POSTS.GSS} | ||
/> | ||
<SocietyCards society='Technical Society' posts={POSTS.TS} />{' '} | ||
</> | ||
); | ||
default: | ||
return ( | ||
<> | ||
<SocietyCards society='Film and Music Society' /> | ||
<SocietyCards society='Literary and Cultural Society' />{' '} | ||
<SocietyCards society='Games and Sports Society' /> | ||
<SocietyCards society='Technical Society' />{' '} | ||
<SocietyCards society='Film and Music Society' posts={POSTS.FMS} /> | ||
<SocietyCards | ||
society='Literary and Cultural Society' | ||
posts={POSTS.LCS} | ||
/>{' '} | ||
<SocietyCards | ||
society='Games and Sports Society' | ||
posts={POSTS.GSS} | ||
/> | ||
<SocietyCards society='Technical Society' posts={POSTS.TS} />{' '} | ||
</> | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters