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;
|
||||
}
|
||||
|
||||
.landing {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.landing .popover {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.landing {
|
||||
color: white;
|
||||
.landing-content {
|
||||
|
||||
}
|
||||
|
||||
.landing-background {
|
||||
z-index: 0;
|
||||
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
|
||||
background-color: #1d1d1d;
|
||||
background-position: left -300px;
|
||||
background-image: url(../img/landing-back.jpg);
|
||||
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;
|
||||
|
||||
padding-top: 120px;
|
||||
|
||||
min-height: 440px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<div class="jumbotron landing">
|
||||
<div class="landing-background" ng-class="user.anonymous ? 'landing': 'signedin'"></div>
|
||||
<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>
|
||||
|
||||
|
@ -33,6 +36,7 @@
|
|||
<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>
|
||||
<a href="/repository/?namespace={{ user.username }}">See All Repositories</a>
|
||||
</div>
|
||||
|
||||
<!-- No Repos -->
|
||||
|
@ -63,9 +67,10 @@
|
|||
</div> <!-- col -->
|
||||
</div> <!-- row -->
|
||||
</div> <!-- container -->
|
||||
</div>
|
||||
</div> <!-- jumbotron -->
|
||||
|
||||
<div class="">
|
||||
<div class="rows" ng-show="user.anonymous">
|
||||
<div class=" shoutout-row landing-section">
|
||||
<h2>Simple and straightforward benefits</h2>
|
||||
<div class="container">
|
||||
|
|
Reference in a new issue