Skip to content

Commit a2a604c

Browse files
committed
Implement #5218
1 parent 4a16124 commit a2a604c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

src/shared/components/HallOfFamePage/HoF.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import React from 'react';
77
import PT from 'prop-types';
88
import ContentfulLoader from 'containers/ContentfulLoader';
99
import { PrimaryButton, Button } from 'topcoder-react-ui-kit';
10+
import ContentBlock from 'components/Contentful/ContentBlock';
1011

1112
import Error404 from 'components/Error404';
1213

@@ -239,6 +240,21 @@ const HallOfFamePage = ({ eventId, hallOfFame }) => {
239240
</div>
240241
)
241242
}
243+
{
244+
data.fields.spiritAwardWinners && (
245+
<div styleName="spirit-awards">
246+
<h3>Spirit Award</h3>
247+
<div styleName="spirit-awards-wrap">
248+
{
249+
_.map(
250+
data.fields.spiritAwardWinners,
251+
sA => <ContentBlock id={sA.sys.id} />,
252+
)
253+
}
254+
</div>
255+
</div>
256+
)
257+
}
242258
{
243259
tripWinnersBoard.data.length > 0 && (
244260
<div styleName="trip-winners">

src/shared/components/HallOfFamePage/styles.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,23 @@
372372
background-color: #5cc900;
373373
}
374374
}
375+
376+
.spirit-awards {
377+
margin-top: 50px;
378+
display: flex;
379+
flex-direction: column;
380+
align-items: center;
381+
382+
h3 {
383+
margin-bottom: 20px;
384+
}
385+
386+
.spirit-awards-wrap {
387+
display: flex;
388+
justify-content: center;
389+
390+
a {
391+
font-size: 16px;
392+
}
393+
}
394+
}

0 commit comments

Comments
 (0)