@@ -31,6 +31,7 @@ import {Mail, Send} from "@mui/icons-material";
3131
3232// types: 0 = empty, 1 = textfield, 2 = date, 3 = select, 4 = radio
3333
34+ const registrationClosed = true ;
3435const personalData = [
3536 {
3637 formLabel : 'First name' ,
@@ -427,27 +428,22 @@ function Registration() {
427428
428429 }
429430
430- return (
431+ function renderRegistration ( ) {
432+ if ( registrationClosed ) {
433+ return (
434+ < Box sx = { { paddingTop : 10 , } } >
435+ < Typography variant = { "h5" } fontWeight = { "bold" } gutterBottom >
436+ Registration is closed!
437+ </ Typography >
438+ < Typography variant = { "h5" } fontWeight = { "bold" } color = { "text.disabled" } >
439+ We are currently reviewing all applications and will reach out to you soon.
440+ </ Typography >
441+ </ Box >
442+ )
443+ }
431444
432- < HackHPIWrapper >
433- < Container sx = { { paddingTop : 10 , paddingBottom : 10 } } id = { "signupForm" } >
434- < Typography variant = { "h2" } component = { "h1" } > Registration</ Typography >
435- < Typography variant = { "subtitle1" } gutterBottom > Apply now before March 15th!</ Typography >
436- < Box sx = { { position : "relative" } } >
437- < Box sx = { {
438- position : "absolute" ,
439- transform : "translate(-50%,-50%)" ,
440- left : "50%" ,
441- top : "50%" ,
442- zIndex : 1000 ,
443- } } >
444- < Typography variant = { "h5" } fontWeight = { "bold" } gutterBottom >
445- Registration is closed!
446- </ Typography >
447- < Typography variant = { "h5" } fontWeight = { "bold" } >
448- We are currently reviewing all applications and will reach out to you soon.
449- </ Typography >
450- </ Box >
445+ return (
446+ < >
451447 < Stepper activeStep = { activeStep } orientation = "vertical" sx = { { mt : 5 , filter : "blur(10px)" } } >
452448 { steps . map ( ( step , index ) => (
453449 < Step key = { index } >
@@ -505,10 +501,21 @@ function Registration() {
505501 </ Step >
506502 ) ) }
507503 </ Stepper >
508- < Typography color = { "text.disabled" } sx = { { marginTop : 3 , filter : "blur(10px)" } } > Read our < Link href = { "/privacy" }
509- color = { "inherit" } > privacy
504+ < Typography color = { "text.disabled" } sx = { { marginTop : 3 , filter : "blur(10px)" } } > Read our < Link
505+ href = { "/privacy" }
506+ color = { "inherit" } > privacy
510507 policy</ Link > for information on how we handle your data and what you rights are.</ Typography >
511- </ Box >
508+ </ >
509+ )
510+ }
511+
512+ return (
513+
514+ < HackHPIWrapper >
515+ < Container sx = { { paddingTop : 10 , paddingBottom : 10 } } id = { "signupForm" } >
516+ < Typography variant = { "h2" } component = { "h1" } > Registration</ Typography >
517+ { ! registrationClosed ? < Typography variant = { "subtitle1" } gutterBottom > Apply now before March 15th!</ Typography > : undefined }
518+ { renderRegistration ( ) }
512519 </ Container >
513520 </ HackHPIWrapper >
514521 )
0 commit comments