update org landing

remove merge conflict
This commit is contained in:
lislis 2016-03-22 18:33:04 +01:00
parent 7434806254
commit b338483bf1
4 changed files with 272 additions and 358 deletions

View File

@ -1,11 +1,7 @@
import Ember from 'ember'; import Ember from 'ember';
import { githubCommit as githubCommitUrl } from 'travis/utils/urls'; import { githubCommit as githubCommitUrl } from 'travis/utils/urls';
import config from 'travis/config/environment'; import config from 'travis/config/environment';
<<<<<<< HEAD
import { hasAdminPermission, hasPushPermission } from 'travis/utils/permission'; import { hasAdminPermission, hasPushPermission } from 'travis/utils/permission';
=======
import Permissions from 'travis/mixins/permissions';
>>>>>>> add permissions mixin to dashboard row
export default Ember.Component.extend(Permissions, { export default Ember.Component.extend(Permissions, {
tagName: 'li', tagName: 'li',

View File

@ -7,20 +7,6 @@
.top.landing-page .topbar .top.landing-page .topbar
background-color: #fff background-color: #fff
.button--signin
background-color: #ffffff
background-image: inline-image('landing-page/signingithub.svg')
background-size: 16px 16px
border: 2px solid #e4e7e7
color: #a0a8a8
.button--signingin
border: 2px solid #3FA75F
.button--signin:hover
background-color: #73c78d
background-image: inline-image('landing-page/signingithub-hover.svg')
border: 2px solid #73c78d
color: #fff
.landing-centered-wrapper .landing-centered-wrapper
.button .button
.sync-spinner .sync-spinner
@ -37,9 +23,14 @@
font-size: 5em font-size: 5em
line-height: 1em line-height: 1em
font-weight: 300 font-weight: 300
color: #8f9294 color: rgba($asphalt-grey, .8)
margin-bottom: 0 margin-bottom: 0
.hero,
.recent-builds,
.features-list
background-color: $pebble-grey
.hero, .oss-testing, .customers, .recent-builds, .free-for-oss, .private-repos, .features-list, .build-flows, .user-testimonials .hero, .oss-testing, .customers, .recent-builds, .free-for-oss, .private-repos, .features-list, .build-flows, .user-testimonials
padding: 70px 0 70px 0 padding: 70px 0 70px 0
@ -52,11 +43,11 @@
font-size: 3.3em font-size: 3.3em
line-height: 1.15em line-height: 1.15em
font-weight: 300 font-weight: 300
color: #39a85b color: $turf-green
p p
line-height: 1.5em line-height: 1.5em
font-color: #606162 font-color: $asphalt-grey
font-size: 1.7em font-size: 1.7em
.hero.z-1 .hero.z-1
@ -78,13 +69,12 @@
margin-bottom: -192px margin-bottom: -192px
#laptop img #laptop img
border: 2px solid #d8dadc border: 2px solid rgba($cement-grey, 0.2)
border-radius: 2px border-radius: 2px
.hero .hero
background-color: #f6f6f6
h1 h1
color: #339999 color: $oxide-blue
line-height: 1.2em line-height: 1.2em
margin-bottom: 0 margin-bottom: 0
@ -96,17 +86,15 @@
display: none display: none
.button .button
background-color: #39a85b background-color: $turf-green
color: #fff color: #fff
font-size: 2em font-size: 2em
font-weight: 300 font-weight: 300
padding: 0.5em
margin: 1.3em 0 1.3em 0 margin: 1.3em 0 1.3em 0
border-radius: 2px border-radius: 2px
border: 0
&:hover &:hover
background-color: #73c78d background-color: rgba($turf-green, .8)
.sign-in-mascot .sign-in-mascot
padding-right: 10px padding-right: 10px
@ -139,19 +127,15 @@
padding: 0 0 0 12% padding: 0 0 0 12%
.recent-builds .recent-builds
background-color: #f6f6f6
min-height: 44rem min-height: 44rem
.recent-builds-text .recent-builds-text
text-align: center text-align: center
h2 h2
color: #db4141 color: $brick-red
text-align: right text-align: right
margin: 0 margin: 0
a
color: #828282
p p
text-align: right text-align: right
margin-top: 0.5em margin-top: 0.5em
@ -196,7 +180,7 @@
text-align: center text-align: center
h2 h2
color: #339999 color: $oxide-blue
margin: 0 margin: 0
text-align: right text-align: right
@ -206,7 +190,12 @@
text-align: right text-align: right
a a
text-decoration: underline text-decoration: none
border-bottom: 1px solid $asphalt-grey
transition: all 200ms ease
&:hover
border-bottom: none
color: $cement-grey
.mobile-envelope .mobile-envelope
display: none display: none
@ -215,7 +204,6 @@
display: inline-block display: inline-block
.features-list .features-list
background-color: #f6f6f6
h2 h2
margin: 0 margin: 0
@ -223,16 +211,11 @@
h3 h3
font-size: 1.4em font-size: 1.4em
font-weight: 300 font-weight: 300
color: #413c3c
text-align: center
margin-bottom: 35px margin-bottom: 35px
padding-top: 40px padding-top: 40px
p p
font-size: 1.15em font-size: 16px
font-weight: 300
color: #606162
text-align: center
br.mobile-break br.mobile-break
display: none display: none
@ -278,7 +261,6 @@
margin-top: 1.6rem; margin-top: 1.6rem;
li li
font-color: #606162
font-size: 1.7em font-size: 1.7em
line-height: 1.7em line-height: 1.7em
&:before &:before
@ -293,7 +275,7 @@
text-align: center text-align: center
h2 h2
color: #909295 color: $cement-grey
h2#pr-bf-margin h2#pr-bf-margin
margin-top: 90px margin-top: 90px
@ -304,9 +286,8 @@
width: 120px width: 120px
p p
font-size: 1em font-size: 13px
line-height: 1.5em line-height: 1.5em
color: #5f6062
.divider-line-horizontal .divider-line-horizontal
width: 50px width: 50px
@ -322,13 +303,11 @@
margin-bottom: 50px margin-bottom: 50px
h2 h2
color: #418793 color: $oxide-blue
text-align: right text-align: right
p p
font-size: 1.2em font-size: 1.2em
font-weight: 300
color: #606162
margin: 0 margin: 0
display: inline-block display: inline-block
@ -407,7 +386,7 @@
.build-flows .branch-bf .divider-line-vertical .build-flows .branch-bf .divider-line-vertical
width: 3px width: 3px
height: 40px height: 40px
background: #eaeaec background: $pebble-grey
display: inline-block display: inline-block
margin-bottom: 10px margin-bottom: 10px
@ -472,7 +451,6 @@
padding-left: .5rem padding-left: .5rem
font-size: 18px font-size: 18px
.landing, .landing,
.landing-pro .landing-pro
background-color: white background-color: white

View File

@ -1,4 +1,3 @@
<div class="two-line row-header fade-out"> <div class="two-line row-header fade-out">
<div class="row-name row-color"> <div class="row-name row-color">
<h3>{{#link-to "owner" repo.owner}} <h3>{{#link-to "owner" repo.owner}}
@ -14,20 +13,9 @@
<div class="two-line"> <div class="two-line">
<div class="row-number"> <div class="row-number">
<div class="row-item row-color"> <div class="row-item">
{{#link-to "build" repo repo.lastBuildId}} {{#link-to "build" repo repo.lastBuildId}}
<span class="icon"> <span class="icon-hash"></span>
<svg version="1.1" id="Layer_1" x="0px" y="0px"
viewBox="-289 191 20 20" style="enable-background:new -289 191 20 20;" xml:space="preserve">
<path fill="#A5ACAD" class="st0" d="M-272.4,198.4C-272.4,198.4-272.4,198.4-272.4,198.4l-3.4,0l0.3-3.3c0-0.3-0.2-0.6-0.5-0.6
c-0.3,0-0.6,0.2-0.6,0.5l-0.3,3.4l-3.2,0l0.3-3.6c0-0.3-0.2-0.6-0.5-0.6c-0.3,0-0.6,0.2-0.6,0.5l-0.3,3.7l-3.2,0
c-0.3,0-0.5,0.2-0.5,0.6c0,0.3,0.2,0.5,0.5,0.5c0,0,0,0,0,0l3.1,0l-0.2,2.9l-3.5,0c-0.3,0-0.5,0.2-0.5,0.6c0,0.3,0.2,0.5,0.5,0.5
c0,0,0,0,0,0l3.4,0l-0.3,3.3c0,0.3,0.2,0.6,0.5,0.6c0,0,0,0,0,0c0.3,0,0.5-0.2,0.5-0.5l0.3-3.4l3.2,0l-0.3,3.6
c0,0.3,0.2,0.6,0.5,0.6c0,0,0,0,0,0c0.3,0,0.5-0.2,0.5-0.5l0.3-3.7l3.2,0c0.3,0,0.5-0.2,0.5-0.6c0-0.3-0.2-0.5-0.5-0.5c0,0,0,0,0,0
l-3.1,0l0.2-2.9l3.5,0c0.3,0,0.5-0.2,0.5-0.6C-271.8,198.7-272.1,198.4-272.4,198.4z M-277.2,202.4l-3.2,0l0.2-2.9l3.2,0
L-277.2,202.4z"/>
</svg>
</span>
<span class="label-align"> <span class="label-align">
{{repo.lastBuildNumber}} {{repo.lastBuildState}}</span> {{repo.lastBuildNumber}} {{repo.lastBuildState}}</span>
{{/link-to}} {{/link-to}}
@ -36,22 +24,7 @@
<div class="row-calendar"> <div class="row-calendar">
<div class="row-item" title="{{repo.lastBuildFinishedAt}}"> <div class="row-item" title="{{repo.lastBuildFinishedAt}}">
<span class="icon"> <span class="icon-calendar"> </span>
<svg viewBox="0 0 20 20">
<g id="Cal">
<path fill="#A7AEAE" d="M16.7,2.5H3.3C3,2.5,2.8,2.7,2.8,3V17c0,0.3,0.2,0.5,0.5,0.5h13.4c0.3,0,0.5-0.2,0.5-0.5V3
C17.2,2.7,17,2.5,16.7,2.5z M16.2,3.4v3.1H3.8V3.4H16.2z M3.8,16.6v-9h12.5v9H3.8z"/>
<path fill="#A7AEAE" d="M8.7,13.4c-0.1,0-0.3,0-0.4,0c0.2-0.2,0.4-0.4,0.5-0.6c0.2-0.2,0.3-0.4,0.5-0.6c0.1-0.2,0.2-0.4,0.3-0.6
c0.1-0.2,0.1-0.4,0.1-0.6c0-0.2,0-0.4-0.1-0.6c-0.1-0.2-0.2-0.3-0.3-0.4C9.2,10,9.1,9.9,8.9,9.8C8.7,9.7,8.5,9.7,8.3,9.7
C8,9.7,7.7,9.8,7.5,9.9C7.2,10,7,10.2,6.8,10.4L7.3,11c0.1-0.1,0.2-0.2,0.4-0.3c0.1-0.1,0.3-0.1,0.4-0.1c0.2,0,0.4,0.1,0.5,0.2
c0.1,0.1,0.2,0.3,0.2,0.5c0,0.2,0,0.3-0.1,0.5c-0.1,0.2-0.2,0.4-0.4,0.6c-0.2,0.2-0.4,0.4-0.6,0.7c-0.2,0.2-0.5,0.5-0.8,0.8v0.6
H10v-0.9H9.1C9,13.4,8.8,13.4,8.7,13.4z"/>
<path fill="#A7AEAE" d="M10.6,10.7h2c-0.2,0.3-0.4,0.6-0.5,0.8c-0.1,0.3-0.3,0.6-0.4,0.8c-0.1,0.3-0.2,0.6-0.2,0.9
c0,0.3-0.1,0.7-0.1,1h1c0-0.4,0-0.8,0.1-1.2c0-0.3,0.1-0.7,0.2-0.9c0.1-0.3,0.2-0.6,0.4-0.9c0.2-0.3,0.4-0.6,0.6-0.9V9.8h-3.1
V10.7z"/>
</g>
</svg>
</span>
<time class="label-align" datetime="{{repo.lastBuildFinishedAt}}"> <time class="label-align" datetime="{{repo.lastBuildFinishedAt}}">
{{landing-page-last-build-time repo.lastBuildFinishedAt}}</time> {{landing-page-last-build-time repo.lastBuildFinishedAt}}</time>
</div> </div>
@ -61,48 +34,15 @@
<div class="two-line"> <div class="two-line">
<div class="row-commit"> <div class="row-commit">
<div class="row-item"> <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,0.1,0.4c0,0.1-0.3,1-0.9,1.4c-0.7,0.4-1.8,0.5-2.5-0.3c-0.1-0.1-0.2-0.2-0.3-0.3
c-0.2-0.3-0.6-0.8-1-1c-0.1,0-0.1,0-0.1,0c0,0,0,0-0.1,0.1c0,0.2,0,0.4,0.1,0.6c0.1,0.1,0.2,0.2,0.3,0.4c0.2,0.3,0.4,0.5,0.5,0.8
c0.4,0.8,1,1.1,1.2,1.2C6.6,15.2,7.4,15.1,7.8,15.1C7.7,15.1,7.7,15.1,7.8,15.1z"/>
</g>
</svg>
</span>
<span class="label-align"> <span class="label-align">
{{format-sha repo.lastBuild.commit.sha}}</span> {{format-sha repo.lastBuild.commit.sha}}</span>
</div> </div>
</div> </div>
<div class="row-commiter"> <div class="row-commiter">
<div class="row-item"> <div class="row-item color">
<span class="icon"> {{request-icon event=repo.lastBuild.eventType}}
<svg version="1.1" id="Layer_1" x="0px" y="0px" <span class="label-align">{{repo.lastBuild.commit.branch}}</span>
viewBox="0 0 20 20" enable-background="new 0 0 20 20" xml:space="preserve">
<g id="Push">
<path fill="#A7AEAE" d="M16.9,9.4h-3.5c-0.3-1.6-1.7-2.8-3.4-2.8S6.9,7.8,6.6,9.4H3.1c-0.3,0-0.6,0.3-0.6,0.6s0.3,0.6,0.6,0.6h3.5
c0.3,1.6,1.7,2.8,3.4,2.8s3.1-1.2,3.4-2.8h3.5c0.3,0,0.6-0.3,0.6-0.6S17.2,9.4,16.9,9.4z M10,12.2c-1.2,0-2.2-1-2.2-2.2
c0-1.2,1-2.2,2.2-2.2c1.2,0,2.2,1,2.2,2.2c0,0,0,0,0,0c0,0,0,0,0,0C12.2,11.2,11.2,12.2,10,12.2z"/>
</g>
</svg>
</span><span class="label-align">{{repo.lastBuild.commit.branch}}</span>
</div> </div>
</div> </div>
</div> </div>

View File

@ -7,7 +7,7 @@
<p>Easily sync your GitHub projects with Travis CI<br class="mobile-break"> and youll be testing your code in minutes!</p> <p>Easily sync your GitHub projects with Travis CI<br class="mobile-break"> and youll be testing your code in minutes!</p>
{{#if auth.signedOut}} {{#if auth.signedOut}}
<button {{action "signIn" target="auth"}} class="button"><img src="../images/landing-page/sign-in-mascot.svg" class="sign-in-mascot">Sign Up</button> <button {{action "signIn" target="auth"}} class="button"><img src="../images/landing-page/sign-in-mascot.svg" class="sign-in-mascot"><span class="label-align">Sign Up</span></button>
{{/if}} {{/if}}
{{#if auth.signingIn}} {{#if auth.signingIn}}
<button class="button"><span class="loading-indicator--white"><i></i><i></i><i></i></span>Signing In</button> <button class="button"><span class="loading-indicator--white"><i></i><i></i><i></i></span>Signing In</button>