Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website: Addjusted logos sizing and responsiveness. #1105

Merged
merged 1 commit into from
May 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
<div class="row py-3 py-lg-5">
<div class="col-12 col-lg-3">
{{ template "_default/sidemenu.html" . }}
{{ partial "_default/sidemenu.html" . }}
</div>
<div class="col-12 col-lg-9">
{{ $content := replace .Content "<table>" "<table class='table table-striped'>" }}
Expand Down
18 changes: 7 additions & 11 deletions website/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,29 @@ <h4 class="font-weight-bold">Downsampling & Compaction</h4>
</div>
</div>
</div>
<div class="container py-5">
<div class="container">
<h2 class="heading-big text-center">Founded By</h2>
<div class="row">
<div class="col-12"><h3 class="text-center">Founded by</h3></div>
</div>
<div class="row">
<div class="col-4 col-xl-2 offset-4 offset-xl-5 py-3">
<div class="col-sm-6 offset-sm-3 col-md-4 offset-md-4">
<div class="img-sponsor">
<a href="https://improbable.io" rel="nofollow" target="_blank"><img src="{{ "/logos/improbable.png" | relURL }}" class="img-fluid" alt="Improbable"></a>
</div>
</div>
</div>
<div class="row">
<div class="col-12"><h3 class="text-center">Used by</h3></div>
</div>
<h2 class="heading-big text-center">Used By</h2>
<div class="row">
{{ range $sponsor := $.Site.Data.sponsors.sponsors }}
{{ if $sponsor.logo }}
<div class="col-4 col-xl-2 py-3">
<div class="col-sm-6 col-md-3">
<div class="img-sponsor">
<a href="{{ $sponsor.url }}" rel="nofollow" target="_blank"><img src="{{ (printf "/logos/%s" $sponsor.logo) | relURL }}" alt="{{ $sponsor.name }}"></a>
</div>
</div>
{{ end }}
{{ end }}
<div class="col-4 col-xl-2 py-3">
<div class="col-sm-6 col-md-3">
<div class="img-sponsor">
<a class="text-muted" href="{{ "contributing/how-to-contribute-to-docs.md#logos" | relURL }}">Your Company</a>
<a class="text-center text-muted" href="{{ "contributing/how-to-contribute-to-docs.md#logos" | relURL }}">Your Company</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/proposal/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container">
<div class="row py-5">
<div class="col col-3">
{{ template "_default/sidemenu.html" . }}
{{ partial "_default/sidemenu.html" . }}
</div>
<div class="col col-9">
<h1>{{ .Title }}</h1>
Expand Down
6 changes: 4 additions & 2 deletions website/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ pre {
}

.img-sponsor {
padding: 1rem;
padding: 25px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,.1);
border: 1px solid #dee2e6;
margin: 15px 0 15px;
border-radius: .25rem;
height: 75px;
display: flex;
align-items: center;
justify-content: center;
height: 100px;
}

.img-sponsor img {
Expand Down