|
@@ -22,7 +22,9 @@ const Home = () => {
|
|
{training ? (
|
|
{training ? (
|
|
<>
|
|
<>
|
|
<h1 className='training-title'>{training.title}</h1>
|
|
<h1 className='training-title'>{training.title}</h1>
|
|
- <TrainingMeta training={training} />
|
|
|
|
|
|
+ <div className='training-meta-wrap'>
|
|
|
|
+ <TrainingMeta training={training} />
|
|
|
|
+ </div>
|
|
<TrainingProgram training={training} />
|
|
<TrainingProgram training={training} />
|
|
</>
|
|
</>
|
|
) : null}
|
|
) : null}
|
|
@@ -31,6 +33,10 @@ const Home = () => {
|
|
|
|
|
|
<style jsx>
|
|
<style jsx>
|
|
{`
|
|
{`
|
|
|
|
+ .next-training {
|
|
|
|
+ padding: 1.2em 0.3em;
|
|
|
|
+ }
|
|
|
|
+
|
|
.training-title {
|
|
.training-title {
|
|
grid-area: title;
|
|
grid-area: title;
|
|
margin: 0.3em 0;
|
|
margin: 0.3em 0;
|
|
@@ -38,8 +44,7 @@ const Home = () => {
|
|
font-size: 3.4rem;
|
|
font-size: 3.4rem;
|
|
font-weight: 300;
|
|
font-weight: 300;
|
|
text-transform: uppercase;
|
|
text-transform: uppercase;
|
|
- color: ${theme.colors.blue};
|
|
|
|
- padding: 0;
|
|
|
|
|
|
+ color: ${theme.colors.offWhite};
|
|
margin: 0.3em 0;
|
|
margin: 0.3em 0;
|
|
position: relative;
|
|
position: relative;
|
|
}
|
|
}
|
|
@@ -51,7 +56,7 @@ const Home = () => {
|
|
display: block;
|
|
display: block;
|
|
position: absolute;
|
|
position: absolute;
|
|
top: -1rem;
|
|
top: -1rem;
|
|
- left: 01rem;
|
|
|
|
|
|
+ left: 1rem;
|
|
color: ${theme.colors.darkerblue};
|
|
color: ${theme.colors.darkerblue};
|
|
}
|
|
}
|
|
|
|
|
|
@@ -77,6 +82,7 @@ const Home = () => {
|
|
}
|
|
}
|
|
@media (min-width: 1024px) {
|
|
@media (min-width: 1024px) {
|
|
.next-training {
|
|
.next-training {
|
|
|
|
+ padding: 3em 3em;
|
|
display: grid;
|
|
display: grid;
|
|
grid-template-columns: 2fr 1fr;
|
|
grid-template-columns: 2fr 1fr;
|
|
grid-template-rows: auto 1fr auto;
|
|
grid-template-rows: auto 1fr auto;
|
|
@@ -85,28 +91,51 @@ const Home = () => {
|
|
'info program'
|
|
'info program'
|
|
'archive program';
|
|
'archive program';
|
|
column-gap: 2em;
|
|
column-gap: 2em;
|
|
|
|
+ background-image: linear-gradient(
|
|
|
|
+ to bottom,
|
|
|
|
+ #84cae7,
|
|
|
|
+ #84cae7 400px,
|
|
|
|
+ #c7c7c7 400px,
|
|
|
|
+ #c7c7c7 401px,
|
|
|
|
+ #ebebeb 401px
|
|
|
|
+ );
|
|
}
|
|
}
|
|
.training-title {
|
|
.training-title {
|
|
- font-size: 8rem;
|
|
|
|
|
|
+ font-size: 5rem;
|
|
margin: 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
.training-title::before {
|
|
.training-title::before {
|
|
font-size: 1.4rem;
|
|
font-size: 1.4rem;
|
|
display: block;
|
|
display: block;
|
|
position: absolute;
|
|
position: absolute;
|
|
- top: -0.4rem;
|
|
|
|
- left: 2.4rem;
|
|
|
|
|
|
+ top: -0.7rem;
|
|
|
|
+ left: 0.4rem;
|
|
color: ${theme.colors.darkerblue};
|
|
color: ${theme.colors.darkerblue};
|
|
}
|
|
}
|
|
- :global(.training-meta) {
|
|
|
|
|
|
+ .training-meta-wrap {
|
|
|
|
+ filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.18));
|
|
|
|
+ }
|
|
|
|
+ .next-training :global(.training-meta) {
|
|
grid-area: info;
|
|
grid-area: info;
|
|
- height: 350px;
|
|
|
|
|
|
+ width: 700px;
|
|
|
|
+ margin-left: auto;
|
|
|
|
+ padding: 2em;
|
|
|
|
+ padding-top: 11.5em;
|
|
|
|
+ color: ${theme.colors.offWhite};
|
|
|
|
+ height: 300px;
|
|
|
|
+ background-color: #efefef;
|
|
background-image: url('/media/man_working_out.jpg');
|
|
background-image: url('/media/man_working_out.jpg');
|
|
background-size: auto 100%;
|
|
background-size: auto 100%;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
background-position: right center;
|
|
background-position: right center;
|
|
clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 0% 0%);
|
|
clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 0% 0%);
|
|
}
|
|
}
|
|
|
|
+ .next-training :global(.training-program) {
|
|
|
|
+ padding: 2em;
|
|
|
|
+ background-color: #ebebeb;
|
|
|
|
+ /* box-shadow: ${theme.bs}; */
|
|
|
|
+ filter: drop-shadow(0 0 12px rgba(0,0,0,0.18));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
`}
|
|
`}
|
|
</style>
|
|
</style>
|