More structure to the registration page.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import { common } from "./common/en";
|
import { common } from "./common/en";
|
||||||
|
import { registration } from './registration/en';
|
||||||
|
|
||||||
const en: Record<string, string> = {
|
const en: Record<string, string> = {
|
||||||
...common
|
...common,
|
||||||
|
...registration
|
||||||
}
|
}
|
||||||
|
|
||||||
export default en;
|
export default en;
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
import { common } from "./common/fi";
|
import { common } from "./common/fi";
|
||||||
|
import { registration } from './registration/en';
|
||||||
|
|
||||||
const fi: Record<string, string> = {
|
const fi: Record<string, string> = {
|
||||||
...common
|
...common,
|
||||||
|
...registration
|
||||||
}
|
}
|
||||||
|
|
||||||
export default fi;
|
export default fi;
|
||||||
4
src/constants/localization/registration/en.ts
Normal file
4
src/constants/localization/registration/en.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const registration: Record<string, string> = {
|
||||||
|
"registration.welcome": "Welcome to our wedding on plaa plaa August 2022",
|
||||||
|
"registration.questions": "If you have any question about:\nmushrooms\ndangerous animals"
|
||||||
|
}
|
||||||
4
src/constants/localization/registration/fi.ts
Normal file
4
src/constants/localization/registration/fi.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const registration: Record<string, string> = {
|
||||||
|
"registration.welcome": "Welcome to our wedding on plaa plaa August 2022",
|
||||||
|
"registration.questions": "If you have any question about:\nmushrooms\ndangerous animals"
|
||||||
|
}
|
||||||
BIN
src/img/lintujamaslo.jpg
Normal file
BIN
src/img/lintujamaslo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -1,4 +1,26 @@
|
|||||||
|
.Registration {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
white-space: pre-line;
|
||||||
|
|
||||||
|
.Registration-main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 50%;
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.Registration-form {
|
.Registration-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
import "./Registration.scss";
|
import "./Registration.scss";
|
||||||
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import mainPicture from "../img/lintujamaslo.jpg"
|
||||||
|
|
||||||
import { RegForm } from '../components/RegForm'
|
import { RegForm } from '../components/RegForm'
|
||||||
|
|
||||||
export const Registration = () => {
|
export const Registration = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<main className="Registration">
|
||||||
|
<div className="Registration-main">
|
||||||
|
<img src={mainPicture} />
|
||||||
|
<p><FormattedMessage id="registration.welcome" /></p>
|
||||||
|
<p><FormattedMessage id="registration.questions" /></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
<div className="Registration-form">
|
<div className="Registration-form">
|
||||||
<RegForm />
|
<RegForm />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user