Skip to content

Commit

Permalink
Merge pull request #34460 from code-dot-org/add-confetti-to-certificate
Browse files Browse the repository at this point in the history
Add confetti to certificate congrats page
  • Loading branch information
Hamms committed Apr 28, 2020
2 parents f9cabc8 + 5db69e5 commit 20edb4c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/src/templates/Certificate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React, {Component} from 'react';
import {connect} from 'react-redux';
import $ from 'jquery';
import BackToFrontConfetti from './BackToFrontConfetti';
import i18n from '@cdo/locale';
import color from '../util/color';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -37,6 +38,9 @@ const styles = {
submit: {
background: color.orange,
color: color.white
},
confetti: {
top: 100
}
};

Expand Down Expand Up @@ -145,6 +149,10 @@ class Certificate extends Component {
/>
)}
<div id="uitest-certificate" style={certificateStyle}>
<BackToFrontConfetti
active={this.state.personalized}
style={styles.confetti}
/>
<a href={certificateLink}>
<img src={imgSrc} />
</a>
Expand Down

0 comments on commit 20edb4c

Please sign in to comment.