diff --git a/src/views/hoc/hoc.jsx b/src/views/hoc/hoc.jsx index 3ce80cf6c..5ef961f34 100644 --- a/src/views/hoc/hoc.jsx +++ b/src/views/hoc/hoc.jsx @@ -6,42 +6,54 @@ require('./hoc.scss'); var Button = require('../../components/forms/button.jsx'); var Box = require('../../components/box/box.jsx'); + + var Hoc = React.createClass({ type: 'Hoc', + + getInitialState: function () { + return { + bgClass: '' + }; + }, + onCardEnter: function (e) { + this.setState({ + bgClass: e + }); + }, render: function () { return (
-
+

Get Creative with Coding

- -
-
- -
- -
- -
- -
- -
-
-

With Scratch, you can program your own stories, games, and animations — and share them online.

+
+
+ +
+ +
+ +
+ +
+ +
+
+
  • Find out more:
  • About Scratch
  • @@ -66,24 +78,27 @@ var Hoc = React.createClass({
    - Animate Your Name -
    13 mb
    +
    Animate Your Name
    + Activity Cards + Facilitator Guide
    - Hide-and-Seek -
    5 mb
    +
    Hide-and-Seek
    + Activity Cards + Facilitator Guide
    - Dance, Dance, Dance -
    11 mb
    +
    Dance, Dance, Dance
    + Activity Cards + Facilitator Guide
    diff --git a/src/views/hoc/hoc.scss b/src/views/hoc/hoc.scss index a059567d9..47c078140 100644 --- a/src/views/hoc/hoc.scss +++ b/src/views/hoc/hoc.scss @@ -1,6 +1,8 @@ @import "../../colors"; $base-bg: $ui-white; +$bg-gradient-light: rgba(0, 0, 0, 0); +$bg-gradient-dark: rgba(0, 0, 0, .5); #view { padding: 0; @@ -22,15 +24,30 @@ $base-bg: $ui-white; } .top-banner { + transition: background-image .5s ease, background-color .5s ease; + margin-top: 10px; margin-bottom: 40px; background-color: $ui-aqua; + background-position: center; + background-size: cover; padding: 10px 0; - width: 100%; + &.wbb-bg { + background-image: url("/images/hide-bg.jpg"); + } + + &.dance-bg { + background-image: url("/images/dance-bg.jpg"); + } + + &.name-bg { + background-image: url("/images/name-bg.jpg"); + } + h1, p { margin: 0 auto; @@ -147,7 +164,7 @@ $base-bg: $ui-white; align-items: center; &:last-child { - border-bottom: none; + border-bottom: 0; } h3, @@ -170,24 +187,18 @@ $base-bg: $ui-white; align-items: center; img { - margin-right: 10px; + margin-right: 15px; + } + + h5 { + margin: 8px 0; + font-weight: 500; } a { + display: block; + margin: 5px 0; font-size: .8em; - font-weight: 500; - } - - .file-size { - margin-top: 5px; - width: inherit; - - text-transform: uppercase; - letter-spacing: .5px; - color: $ui-orange; - font-size: .7em; - font-weight: 500; - } } diff --git a/static/images/dance-bg.jpg b/static/images/dance-bg.jpg new file mode 100644 index 000000000..5d6f9676d Binary files /dev/null and b/static/images/dance-bg.jpg differ diff --git a/static/images/dance-tutorial.jpg b/static/images/dance-tutorial.jpg new file mode 100644 index 000000000..26441b4d5 Binary files /dev/null and b/static/images/dance-tutorial.jpg differ diff --git a/static/images/dance-tutorial.png b/static/images/dance-tutorial.png deleted file mode 100644 index de81669da..000000000 Binary files a/static/images/dance-tutorial.png and /dev/null differ diff --git a/static/images/hide-bg.jpg b/static/images/hide-bg.jpg new file mode 100644 index 000000000..c2dd3a49c Binary files /dev/null and b/static/images/hide-bg.jpg differ diff --git a/static/images/hide-seek-tutorial.jpg b/static/images/hide-seek-tutorial.jpg new file mode 100644 index 000000000..fd045320b Binary files /dev/null and b/static/images/hide-seek-tutorial.jpg differ diff --git a/static/images/hide-seek-tutorial.png b/static/images/hide-seek-tutorial.png deleted file mode 100644 index f832b0791..000000000 Binary files a/static/images/hide-seek-tutorial.png and /dev/null differ diff --git a/static/images/name-bg.jpg b/static/images/name-bg.jpg new file mode 100644 index 000000000..a6d532391 Binary files /dev/null and b/static/images/name-bg.jpg differ diff --git a/static/images/name-tutorial.jpg b/static/images/name-tutorial.jpg new file mode 100644 index 000000000..5adee44c1 Binary files /dev/null and b/static/images/name-tutorial.jpg differ diff --git a/static/images/name-tutorial.png b/static/images/name-tutorial.png deleted file mode 100644 index aa44045f0..000000000 Binary files a/static/images/name-tutorial.png and /dev/null differ