-
+ %for course, url in courses:
+
- + + ${course} + + + + %endfor +
Log in
-+
diff --git a/cms/static/img/home-icon.png b/cms/static/img/home-icon.png new file mode 100644 index 0000000000..be44bc2089 Binary files /dev/null and b/cms/static/img/home-icon.png differ diff --git a/cms/static/img/large-toggles.png b/cms/static/img/large-toggles.png index 2251a1fa72..8c38a77ba0 100644 Binary files a/cms/static/img/large-toggles.png and b/cms/static/img/large-toggles.png differ diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index faf740b1b4..e6568b14d9 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -64,7 +64,9 @@ footer { height: 100px; } -input[type="text"] { +input[type="text"], +input[type="email"], +input[type="password"] { padding: 6px 8px 8px; box-sizing: border-box; border: 1px solid #b0b6c2; diff --git a/cms/static/sass/_dashboard.scss b/cms/static/sass/_dashboard.scss new file mode 100644 index 0000000000..395c9f6a2c --- /dev/null +++ b/cms/static/sass/_dashboard.scss @@ -0,0 +1,44 @@ +.class-list { + margin-top: 20px; + border-radius: 3px; + border: 1px solid $darkGrey; + background: #fff; + box-shadow: 0 1px 2px rgba(0, 0, 0, .1); + + li { + border-bottom: 1px solid $mediumGrey; + + &:last-child { + border-bottom: none; + } + } + + a { + padding: 20px 25px; + line-height: 1.3; + + &:hover { + background: $paleYellow; + } + } + + .class-name { + display: block; + font-size: 22px; + font-weight: 300; + } + + .detail { + font-size: 14px; + font-weight: 400; + margin-right: 20px; + color: #3c3c3c; + } +} + +.new-course-button { + @include grey-button; + display: block; + padding: 20px; + text-align: center; +} \ No newline at end of file diff --git a/cms/static/sass/_graphics.scss b/cms/static/sass/_graphics.scss index 3abe0da860..1ee1313073 100644 --- a/cms/static/sass/_graphics.scss +++ b/cms/static/sass/_graphics.scss @@ -41,6 +41,13 @@ background: url(../img/list-icon.png) no-repeat; } +.home-icon { + display: inline-block; + width: 19px; + height: 16px; + background: url(../img/home-icon.png) no-repeat; +} + .calendar-icon { display: inline-block; width: 12px; diff --git a/cms/static/sass/_header.scss b/cms/static/sass/_header.scss index 0518436511..0992d49210 100644 --- a/cms/static/sass/_header.scss +++ b/cms/static/sass/_header.scss @@ -17,13 +17,22 @@ line-height: 18px; } - a { + a, + .username { float: left; display: inline-block; height: 29px; padding: 7px 15px 0; color: #e4e6ee; - box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2) inset, -1px 0 0 rgba(0, 0, 0, 0.3) inset; + } + + .class-nav, + .class-nav li { + float: left; + } + + a { + box-shadow: 1px 0 0 #787981 inset, -1px 0 0 #3d3e44 inset, 1px 0 0 #787981, -1px 0 0 #3d3e44; &:hover { background: rgba(255, 255, 255, .1); @@ -33,13 +42,5 @@ background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)); box-shadow: 0 2px 8px rgba(0, 0, 0, .7) inset; } - - &:last-child { - box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2) inset, -1px 0 0 rgba(0, 0, 0, 0.3) inset, 1px 0 0 rgba(255, 255, 255, 0.2); - } - - &:first-child { - box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2) inset, -1px 0 0 rgba(0, 0, 0, 0.3) inset, -1px 0 0 rgba(0, 0, 0, 0.3); - } } } \ No newline at end of file diff --git a/cms/static/sass/_login.scss b/cms/static/sass/_login.scss new file mode 100644 index 0000000000..9d228e7bab --- /dev/null +++ b/cms/static/sass/_login.scss @@ -0,0 +1,68 @@ +.log-in-box { + width: 500px; + margin: 200px auto; + border-radius: 3px; + + header { + height: 36px; + border-radius: 3px 3px 0 0; + border: 1px solid #2c2e33; + background: -webkit-linear-gradient(top, #686b76, #54565e); + color: #fff; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(255, 255, 255, 0.05) inset, 0 1px 0 rgba(255, 255, 255, .25) inset; + + h1 { + margin: 5px 0; + font-size: 15px; + font-weight: 300; + text-align: center; + } + } + + .log-in-form { + padding: 40px; + border: 1px solid $darkGrey; + border-top-width: 0; + border-radius: 0 0 3px 3px; + background: #fff; + box-shadow: 0 1px 2px rgba(0, 0, 0, .1); + } + + label { + display: block; + font-size: 13px; + font-weight: 700; + } + + .email-field, + .password-field { + width: 100%; + font-size: 20px; + font-weight: 300; + } + + .row { + margin-bottom: 24px; + } + + .form-actions { + margin-bottom: 0; + } + + .log-in-button { + @include blue-button; + margin-right: 10px; + padding: 8px 20px 10px; + } + + .forgot-button { + font-size: 13px; + } + + .log-in-extra { + margin-top: 10px; + text-align: right; + font-size: 13px; + border-top: 1px solid $lightGrey; + } +} \ No newline at end of file diff --git a/cms/static/sass/_unit.scss b/cms/static/sass/_unit.scss index 4546835811..027b346f20 100644 --- a/cms/static/sass/_unit.scss +++ b/cms/static/sass/_unit.scss @@ -263,6 +263,10 @@ } } + .status { + display: none; + } + .visibility-options .option { margin-right: 10px; padding: 3px 13px 6px; @@ -279,7 +283,7 @@ } .save-button { - @include blue-button; + @include white-button; margin-top: 10px; } @@ -292,6 +296,10 @@ @include orange-button; margin-top: 10px; } + + .release-button { + @include blue-button; + } } .unit-history { diff --git a/cms/static/sass/_variables.scss b/cms/static/sass/_variables.scss index b5ead0480e..432a78058b 100644 --- a/cms/static/sass/_variables.scss +++ b/cms/static/sass/_variables.scss @@ -14,4 +14,7 @@ $pink: rgb(182,37,104); $error-red: rgb(253, 87, 87); $blue: #5597dd; +$lightGrey: #edf1f5; +$mediumGrey: #ced2db; $darkGrey: #8891a1; +$paleYellow: #fffcf1; \ No newline at end of file diff --git a/cms/static/sass/base-style.scss b/cms/static/sass/base-style.scss index 5c214b6cef..ef734b7115 100644 --- a/cms/static/sass/base-style.scss +++ b/cms/static/sass/base-style.scss @@ -9,6 +9,7 @@ @import "cms_mixins"; @import "base"; @import "header"; +@import "dashboard"; @import "courseware"; @import "subsection"; @import "unit"; @@ -16,6 +17,7 @@ @import "graphics"; @import "modal"; @import "alerts"; +@import "login"; @import 'content-types'; diff --git a/cms/templates/index.html b/cms/templates/index.html index 6e3cb648ae..fd4891c771 100644 --- a/cms/templates/index.html +++ b/cms/templates/index.html @@ -3,18 +3,28 @@ <%block name="title">Courses%block> <%block name="content"> -