Small and large variations for the DataAndPlace.
This commit is contained in:
@@ -4,16 +4,29 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: calc(10px + 2vmin);
|
font-size: calc(10px + 2vmin);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-family: 'Montserrat-Medium';
|
font-family: 'Montserrat-Medium';
|
||||||
font-size: 1.4rem;
|
|
||||||
color: $brown-text !important;
|
color: $brown-text !important;
|
||||||
margin-bottom: -0.7rem;
|
margin-bottom: -0.7rem !important;
|
||||||
|
|
||||||
|
&.large {
|
||||||
|
font-size: 2rem !important;
|
||||||
|
}
|
||||||
|
&.small {
|
||||||
|
font-size: 1.4rem !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1rem;
|
|
||||||
color: $brown-text !important;
|
color: $brown-text !important;
|
||||||
|
|
||||||
|
&.large {
|
||||||
|
font-size: 1.4rem !important;
|
||||||
|
}
|
||||||
|
&.small {
|
||||||
|
font-size: 0.8rem !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,14 @@ import './DateAndPlace.scss';
|
|||||||
|
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
export const DateAndPlace = () => {
|
export const DateAndPlace = (props: { size: string }) => {
|
||||||
return (
|
return (
|
||||||
<div className='dateAndPlace'>
|
<div className='dateAndPlace'>
|
||||||
<h2>
|
<h2 className={props.size}>
|
||||||
<FormattedMessage id='common.datetime' />
|
<FormattedMessage id='common.datetime' />
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<h3>
|
<h3 className={props.size}>
|
||||||
<FormattedMessage id='common.place' />
|
<FormattedMessage id='common.place' />
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import './Diamond.scss';
|
||||||
|
|
||||||
export const Diamond = () => {
|
export const Diamond = () => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const RegistrationHeader = () => {
|
|||||||
<FormattedMessage id='common.maslo' />
|
<FormattedMessage id='common.maslo' />
|
||||||
</h1>
|
</h1>
|
||||||
<Diamond />
|
<Diamond />
|
||||||
<DateAndPlace />
|
<DateAndPlace size='small' />
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export const Main = () => {
|
|||||||
</article>
|
</article>
|
||||||
) : (
|
) : (
|
||||||
<article>
|
<article>
|
||||||
<DateAndPlace />
|
<DateAndPlace size='large' />
|
||||||
</article>
|
</article>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user