Skip to content

Commit 2b5dee1

Browse files
Merge pull request #5221 from topcoder-platform/spirit-award
Spirit award
2 parents 717b71e + d4da53c commit 2b5dee1

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ workflows:
237237
filters:
238238
branches:
239239
only:
240-
- free
240+
- spirit-award
241241
# This is alternate dev env for parallel testing
242242
- "build-qa":
243243
context : org-global

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)