[TASK] Replace date in header with radar version / Add publish date to footer
This commit is contained in:
@@ -15,15 +15,19 @@ export default function PageIndex({
|
|||||||
...props
|
...props
|
||||||
}) {
|
}) {
|
||||||
const newestRelease = props.releases.slice(-1)[0];
|
const newestRelease = props.releases.slice(-1)[0];
|
||||||
|
const numberOfReleases = props.releases.length;
|
||||||
return (
|
return (
|
||||||
<Fadeable leaving={leaving} onLeave={onLeave}>
|
<Fadeable leaving={leaving} onLeave={onLeave}>
|
||||||
<SetTitle {...props} title="Technology Radar" />
|
<SetTitle {...props} title="Technology Radar" />
|
||||||
<div className="headline-group">
|
<div className="headline-group">
|
||||||
<HeroHeadline alt={formatRelease(newestRelease)}>
|
<HeroHeadline alt={`Version #${numberOfReleases}`}>
|
||||||
AOE Technology Radar
|
AOE Technology Radar
|
||||||
</HeroHeadline>
|
</HeroHeadline>
|
||||||
</div>
|
</div>
|
||||||
<QuadrantGrid items={featuredOnly(items)} />
|
<QuadrantGrid items={featuredOnly(items)} />
|
||||||
|
<div className="publish-date">
|
||||||
|
Published {formatRelease(newestRelease)}
|
||||||
|
</div>
|
||||||
</Fadeable>
|
</Fadeable>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
|
margin-top: 5px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
styles/components/publish-date.css
Normal file
8
styles/components/publish-date.css
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
.publish-date {
|
||||||
|
color: var(--color-gray-normal);
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
|
@media (--until-sm) {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user