Skip to content

Commit

Permalink
Extend styles to the signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelmenner committed Jan 28, 2024
1 parent 727eba4 commit 1659491
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,13 @@ const EditForm = () => {
</Button>
)}
<Button type="submit" variant="primary" formNoValidate disabled={isSubmitting}>
{isNew ? t('editSignup.action.save') : t('editSignup.action.edit')}
{event?.slug === 'epoch' ? 'Preserve this manuscript'
: (
// eslint-disable-next-line react/jsx-no-useless-fragment
<>
{ isNew ? t('editSignup.action.save') : t('editSignup.action.edit')}
</>
)}
</Button>
</nav>
)}
Expand Down
36 changes: 34 additions & 2 deletions packages/ilmomasiina-components/src/routes/EditSignup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import EditForm from './components/EditForm';
import NarrowContainer from './components/NarrowContainer';

const EditSignupView = () => {
const { error, pending } = useEditSignupContext();
const { error, pending, event } = useEditSignupContext();
const { t } = useTranslation();

if (error) {
Expand All @@ -30,7 +30,39 @@ const EditSignupView = () => {
);
}

return <EditForm />;
return (
<>
{event?.slug === 'epoch'
? (
<>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=MedievalSharp" />
<style>
{`
body {
background-image: url("https://i.ibb.co/58bwmJQ/papertexture2.png");
background-repeat: repeat;
background-color: #FFEDCF;
font-family: MedievalReadable;
}
h1 {
font-family: MedievalFancy;
}
.dg-logo {
display: block !important;
}
.ilmo--side-widget {
background-color: #e8d6ac;
border-radius: 0.5rem;
`}
</style>
</>
) : (<style />)}
<EditForm />
</>
);
};

const EditSignup = () => {
Expand Down

0 comments on commit 1659491

Please sign in to comment.