diff --git a/src/views/hoc/hoc.jsx b/src/views/hoc/hoc.jsx
index 3ce80cf6c..b46b9678f 100644
--- a/src/views/hoc/hoc.jsx
+++ b/src/views/hoc/hoc.jsx
@@ -8,40 +8,50 @@ var Box = require('../../components/box/box.jsx');
var Hoc = React.createClass({
type: 'Hoc',
+
+ getInitialState: function () {
+ return {
+ bgClass: ''
+ };
+ },
+ onCardEnter: function (bgClass) {
+ this.setState({
+ bgClass: bgClass
+ });
+ },
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 +76,27 @@ var Hoc = React.createClass({
@@ -103,6 +116,16 @@ var Hoc = React.createClass({
+
+
diff --git a/src/views/hoc/hoc.scss b/src/views/hoc/hoc.scss
index a059567d9..88847e3a1 100644
--- a/src/views/hoc/hoc.scss
+++ b/src/views/hoc/hoc.scss
@@ -17,20 +17,35 @@ $base-bg: $ui-white;
max-width: 960px;
.box {
- margin-bottom: 100px;
+ margin-bottom: 10px;
}
}
.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;
@@ -135,7 +150,7 @@ $base-bg: $ui-white;
}
}
- .box section {
+ section {
display: flex;
margin: 0 auto;
border-bottom: 1px solid $ui-border;
@@ -147,7 +162,7 @@ $base-bg: $ui-white;
align-items: center;
&:last-child {
- border-bottom: none;
+ border-bottom: 0;
}
h3,
@@ -155,6 +170,19 @@ $base-bg: $ui-white;
font-weight: 300;
}
+ .logos {
+ margin: 10px 0;
+ width: 100%;
+
+ img {
+ margin: 0 20px;
+ max-width: 200px;
+ max-height: 75px;
+
+ vertical-align: middle;
+ }
+ }
+
.resource {
display: flex;
margin: 10px;
@@ -170,24 +198,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;
-
}
}
@@ -198,6 +220,10 @@ $base-bg: $ui-white;
margin: 10px;
width: 100%;
}
+
+ .logo {
+ display: block;
+ }
}
&.two-up {
@@ -216,5 +242,4 @@ $base-bg: $ui-white;
}
}
}
-
}
diff --git a/static/images/cn-logo.png b/static/images/cn-logo.png
new file mode 100644
index 000000000..6f56b7da0
Binary files /dev/null and b/static/images/cn-logo.png differ
diff --git a/static/images/code-org-logo.png b/static/images/code-org-logo.png
new file mode 100644
index 000000000..531df3c31
Binary files /dev/null and b/static/images/code-org-logo.png differ
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..8f5340292
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
diff --git a/static/images/paa-logo.png b/static/images/paa-logo.png
new file mode 100644
index 000000000..723eb9af4
Binary files /dev/null and b/static/images/paa-logo.png differ
diff --git a/static/images/pocketcode-logo.png b/static/images/pocketcode-logo.png
new file mode 100644
index 000000000..ce0a44b93
Binary files /dev/null and b/static/images/pocketcode-logo.png differ