Make registration page responsive.
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
@import '../colors.scss';
|
@import '../colors.scss';
|
||||||
|
|
||||||
.dateAndPlace {
|
.DateAndPlace {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: calc(10px + 2vmin);
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
@@ -30,3 +29,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl';
|
|||||||
|
|
||||||
export const DateAndPlace = (props: { size: string }) => {
|
export const DateAndPlace = (props: { size: string }) => {
|
||||||
return (
|
return (
|
||||||
<div className='dateAndPlace'>
|
<div className='DateAndPlace'>
|
||||||
<h2 className={props.size}>
|
<h2 className={props.size}>
|
||||||
<FormattedMessage id='common.datetime' />
|
<FormattedMessage id='common.datetime' />
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@import '../colors.scss';
|
@import '../colors.scss';
|
||||||
|
|
||||||
h1 {
|
.LanguagePicker {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $brown-text !important;
|
color: $brown-text !important;
|
||||||
font-family: 'Montserrat-Medium';
|
font-family: 'Montserrat-Medium';
|
||||||
@@ -16,3 +16,9 @@ h1 {
|
|||||||
background-color: #e4e4de;
|
background-color: #e4e4de;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.LanguagePicker {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
import { useRecoilState } from 'recoil';
|
import { useRecoilState } from 'recoil';
|
||||||
import { currentLanguage } from '../atoms/language';
|
import { currentLanguage } from '../atoms/language';
|
||||||
import "./LanguagePicker.scss"
|
import './LanguagePicker.scss';
|
||||||
|
|
||||||
export const LanguagePicker = () => {
|
export const LanguagePicker = () => {
|
||||||
const [lang, setLang] = useRecoilState(currentLanguage)
|
const [lang, setLang] = useRecoilState(currentLanguage);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<h1>
|
<h1 className='LanguagePicker'>
|
||||||
<button onClick={e => setLang("fi")}>fi</button> | <button onClick={e => setLang("sk")}>sk</button> | <button onClick={e => setLang("en")}>en</button>
|
<button onClick={(e) => setLang('fi')}>fi</button> |{' '}
|
||||||
|
<button onClick={(e) => setLang('sk')}>sk</button> |{' '}
|
||||||
|
<button onClick={(e) => setLang('en')}>en</button>
|
||||||
</h1>
|
</h1>
|
||||||
)
|
);
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -71,3 +71,10 @@ form#registration {
|
|||||||
background-color: $background !important;
|
background-color: $background !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.submitButton {
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: break-spaces;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,3 +20,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.Diamond {
|
||||||
|
margin: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.App-header {
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
margin-bottom: -3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export const common: Record<string, string> = {
|
export const common: Record<string, string> = {
|
||||||
"common.lintu": "Lintu",
|
"common.lintu": "Lintu",
|
||||||
"common.maslo": "Maslo",
|
"common.maslo": "Maslo",
|
||||||
"common.datetime": "Elokuussa 27 | 11:00",
|
"common.datetime": "Elokuun 27 | 11:00",
|
||||||
"common.place": "Seurantalo | Livonsaari"
|
"common.place": "Seurantalo | Livonsaari"
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
export const registration: Record<string, string> = {
|
export const registration: Record<string, string> = {
|
||||||
"registration.welcome": "Welcome to our wedding table",
|
"registration.welcome": "Welcome to our wedding table",
|
||||||
|
"registration.datetime": "27th of August from 11:00 on",
|
||||||
|
"registration.place": "In Seurantalo of Livonsaari",
|
||||||
"registration.questions": "If you have any question about:\nmushrooms\ndangerous animals",
|
"registration.questions": "If you have any question about:\nmushrooms\ndangerous animals",
|
||||||
"registration.about": "We will be updating the program and menu in lintujamaslo.net",
|
"registration.about": "We will be updating the program and menu in lintujamaslo.net",
|
||||||
"registration.saveTheLink": "Save the link",
|
"registration.saveTheLink": "Save the link",
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
export const registration: Record<string, string> = {
|
export const registration: Record<string, string> = {
|
||||||
"registration.welcome": "Tervetuloa häihimme",
|
"registration.welcome": "Tervetuloa häihimme",
|
||||||
|
"registration.datetime": "Elokuun 27. päivänä kello 11:00 alkaen",
|
||||||
|
"registration.place": "Livonsaaren Seurantalolla",
|
||||||
"registration.questions": "Jos sinulla on mitään kysymyksiä\nsienistä\nvaarallisista pedoista",
|
"registration.questions": "Jos sinulla on mitään kysymyksiä\nsienistä\nvaarallisista pedoista",
|
||||||
"registration.about": "Päivitämme menua ja ohjelmaa osoitteeseen lintujamaslo.net",
|
"registration.about": "Päivitämme menua ja ohjelmaa osoitteeseen lintujamaslo.net",
|
||||||
"registration.saveTheLink": "Laita linkki talteen",
|
"registration.saveTheLink": "Laita linkki talteen",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
.Registration-main {
|
.Registration-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -13,14 +14,27 @@
|
|||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
.Registration-welcome {
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-family: 'Montserrat-Medium';
|
||||||
|
text-align: center;
|
||||||
|
color: $brown-text;
|
||||||
|
font-size: 2.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: $brown-text !important;
|
color: $brown-text !important;
|
||||||
font-family: 'Montserrat-Light';
|
font-family: 'Montserrat-Light';
|
||||||
margin-top: -1rem;
|
margin-top: -1rem;
|
||||||
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,8 +42,10 @@
|
|||||||
max-width: 23rem;
|
max-width: 23rem;
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
h2 {
|
max-width: 30%;
|
||||||
text-align: center;
|
|
||||||
|
p {
|
||||||
|
font-size: 1.5rem;
|
||||||
color: $brown-text !important;
|
color: $brown-text !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,3 +55,33 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 600px) {
|
||||||
|
.Registration {
|
||||||
|
.Registration-main {
|
||||||
|
max-width: 80%;
|
||||||
|
|
||||||
|
.Registration-welcome {
|
||||||
|
color: $green-text !important;
|
||||||
|
margin-bottom: 28px;
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.Registration-desc {
|
||||||
|
max-width: 90%;
|
||||||
|
p {
|
||||||
|
font-family: 'Montserrat-Medium';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.5rem !important;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,28 +12,29 @@ export const Registration = () => {
|
|||||||
<LanguagePicker />
|
<LanguagePicker />
|
||||||
<main className='Registration'>
|
<main className='Registration'>
|
||||||
<div className='Registration-main'>
|
<div className='Registration-main'>
|
||||||
<h1>
|
<h1 className='Registration-welcome'>
|
||||||
<FormattedMessage id='registration.welcome' />
|
<FormattedMessage id='registration.welcome' />
|
||||||
<br />
|
</h1>
|
||||||
<FormattedMessage id='common.datetime' />
|
<h1>
|
||||||
|
<FormattedMessage id='registration.datetime' />
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
<FormattedMessage id='common.place' />
|
<FormattedMessage id='registration.place' />
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div className='Registration-desc'>
|
<div className='Registration-desc'>
|
||||||
<h2>
|
<p>
|
||||||
<FormattedMessage id='registration.questions' />
|
<FormattedMessage id='registration.questions' />
|
||||||
</h2>
|
</p>
|
||||||
<h2>
|
<p>
|
||||||
<FormattedMessage id='registration.about' />
|
<FormattedMessage id='registration.about' />
|
||||||
</h2>
|
</p>
|
||||||
<h2>
|
<p>
|
||||||
<FormattedMessage id='registration.saveTheLink' />
|
<FormattedMessage id='registration.saveTheLink' />
|
||||||
</h2>
|
</p>
|
||||||
<h2>
|
<p>
|
||||||
<FormattedMessage id='registration.fillInBefore' />
|
<FormattedMessage id='registration.fillInBefore' />
|
||||||
</h2>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className='Registration-form'>
|
<div className='Registration-form'>
|
||||||
<RegForm />
|
<RegForm />
|
||||||
|
|||||||
Reference in New Issue
Block a user