Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #865 from gesa/1030883/make-your-own
Browse files Browse the repository at this point in the history
Bug 1030883 - Update "make your own" page to include great sample teaching kits
  • Loading branch information
Aki committed Jul 14, 2014
2 parents fc1fd4b + ab7f8a0 commit 7ec96dd
Show file tree
Hide file tree
Showing 21 changed files with 386 additions and 363 deletions.
3 changes: 1 addition & 2 deletions app.js
Expand Up @@ -351,7 +351,7 @@ if (env.get('FLAGS_EXPLORE')) {
app.get("/tools", routes.angular);
app.get("/appmaker", routes.angular);

// Made With Code
app.get("/make-your-own", routes.angular);
app.get('/madewithcode-*', routes.angular);

app.get("/gallery", routes.gallery({
Expand Down Expand Up @@ -392,7 +392,6 @@ app.delete("/api/badges/:badge/instance/email/:email", badgesRoutes.middleware.h

app.post("/api/submit-resource", routes.api.submitResource);

app.get("/make-your-own", routes.page("make-your-own"));
app.get("/mentor", routes.page("mentor"));
app.get("/getinvolved", routes.page("getinvolved"));
app.get("/search", routes.search);
Expand Down
1 change: 1 addition & 0 deletions less/explore/components/all.less
@@ -0,0 +1 @@
@import "make";
106 changes: 106 additions & 0 deletions less/explore/components/make.less
@@ -0,0 +1,106 @@
.make {
&.sample-make {
// prevents accidental class-collisions (make is a pretty
// common word 'round these parts)
background: @white;
box-shadow: 0 0 0.5rem 0.1rem rgba(0, 0, 0, 0.3);
color: @gray-light;
font-family: @primary-font;
font-size: 1.4rem;
font-weight: 300;
max-width: 30rem;
margin: 0 auto;
position: relative;

a {
transition: color 100ms;
}

h3 {
display: inline-block;
font-family: @primary-font;
font-size: 2.1rem;
font-weight: 300;
line-height: 1.3;
margin: 0 0 1rem;
}
h3, .make-meta {
a {
&:link, &:visited {
color: @black;
}
&:hover, &:active, &:focus {
color: @brand-info;
}
}
}

img {
height: auto;
margin: auto;
max-width: 100%;
}

p {
line-height: 1.3;
}

.make-thumbnail {
opacity: 0.9;
transition: opacity 100ms;
&:hover {
opacity: 1;
}
}
.gallery-info {
padding: 1.9rem;
}

.data-avatar {
border-radius: 50%;
float: left;
height: 4.4rem;
margin-right: 0.6rem;
width: 4.4rem;
}

.btn-container {
text-align: center;
transition: opacity 100ms ease;
}

.btn {
font-size: 1.8rem;
}

.like-toggle {
color: @brand-danger;
cursor: pointer;
display: inline-block;
font-size: 3rem;
margin-left: 0.5rem;
position: relative;
top: 0.6rem;
&.fa-heart-o {
color: @brand-primary;
}
}

.tag-container {
.icon-tags {
color: @gray-light;
}
font-size: 1.4rem;
margin: 0.8rem 0 1.6rem;
}

.tag {
&:after {
content: ', ';
}
&:last-child:after {
content: '';
}
}
}
}
3 changes: 2 additions & 1 deletion less/explore/main.less
Expand Up @@ -26,9 +26,10 @@
@import 'competency';
@import 'resources-home';
@import 'badges';
@import 'madewithcode';
@import 'signup';
@import 'appmaker';
@import 'components/all';
@import 'pages/all';
// @import 'competency-mentors;

/*********************************************************
Expand Down
2 changes: 2 additions & 0 deletions less/explore/pages/all.less
@@ -0,0 +1,2 @@
@import "madewithcode";
@import "make-your-own";
@@ -1,107 +1,3 @@
#make-gallery {
.make {
box-shadow: 0 0 0.5rem 0.1rem rgba(0, 0, 0, 0.3);
color: @gray-light;
font-family: @primary-font;
font-size: 1.4rem;
font-weight: 300;
max-width: 30rem;
margin: 0 auto;
position: relative;

a {
transition: color 100ms;
}

h3 {
display: inline-block;
font-family: @primary-font;
font-size: 2.1rem;
font-weight: 300;
line-height: 1.3;
margin: 0 0 1rem;
}
h3, .make-meta {
a {
&:link, &:visited {
color: @black;
}
&:hover, &:active, &:focus {
color: @brand-info;
}
}
}

img {
height: auto;
margin: auto;
max-width: 100%;
}

p {
line-height: 1.3;
}

.make-thumbnail {
opacity: 0.9;
transition: opacity 100ms;
&:hover {
opacity: 1;
}
}
.gallery-info {
padding: 1.9rem;
}

.data-avatar {
border-radius: 50%;
float: left;
height: 4.4rem;
margin-right: 0.6rem;
width: 4.4rem;
}

.btn-container {
text-align: center;
transition: opacity 100ms ease;
}

.btn {
font-size: 1.8rem;
}

.like-toggle {
color: @brand-danger;
cursor: pointer;
display: inline-block;
font-size: 3rem;
margin-left: 0.5rem;
position: relative;
top: 0.6rem;
&.fa-heart-o {
color: @brand-primary;
}
}

.tag-container {
.icon-tags {
color: #CCC;
}
font-size: 1.4rem;
margin: 0.8rem 0 1.6rem;
}

.tag {
&:after {
content: ', ';
}
&:last-child:after {
content: '';
}
}
}
}

.made-with-code {
color: @grey;
font-family: @primary-font;
Expand Down

0 comments on commit 7ec96dd

Please sign in to comment.