-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement GH-982: Add hoc event row
Showing
4 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
var FormattedMessage = require('react-intl').FormattedMessage; | ||
var React = require('react'); | ||
|
||
var Button = require('../../../components/forms/button.jsx'); | ||
var FlexRow = require('../../../components/flex-row/flex-row.jsx'); | ||
|
||
require('./hoc-event-row.scss'); | ||
|
||
var HocEventRow = React.createClass({ | ||
type: 'HocEventRow', | ||
propTypes: { | ||
onDismiss: React.PropTypes.func | ||
}, | ||
render: function () { | ||
return ( | ||
<div className="hoc-event"> | ||
<Button | ||
className="mod-hoc-event-dismiss" | ||
onClick={this.props.onDismiss} | ||
> | ||
<FormattedMessage id="hocevent.dismiss" /> | ||
<img | ||
className="hoc-event-dismiss-icon" | ||
src="/svgs/modal/close-x.svg" | ||
alt="close-icon" | ||
/> | ||
</Button> | ||
<FlexRow className="mod-hoc-event"> | ||
<div className="hoc-event-studio"> | ||
<h1 className="hoc-event-studio-h1"> | ||
<FormattedMessage id="hocevent.title" /> | ||
</h1> | ||
<a href="/studios/3600717/" className="button white mod-hoc-event"> | ||
<FormattedMessage id="hocevent.studioLink" /> | ||
</a> | ||
</div> | ||
<div className="hoc-event-video"> | ||
<iframe | ||
className="hoc-event-video-iframe" | ||
title="Design a Character Studio" | ||
src="https://www.youtube.com/embed/y0Z5_wipT2o" | ||
frameborder="0" | ||
webkitAllowFullScreen | ||
mozallowfullscreen | ||
allowFullScreen | ||
/> | ||
</div> | ||
</FlexRow> | ||
</div> | ||
); | ||
} | ||
}); | ||
|
||
module.exports = HocEventRow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
@import "../../../colors"; | ||
@import "../../../frameless"; | ||
|
||
.hoc-event { | ||
position: relative; | ||
opacity: .9; | ||
margin: 0 auto 20px; | ||
border-radius: 1rem; | ||
background-color: $ui-blue; | ||
width: $cols12; | ||
} | ||
|
||
.hoc-event:after { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
opacity: .5; | ||
z-index: -1; | ||
border-radius: 1rem; | ||
background: url("/images/splash/hoc-event-bg.jpg"); | ||
background-size: cover; | ||
content: ""; | ||
} | ||
|
||
.flex-row.mod-hoc-event { | ||
padding: 3rem 5rem; | ||
} | ||
|
||
.button.mod-hoc-event-dismiss { | ||
position: absolute; | ||
top: .5rem; | ||
right: .5rem; | ||
margin: 0; | ||
border: 1px solid $type-white; | ||
border-radius: 2rem; | ||
box-shadow: none; | ||
background-color: transparent; | ||
padding: .25rem .75rem; | ||
color: $type-white; | ||
font-weight: 300; | ||
} | ||
|
||
.hoc-event-dismiss-icon { | ||
margin-left: .25rem; | ||
width: .8rem; | ||
vertical-align: middle; | ||
} | ||
|
||
.hoc-event-studio-h1 { | ||
margin-bottom: 1.5rem; | ||
line-height: 2.5rem; | ||
color: $type-white; | ||
} | ||
|
||
.button.mod-hoc-event { | ||
padding: .75rem 1.75rem; | ||
} | ||
|
||
.hoc-event-studio, | ||
.hoc-event-video-iframe { | ||
width: 23.75rem; | ||
} | ||
|
||
.hoc-event-video-iframe { | ||
border: 3px solid $ui-border; | ||
border-radius: 5px; | ||
height: 13.75rem; | ||
} | ||
|
||
@media only screen and (max-width: $mobile - 1) { | ||
.hoc-event { | ||
width: $cols4; | ||
} | ||
|
||
.flex-row.mod-hoc-event { | ||
padding: 2.5rem; | ||
} | ||
|
||
.hoc-event-studio, | ||
.hoc-event-video-iframe { | ||
width: 13.75rem; | ||
} | ||
|
||
.hoc-event-studio { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.hoc-event-video-iframe { | ||
height: 8.75rem; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: $mobile) and (max-width: $tablet - 1) { | ||
.hoc-event { | ||
width: $cols6; | ||
} | ||
|
||
.flex-row.mod-hoc-event { | ||
padding: 2.5rem 2.5rem 1.5rem; | ||
} | ||
|
||
.hoc-event-studio { | ||
margin-bottom: 1rem; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: $tablet) and (max-width: $desktop - 1) { | ||
.hoc-event { | ||
width: $cols8; | ||
} | ||
|
||
.flex-row.mod-hoc-event { | ||
padding: 1.875rem; | ||
} | ||
|
||
.hoc-event-studio { | ||
width: 14.625rem; | ||
text-align: left; | ||
} | ||
|
||
.hoc-event-video-iframe { | ||
width: 18.375rem; | ||
height: 10rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.