Date and place -section to separate component.
This commit is contained in:
19
src/components/DateAndPlace.scss
Normal file
19
src/components/DateAndPlace.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
@import '../colors.scss';
|
||||
|
||||
.dateAndPlace {
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-size: calc(10px + 2vmin);
|
||||
|
||||
h2 {
|
||||
font-family: 'Montserrat-Medium';
|
||||
font-size: 1.4rem;
|
||||
color: $brown-text !important;
|
||||
margin-bottom: -0.7rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1rem;
|
||||
color: $brown-text !important;
|
||||
}
|
||||
}
|
||||
17
src/components/DateAndPlace.tsx
Normal file
17
src/components/DateAndPlace.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import './DateAndPlace.scss';
|
||||
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
export const DateAndPlace = () => {
|
||||
return (
|
||||
<div className='dateAndPlace'>
|
||||
<h2>
|
||||
<FormattedMessage id='common.datetime' />
|
||||
</h2>
|
||||
|
||||
<h3>
|
||||
<FormattedMessage id='common.place' />
|
||||
</h3>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user