Make the new landing page handle the signed in user better
This commit is contained in:
parent
e337bfbe91
commit
e66ac8425e
2 changed files with 97 additions and 58 deletions
|
@ -1176,22 +1176,56 @@ i.toggle-icon:hover {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.landing {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.landing .popover {
|
.landing .popover {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.landing {
|
.landing-content {
|
||||||
color: white;
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing-background {
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
left: 0px;
|
||||||
|
right: 0px;
|
||||||
|
|
||||||
background-color: #1d1d1d;
|
background-color: #1d1d1d;
|
||||||
background-position: left -300px;
|
background-position: left -300px;
|
||||||
background-image: url(../img/landing-back.jpg);
|
background-image: url(../img/landing-back.jpg);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing-filter {
|
||||||
|
z-index: 0;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
top: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
left: 0px;
|
||||||
|
right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing-filter.signedin {
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing-content {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.landing {
|
||||||
|
color: white;
|
||||||
|
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
|
|
||||||
padding-top: 120px;
|
padding-top: 120px;
|
||||||
|
|
||||||
min-height: 440px;
|
min-height: 440px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,71 +1,76 @@
|
||||||
<div class="jumbotron landing">
|
<div class="jumbotron landing">
|
||||||
<img class="logo" src="/static/img/box-logo.png">
|
<div class="landing-background" ng-class="user.anonymous ? 'landing': 'signedin'"></div>
|
||||||
<span class="product-name">Quay.io</span>
|
<div class="landing-filter" ng-class="user.anonymous ? 'landing': 'signedin'"></div>
|
||||||
|
<div class="landing-content">
|
||||||
|
<img class="logo" src="/static/img/box-logo.png">
|
||||||
|
<span class="product-name">Quay.io</span>
|
||||||
|
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><a href="http://docs.quay.io/" target="_blank">Tour</a></li>
|
<li><a href="http://docs.quay.io/" target="_blank">Tour</a></li>
|
||||||
<li><a href="http://docs.quay.io/" target="_blank">Documentation</a></li>
|
<li><a href="http://docs.quay.io/" target="_blank">Documentation</a></li>
|
||||||
<li><a ng-href="/tutorial/" target="{{ appLinkTarget() }}">Tutorial</a></li>
|
<li><a ng-href="/tutorial/" target="{{ appLinkTarget() }}">Tutorial</a></li>
|
||||||
<li><a ng-href="/plans/" target="{{ appLinkTarget() }}">Pricing</a></li>
|
<li><a ng-href="/plans/" target="{{ appLinkTarget() }}">Pricing</a></li>
|
||||||
<li><a ng-href="/repository/" target="{{ appLinkTarget() }}">Repositories</a></li>
|
<li><a ng-href="/repository/" target="{{ appLinkTarget() }}">Repositories</a></li>
|
||||||
<li><a ng-href="/organizations/" target="{{ appLinkTarget() }}">Organizations</a></li>
|
<li><a ng-href="/organizations/" target="{{ appLinkTarget() }}">Organizations</a></li>
|
||||||
<li><a ng-href="/signin/" target="{{ appLinkTarget() }}">Sign In</a></li>
|
<li><a ng-href="/signin/" target="{{ appLinkTarget() }}">Sign In</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row messages">
|
<div class="row messages">
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<div ng-show="user.anonymous">
|
<div ng-show="user.anonymous">
|
||||||
<h1>Secure hosting for <b>private</b> Docker<a class="disclaimer-link" href="/disclaimer" target="_self">*</a> repositories</h1>
|
<h1>Secure hosting for <b>private</b> Docker<a class="disclaimer-link" href="/disclaimer" target="_self">*</a> repositories</h1>
|
||||||
<h3>Use the Docker images <b>your team</b> needs with the safety of <b>private</b> repositories</h3>
|
<h3>Use the Docker images <b>your team</b> needs with the safety of <b>private</b> repositories</h3>
|
||||||
<div class="sellcall"><a href="/plans/">Private repository plans starting at $12/mo</a></div>
|
<div class="sellcall"><a href="/plans/">Private repository plans starting at $12/mo</a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-show="!user.anonymous">
|
<div ng-show="!user.anonymous">
|
||||||
<span class="namespace-selector" user="user" namespace="namespace" ng-show="user.organizations"></span>
|
<span class="namespace-selector" user="user" namespace="namespace" ng-show="user.organizations"></span>
|
||||||
|
|
||||||
<div class="resource-view" resource="my_repositories">
|
<div class="resource-view" resource="my_repositories">
|
||||||
<!-- Repos -->
|
<!-- Repos -->
|
||||||
<div ng-show="my_repositories.value.length > 0">
|
<div ng-show="my_repositories.value.length > 0">
|
||||||
<h2>Top Repositories</h2>
|
<h2>Top Repositories</h2>
|
||||||
<div class="repo-listing" ng-repeat="repository in my_repositories.value">
|
<div class="repo-listing" ng-repeat="repository in my_repositories.value">
|
||||||
<span class="repo-circle no-background" repo="repository"></span>
|
<span class="repo-circle no-background" repo="repository"></span>
|
||||||
<a ng-href="/repository/{{ repository.namespace }}/{{ repository.name }}">{{repository.namespace}}/{{repository.name}}</a>
|
<a ng-href="/repository/{{ repository.namespace }}/{{ repository.name }}">{{repository.namespace}}/{{repository.name}}</a>
|
||||||
<div class="markdown-view description" content="repository.description" first-line-only="true"></div>
|
<div class="markdown-view description" content="repository.description" first-line-only="true"></div>
|
||||||
|
</div>
|
||||||
|
<a href="/repository/?namespace={{ user.username }}">See All Repositories</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- No Repos -->
|
<!-- No Repos -->
|
||||||
<div ng-show="my_repositories.value.length == 0">
|
<div ng-show="my_repositories.value.length == 0">
|
||||||
<div class="sub-message" style="margin-top: 20px">
|
<div class="sub-message" style="margin-top: 20px">
|
||||||
<span ng-show="namespace != user.username">You don't have access to any repositories in this organization yet.</span>
|
<span ng-show="namespace != user.username">You don't have access to any repositories in this organization yet.</span>
|
||||||
<span ng-show="namespace == user.username">You don't have any repositories yet!</span>
|
<span ng-show="namespace == user.username">You don't have any repositories yet!</span>
|
||||||
<div class="options">
|
<div class="options">
|
||||||
<a class="btn btn-primary" href="/repository/">Browse all repositories</a>
|
<a class="btn btn-primary" href="/repository/">Browse all repositories</a>
|
||||||
<a class="btn btn-success" href="/new/" ng-show="canCreateRepo(namespace)">Create a new repository</a>
|
<a class="btn btn-success" href="/new/" ng-show="canCreateRepo(namespace)">Create a new repository</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- col -->
|
||||||
</div> <!-- col -->
|
|
||||||
|
|
||||||
<div class="col-md-4 col-md-offset-1">
|
<div class="col-md-4 col-md-offset-1">
|
||||||
<div ng-show="user.anonymous">
|
<div ng-show="user.anonymous">
|
||||||
<div class="signup-form"></div>
|
<div class="signup-form"></div>
|
||||||
</div>
|
</div>
|
||||||
<div ng-show="!user.anonymous" class="user-welcome">
|
<div ng-show="!user.anonymous" class="user-welcome">
|
||||||
<img class="gravatar" src="//www.gravatar.com/avatar/{{ user.gravatar }}?s=128&d=identicon" />
|
<img class="gravatar" src="//www.gravatar.com/avatar/{{ user.gravatar }}?s=128&d=identicon" />
|
||||||
<div class="sub-message">Welcome <b>{{ user.username }}</b>!</div>
|
<div class="sub-message">Welcome <b>{{ user.username }}</b>!</div>
|
||||||
<a ng-show="my_repositories.value" class="btn btn-primary" href="/repository/">Browse all repositories</a>
|
<a ng-show="my_repositories.value" class="btn btn-primary" href="/repository/">Browse all repositories</a>
|
||||||
<a class="btn btn-success" href="/new/">Create a new repository</a>
|
<a class="btn btn-success" href="/new/">Create a new repository</a>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- col -->
|
</div> <!-- col -->
|
||||||
</div> <!-- row -->
|
</div> <!-- row -->
|
||||||
</div> <!-- container -->
|
</div> <!-- container -->
|
||||||
|
</div>
|
||||||
</div> <!-- jumbotron -->
|
</div> <!-- jumbotron -->
|
||||||
|
|
||||||
<div class="">
|
<div class="rows" ng-show="user.anonymous">
|
||||||
<div class=" shoutout-row landing-section">
|
<div class=" shoutout-row landing-section">
|
||||||
<h2>Simple and straightforward benefits</h2>
|
<h2>Simple and straightforward benefits</h2>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
Reference in a new issue