[TASK] Replace date in header with radar version / Add publish date to footer

This commit is contained in:
Florian Brandel
2018-05-23 12:57:56 +02:00
parent 4c8af43015
commit 32d1c0eae2
3 changed files with 14 additions and 1 deletions

View File

@@ -15,15 +15,19 @@ export default function PageIndex({
...props
}) {
const newestRelease = props.releases.slice(-1)[0];
const numberOfReleases = props.releases.length;
return (
<Fadeable leaving={leaving} onLeave={onLeave}>
<SetTitle {...props} title="Technology Radar" />
<div className="headline-group">
<HeroHeadline alt={formatRelease(newestRelease)}>
<HeroHeadline alt={`Version #${numberOfReleases}`}>
AOE Technology Radar
</HeroHeadline>
</div>
<QuadrantGrid items={featuredOnly(items)} />
<div className="publish-date">
Published {formatRelease(newestRelease)}
</div>
</Fadeable>
);
}

View File

@@ -29,6 +29,7 @@
}
&__footer {
margin-top: 5px;
flex: 0 0 auto;
}
}

View File

@@ -0,0 +1,8 @@
.publish-date {
color: var(--color-gray-normal);
text-align: right;
@media (--until-sm) {
text-align: center;
}
}