Advertisement
Fahim_7861

Untitled

Jun 8th, 2021
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1. const useStyles = makeStyles(theme=>({
  2.  
  3.  
  4. rootBox : {
  5.  
  6.  
  7.  
  8.  
  9. },
  10.  
  11. titleStyle : {
  12.  
  13. fontSize : 23,
  14. color : '#54595C'
  15.  
  16.  
  17. },
  18.  
  19. iconSize1 : {
  20. height: "25px", width: "25px"
  21. },
  22.  
  23. textSize1 : {
  24. fontSize: "18px",
  25.  
  26. fontWeight: "bold",
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. }))
  36.  
  37. <Container >
  38. <JoinModal
  39. modalState={modalState}
  40. modalIsOpen={modalIsOpen}
  41. JoinExam={JoinExam}
  42. closeModal={closeModal}
  43. />
  44.  
  45. <Box style={{marginTop : '70px',
  46. display: "flex",
  47.  
  48. flexDirection: "row",
  49.  
  50. flexWrap: "wrap",
  51.  
  52. alignItems: "center",
  53.  
  54. justifyContent: "center",}}>
  55.  
  56. <Paper style={{ backgroundColor: "#EDF3FF" ,margin : 'auto',flexGrow : '1'}} elevation={1}>
  57.  
  58.  
  59. <Grid container style={{padding : '10px'}} spacing={2}>
  60.  
  61.  
  62. <Grid item container xs={12} alignItems='center' justify='center' >
  63.  
  64.  
  65. <Grid item xs></Grid>
  66.  
  67.  
  68. <Grid container item xs={5} alignItems='center' justify='center' style={{textAlign : 'center'}} >
  69.  
  70. <Grid item style={{padding : '5px'}}>
  71.  
  72. {type == archieved ? (
  73. <img
  74. style={{ height: "20px", width: "30px" }}
  75. src={archiveDateicon}
  76. ></img>
  77. ) : type == upcoming ? (
  78. <img
  79. style={{ height: "15px", width: "15px" }}
  80. src={schedule}
  81. ></img>
  82. ) : (
  83. <img
  84. style={{ height: "22px", width: "22px" }}
  85. src={runningState}
  86. ></img>
  87. )}
  88.  
  89. </Grid>
  90.  
  91. <Grid item >
  92.  
  93.  
  94.  
  95. <span style={{ fontWeight: "bold" }}>
  96. {state[0].toUpperCase() + state.slice(1)}
  97.  
  98. </span>
  99.  
  100. <br></br>
  101.  
  102.  
  103. {type == upcoming ? (
  104. <span>
  105. {TimeShow() ? (
  106. <span
  107. style={{
  108.  
  109. fontSize: "10px",
  110. fontWeight: "bold",
  111. }}
  112. >
  113. {getTimeFormat(timeLeft)}
  114. </span>
  115. ) : (
  116. <span
  117. style={{
  118.  
  119. fontSize: "10px",
  120. fontWeight: "bold",
  121. }}
  122. >
  123. {month.substring(0, 3)} {("0" + date).slice(-2)},{" "}
  124. {year}
  125. </span>
  126. )}
  127. </span>
  128. ) : type == archieved ? (
  129. <span>
  130. {
  131. <span
  132. style={{
  133.  
  134. fontSize: "10px",
  135. fontWeight: "bold",
  136. }}
  137. >
  138. {month.substring(0, 3)} {("0" + date).slice(-2)},{" "}
  139. {year}
  140. </span>
  141. }
  142. </span>
  143. ) : (
  144. <span
  145. style={{
  146. fontSize: "15px",
  147.  
  148. }}
  149. >
  150. {getTimeFormat(timeLeft)}
  151. </span>
  152. )}
  153.  
  154.  
  155.  
  156.  
  157. </Grid>
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. {/* <div style={{ paddingTop: "15px", paddingRight: "10px" }}>
  170. {type == archieved ? (
  171. <img
  172. style={{ height: "30px", width: "30px" }}
  173. src={archiveDateicon}
  174. ></img>
  175. ) : type == upcoming ? (
  176. <img
  177. style={{ height: "25px", width: "25px" }}
  178. src={schedule}
  179. ></img>
  180. ) : (
  181. <img
  182. style={{ height: "25px", width: "25px" }}
  183. src={runningState}
  184. ></img>
  185. )}
  186. </div> */}
  187.  
  188.  
  189.  
  190.  
  191. </Grid>
  192.  
  193.  
  194.  
  195.  
  196. </Grid>
  197.  
  198. <Grid item container >
  199. <Grid item xs={12}>
  200.  
  201. <Typography className = {classes.titleStyle}>{title}</Typography>
  202.  
  203.  
  204.  
  205. </Grid>
  206.  
  207. </Grid>
  208.  
  209.  
  210.  
  211. <Grid item container xs={12} justify='center' alignItems='center'
  212.  
  213. >
  214.  
  215. <Grid item xs={4} container spacing={1}>
  216.  
  217.  
  218.  
  219. <Grid item>
  220. <img
  221. className={classes.iconSize1}
  222. src={examinee}
  223. ></img>
  224.  
  225. </Grid>
  226.  
  227. <Grid item>
  228.  
  229. <span
  230. className = {classes.textSize1}
  231. >
  232. {total_examinees}
  233. </span>
  234. </Grid>
  235.  
  236. <Grid item>
  237. <ColoredLine color="black" />
  238.  
  239. </Grid>
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. </Grid>
  249.  
  250. <Grid item container xs={4} spacing={1}>
  251.  
  252.  
  253. <Grid item>
  254.  
  255. <img
  256. className={classes.iconSize1}
  257. src={score}
  258. ></img>
  259.  
  260. </Grid>
  261.  
  262. <Grid item>
  263.  
  264.  
  265.  
  266. <span
  267. className = {classes.textSize1}
  268. >
  269. {total_marks}
  270. </span>
  271. </Grid>
  272.  
  273.  
  274. <Grid item>
  275.  
  276. <ColoredLine color="black" />
  277.  
  278.  
  279.  
  280. </Grid>
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. </Grid>
  289.  
  290. <Grid item container xs={4} spacing={.5}>
  291.  
  292. <Grid item>
  293.  
  294. <img
  295. className={classes.iconSize1}
  296. src={clock}
  297. ></img>
  298. </Grid>
  299.  
  300. <Grid item>
  301.  
  302. <span
  303. className={classes.textSize1}
  304. >
  305. {durationConvert(duration)}
  306. </span>
  307.  
  308.  
  309.  
  310. </Grid>
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. </Grid>
  320.  
  321.  
  322.  
  323.  
  324.  
  325. </Grid>
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. </Grid>
  336.  
  337. </Paper>
  338.  
  339. </Box>
  340.  
  341.  
  342.  
  343.  
  344. </Container>
  345.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement