redirect root path to welcome if no user auth
This commit is contained in:
parent
390214ad6e
commit
94f0fe7d20
6 changed files with 2 additions and 22218 deletions
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2019 Drone IO, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package landingpage
|
||||
|
||||
//go:generate togo http -package landingpage -output dist_gen.go
|
File diff suppressed because it is too large
Load diff
|
@ -1,283 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Drone</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Inconsolata|PT+Mono|Roboto+Mono|Source+Code+Pro|Ubuntu+Mono" rel="stylesheet">
|
||||
<link href="/static2/style.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<nav>
|
||||
<div class="center">
|
||||
|
||||
<svg class="logo" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 326.6 103.1" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#FFFFFF;}
|
||||
</style>
|
||||
<g>
|
||||
<g>
|
||||
<g>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<g id="Landing_4_">
|
||||
<g id="logos_4_" transform="translate(-151.000000, -3990.000000)">
|
||||
<g id="drone-logo-back-with-text_4_" transform="translate(151.000000, 3986.000000)">
|
||||
<g id="Group-4_4_">
|
||||
<path id="DRONE_4_" class="st0" d="M109.6,28.6H126c5.8,0,10.3,1.5,13.3,4.4c3,2.9,4.5,7.7,4.5,14.1c0,6.2-1.5,10.7-4.5,13.7
|
||||
c-3,2.9-7.4,4.4-13.3,4.4h-16.4V28.6z M124.6,57c1.9,0,3.4-0.3,4.6-0.8c1.2-0.5,2.1-1.5,2.7-3c0.6-1.4,0.9-3.5,0.9-6.1
|
||||
c0-2.7-0.3-4.8-0.9-6.3s-1.5-2.6-2.6-3.2s-2.8-0.9-4.7-0.9h-4.3V57H124.6z M154.1,28.6h19.1c4.3,0,7.6,1.2,9.8,3.5
|
||||
s3.3,5.5,3.3,9.5c0,2.4-0.6,4.6-1.8,6.5c-1.2,1.9-2.9,3.3-4.9,4.4c0.4,0.3,0.8,0.7,1.1,1.2c0.3,0.5,0.6,1.1,1,2l4.2,9.6
|
||||
h-11.1l-3.9-8.8c-0.3-0.7-0.7-1.2-1.1-1.5c-0.4-0.3-1.1-0.4-1.8-0.4h-3v10.7h-10.7V28.6z M170.4,46.3c1.6,0,2.8-0.4,3.6-1.2
|
||||
c0.9-0.8,1.3-2,1.3-3.5c0-3.2-1.5-4.8-4.6-4.8h-6v9.6H170.4z M213.3,65.8c-6.2,0-10.8-1.5-14-4.5c-3.1-3-4.7-7.8-4.7-14.2
|
||||
c0-6.7,1.6-11.5,4.7-14.5s7.8-4.5,14-4.5c6.2,0,10.9,1.5,14,4.5c3.1,3,4.7,7.8,4.7,14.5c0,6.4-1.6,11.2-4.7,14.2
|
||||
C224.1,64.3,219.5,65.8,213.3,65.8z M213.3,56.7c2.7,0,4.7-0.8,5.9-2.3s1.8-4,1.8-7.4c0-3.6-0.6-6.1-1.8-7.6
|
||||
c-1.2-1.5-3.2-2.3-6-2.3s-4.8,0.8-6,2.3c-1.2,1.5-1.8,4.1-1.8,7.6c0,3.4,0.6,5.8,1.8,7.4S210.6,56.7,213.3,56.7z M242.3,28.6
|
||||
h9.1L265.2,48V28.6h10.7v36.6h-9.2L253,45.9v19.3h-10.7V28.6z M287.4,28.6h27.8v8.2h-17.1v6h15v8.3h-15v6h17.1v8.2h-27.8
|
||||
V28.6z"/>
|
||||
<g id="Group-3_4_" transform="translate(0.000000, 4.000000)">
|
||||
<path id="Combined-Shape_4_" class="st0" d="M16.7,9.3l-0.4,0.4L30.8,24c-2,3.2-3.2,7.1-3.2,11.5c0,12.3,9.1,20.5,20.7,20.5
|
||||
c4.3,0,8.3-1.1,11.6-3.2l14.6,14.5c-7.5,9.9-19.5,16.1-33,16.1C18.5,83.4,0,65.6,0,42.4C0,28.5,6.5,16.6,16.7,9.3z
|
||||
M24.8,3.9C30.2,1.4,36.2,0,42.5,0c22.7,0,41.2,17.8,41.2,41c0,6.4-1.4,12.4-3.9,17.7l-13-13c2-3.2,3.2-7.1,3.2-11.5
|
||||
c0-12.3-9.1-20.5-20.6-20.5c-4.3,0-8.3,1.1-11.5,3.2L24.8,3.9z M49.6,46.3c-6.9,0-12.4-4.9-12.4-12.4s5.5-12.4,12.4-12.4
|
||||
S62,26.6,62,34S56.5,46.3,49.6,46.3z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st0" d="M167.1,92.8c-1.2,1.1-2.8,1.7-4.9,1.7c-2.5,0-5.1-1.4-6.1-3.7l-0.2,3.3h-1.6V67.3h1.9v11.3
|
||||
c1-2.1,3.6-3.6,6.2-3.6c2.1,0,3.8,0.7,5,1.9c2,1.9,2.9,4.8,2.9,7.8C170.1,88,169.1,90.9,167.1,92.8z M166.1,78.5
|
||||
c-1-1-2.2-1.6-4-1.6c-1.7,0-3,0.6-3.9,1.4c-1.7,1.6-2.3,3.7-2.3,6.5c0,2.6,0.7,4.8,2.4,6.4c0.9,0.9,2.1,1.5,3.8,1.5
|
||||
c1.6,0,2.7-0.5,3.7-1.3c1.7-1.5,2.4-4,2.4-6.6C168.2,82.4,167.6,80,166.1,78.5z"/>
|
||||
<path class="st0" d="M178.2,98c-0.9,2.3-2.4,3.8-5,3.8c-0.7,0-1.7-0.1-2.3-0.3v-1.6c0.7,0.1,1.5,0.2,2.3,0.2
|
||||
c1.8,0,2.8-1.2,3.4-2.7l1.2-3l-7.6-18.8h2l6.5,16.4l6.2-16.4h2L178.2,98z"/>
|
||||
<path class="st0" d="M205.9,94V82.1c0-2.2-0.7-3.6-3.2-3.6c-2.8,0-4,3-4,5.3V94h-4.6V67.3h4.6v9.5c1.1-1.6,3.3-2.5,5.3-2.5
|
||||
c4.1,0,6.5,2.9,6.5,6.9V94H205.9z"/>
|
||||
<path class="st0" d="M228.2,94.3c-2,0-3.1-1.3-3.3-2.7c-0.9,1.6-3.1,2.9-5.8,2.9c-4.6,0-7-2.9-7-6c0-3.7,2.8-5.8,6.5-6l5.7-0.4
|
||||
v-1.2c0-1.8-0.6-3-3.3-3c-2.1,0-3.4,1-3.5,2.7h-4.5c0.3-4.3,3.7-6.3,8-6.3c3.3,0,6.1,1,7.2,3.9c0.5,1.2,0.6,2.6,0.6,3.9v7.1
|
||||
c0,0.9,0.3,1.2,1.1,1.2c0.3,0,0.6-0.1,0.6-0.1v3.4C229.7,94.1,229.3,94.3,228.2,94.3z M224.3,85.5l-4.9,0.4
|
||||
c-1.4,0.1-2.8,1-2.8,2.5c0,1.5,1.3,2.4,2.7,2.4c2.9,0,4.9-1.6,4.9-4.4V85.5z"/>
|
||||
<path class="st0" d="M241.9,78.9c-3.3,0-5,2.3-5,5.4V94h-4.7V74.8h3.9l0.4,2.9c0.9-2.2,3.2-3.1,5.4-3.1c0.5,0,1,0,1.4,0.1v4.4
|
||||
C242.9,79,242.4,78.9,241.9,78.9z"/>
|
||||
<path class="st0" d="M256.3,94V82.2c0-2.3-0.7-3.6-3.2-3.6c-1.6,0-2.7,1-3.3,2.4c-0.7,1.5-0.6,3.5-0.6,5.1V94h-4.6V74.8h3.9
|
||||
l0.3,2.5c1.1-2,3.4-3,5.7-3c4.1,0,6.5,2.9,6.5,6.9V94H256.3z"/>
|
||||
<path class="st0" d="M280.3,85.8h-12.9c0,1.5,0.5,2.9,1.4,3.8c0.7,0.6,1.6,1.2,2.8,1.2c1.3,0,2.1-0.3,2.8-0.9
|
||||
c0.4-0.4,0.7-0.9,0.9-1.6h4.4c-0.1,1.1-0.9,2.7-1.6,3.6c-1.6,1.9-4,2.7-6.5,2.7c-2.6,0-4.6-0.9-6.1-2.4c-1.9-1.8-3-4.6-3-7.7
|
||||
c0-3.1,0.9-5.8,2.8-7.7c1.4-1.5,3.5-2.4,6.1-2.4c2.8,0,5.4,1.1,7,3.6c1.4,2.1,1.7,4.3,1.7,6.7C280.4,84.5,280.3,85.4,280.3,85.8z
|
||||
M274.6,79.1c-0.6-0.7-1.6-1.1-2.9-1.1c-1.4,0-2.6,0.6-3.2,1.5c-0.7,0.9-1,1.7-1,3h8.3C275.7,81,275.3,79.9,274.6,79.1z"/>
|
||||
<path class="st0" d="M295.8,92.3c-1.6,1.6-4,2.2-6.6,2.2c-2.4,0-4.6-0.7-6.2-2.2c-1.1-1.1-2-2.7-2-4.5h4.3c0,0.9,0.4,1.8,1,2.3
|
||||
c0.7,0.6,1.6,0.9,2.9,0.9c1.6,0,3.9-0.3,3.9-2.4c0-1.1-0.7-1.8-1.9-2c-1.7-0.3-3.6-0.4-5.3-0.7c-2.6-0.6-4.4-2.7-4.4-5.1
|
||||
c0-2,0.8-3.3,2-4.3c1.4-1.2,3.4-1.9,5.8-1.9c2.3,0,4.6,0.7,6,2.3c1,1.1,1.7,2.6,1.7,4h-4.4c0-0.7-0.3-1.3-0.8-1.8
|
||||
c-0.6-0.6-1.6-0.9-2.5-0.9c-0.7,0-1.3,0-2,0.3c-0.8,0.3-1.5,1-1.5,2c0,1.4,1.2,1.8,2.2,1.9c1.7,0.2,2.2,0.3,4.1,0.6
|
||||
c3,0.5,5.3,2.4,5.3,5.4C297.4,89.9,296.8,91.3,295.8,92.3z"/>
|
||||
<path class="st0" d="M313.1,92.3c-1.6,1.6-4,2.2-6.6,2.2c-2.4,0-4.6-0.7-6.2-2.2c-1.1-1.1-2-2.7-2-4.5h4.3c0,0.9,0.4,1.8,1,2.3
|
||||
c0.7,0.6,1.6,0.9,2.9,0.9c1.6,0,3.9-0.3,3.9-2.4c0-1.1-0.7-1.8-1.9-2c-1.7-0.3-3.6-0.4-5.3-0.7c-2.6-0.6-4.4-2.7-4.4-5.1
|
||||
c0-2,0.8-3.3,2-4.3c1.4-1.2,3.4-1.9,5.8-1.9c2.3,0,4.6,0.7,6,2.3c1,1.1,1.7,2.6,1.7,4h-4.4c0-0.7-0.3-1.3-0.8-1.8
|
||||
c-0.6-0.6-1.6-0.9-2.5-0.9c-0.7,0-1.3,0-2,0.3c-0.8,0.3-1.5,1-1.5,2c0,1.4,1.2,1.8,2.2,1.9c1.7,0.2,2.2,0.3,4.1,0.6
|
||||
c3,0.5,5.3,2.4,5.3,5.4C314.8,89.9,314.1,91.3,313.1,92.3z"/>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st0" d="M321.2,25.2v3.5h-0.5v-3.5h-1.2v-0.5h2.9v0.5H321.2z"/>
|
||||
<path class="st0" d="M326.1,28.7v-3.4l-1.2,3.3h-0.4l-1.2-3.3v3.4h-0.5v-4h0.7l1.2,3.3l1.2-3.3h0.7v4H326.1z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://cloud.drone.io">Cloud</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://drone.io/enterprise">Enterprise</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://docs.drone.io">Docs</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://plugins.drone.io">Plugins</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://discourse.drone.io">Support</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/login" class="login">Sign In</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<header>
|
||||
<div class="center">
|
||||
<div class="illustration"></div>
|
||||
|
||||
<h1>Continuous Integration,<br/>Free for the Open Source Community</h1>
|
||||
<h2>Drone Cloud is a free Continuous Integration service for the Open Source community,
|
||||
powered by blazing fast bare-metal servers.
|
||||
</h2>
|
||||
<a href="/login" class="button">Get Started</a>
|
||||
<a href="https://docs.drone.io" class="button button-outline">Read the Docs</a>
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section style="padding-bottom: 0px;">
|
||||
<div class="center header">
|
||||
<h2>Accelerating Open Source Development</h2>
|
||||
</div>
|
||||
</section>
|
||||
<section class="columns-3 cards">
|
||||
<div class="center">
|
||||
<div>
|
||||
<h3>Multiple Architectures</h3>
|
||||
<p>Our goal is to upstream all the things! In order to do that with the diverse Arm ecosystem, we're providing gobs of CI/CD infrastructure.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Blazing Fast, Bare Metal Servers</h3>
|
||||
<p>Drone Cloud runs your Continuous Integration workloads on blazing fast, bare metal infrastructure sponsored by Equinix.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>100% free for Open Source</h3>
|
||||
<p>Drone Cloud would not be possible without our generous sponsors. If you are interested in becoming a sponsor please <a href="mailto:hello@drone.io">contact us.</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section class="columns-2 thanks-packet">
|
||||
<div class="center">
|
||||
<div>
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 103.4 94.2" xml:space="preserve">
|
||||
<rect y="65.5" width="103.4" height="0.5"></rect>
|
||||
<g>
|
||||
<path d="M20.2,82.9h2.2l3.7,5.4l3.6-5.4H32v11.4h-2.1v-8.1l-3.8,5.4h-0.1l-3.7-5.3v8.1h-2.1V82.9z"></path>
|
||||
<path d="M36.2,82.9H45v1.8h-6.7v3h6v1.8h-6v3h6.8v1.8h-8.9L36.2,82.9z"></path>
|
||||
<path d="M52.2,84.7h-3.8v-1.9h9.7v1.9h-3.8v9.5h-2.1V84.7z"></path>
|
||||
<path d="M64.1,82.8h2l5.2,11.4h-2.2l-1.2-2.7h-5.6L61,94.2h-2.1L64.1,82.8z M67.1,89.7L65,85.2l-2,4.5H67.1z"></path>
|
||||
<path d="M74.8,82.9h2.1v9.5h6.3v1.8h-8.4L74.8,82.9z"></path>
|
||||
</g>
|
||||
<g>
|
||||
<polygon points="0,38.6 0,49.2 9.4,49.2 9.4,47.8 1.5,47.8 1.5,44.4 6.6,44.4 6.6,43 1.5,43 1.5,40 9.1,40 9.1,38.6 "></polygon>
|
||||
<path d="M41.8,45c0,1.9-1.2,3.1-3.1,3.1c-1.8,0-2.9-1.3-2.9-3.1v-6.3h-1.5V45c0,2.9,2.1,4.4,4.4,4.4c3.5,0,4.6-2.4,4.6-4.4v-6.4
|
||||
h-1.5V45z"></path>
|
||||
<rect x="51.8" y="38.6" width="1.5" height="10.5"></rect>
|
||||
<polygon points="71.4,38.6 71.4,46.9 63.9,38.6 62.4,38.6 62.4,49.2 63.9,49.2 63.9,40.8 71.4,49.2 72.9,49.2 72.9,38.6 "></polygon>
|
||||
<rect x="82" y="38.6" width="1.5" height="10.5"></rect>
|
||||
<polygon points="100.8,38.6 97.3,42.4 93.9,38.6 91.9,38.6 96.2,43.5 90.9,49.2 92.8,49.2 97.2,44.5 101.3,49.2 103.4,49.2
|
||||
98.3,43.5 102.7,38.6 "></polygon>
|
||||
<path d="M20.9,38.2c-3.1,0-5.6,2.4-5.6,5.7v0c0,3.3,2.5,5.6,5.6,5.6c0.8,0,1.7-0.2,2.5-0.6l0.9,1l1.8,0l-1.5-1.7
|
||||
c1.2-0.9,2-2.5,2-4.4v0C26.5,40.5,24.1,38.2,20.9,38.2 M25,43.9c0,1.5-0.5,2.5-1.4,3.3l-0.8-0.9l-1.8,0l1.4,1.7
|
||||
c-0.4,0.2-1,0.3-1.5,0.3c-2.3,0-4.1-1.8-4.1-4.3l0,0c0-2.5,1.7-4.3,4-4.3C23.2,39.5,25,41.3,25,43.9L25,43.9z"></path>
|
||||
</g>
|
||||
<g>
|
||||
<polygon points="52.5,0 48.2,1.5 48.2,24 45.4,23 45.4,2.5 36.8,5.5 36.8,20 33.9,19 33.9,6.5 31,7.5 31,21.1 39.6,24.1 39.6,7.5
|
||||
42.5,6.5 42.5,25.1 51.1,28.1 51.1,3.5 52.5,3 54,3.5 54,28.1 62.5,25.1 62.5,6.5 65.4,7.5 65.4,24.1 74,21.1 74,7.5 71.1,6.5
|
||||
71.1,19 68.3,20 68.3,5.5 59.7,2.5 59.7,23 56.8,24 56.8,1.5 "></polygon>
|
||||
<path d="M79.5,20.1c1.4,0,2.6-1.2,2.6-2.6v0c0-1.4-1.1-2.6-2.6-2.6c-1.4,0-2.6,1.2-2.6,2.6v0C76.9,19,78,20.1,79.5,20.1 M79.5,19.8
|
||||
c-1.3,0-2.3-1-2.3-2.3v0c0-1.3,1-2.3,2.3-2.3c1.3,0,2.3,1,2.3,2.3v0C81.8,18.8,80.8,19.8,79.5,19.8 M78.4,18.8h0.7V18h0.4l0.6,0.8
|
||||
h0.8l-0.7-1c0.4-0.1,0.6-0.4,0.6-0.8c0-0.6-0.5-0.9-1.1-0.9h-1.3V18.8z M79.1,17.4v-0.7h0.6c0.3,0,0.5,0.1,0.5,0.4
|
||||
c0,0.2-0.2,0.4-0.5,0.4H79.1z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Thank you to our Infrastructure Sponsor</h3>
|
||||
<p>Drone Cloud is powered by donated infrastructure from Equinix Metal (<a href="https://metal.equinix.com/">metal.equinix.com</a>), the leading bare metal cloud for developers. With datacenters around the world, and a powerful API driven experience, Equinix is well known for bringing the experience of the cloud to bare metal.</p>
|
||||
<p>Want to run Drone on bare metal, but without the hassle? Equinix can help! <em>Use code "DRONE100" to get started with a $100 credit</em></p>
|
||||
<div><a class="button" href="https://metal.equinix.com/">Learn more about Equinix Metal</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="try-drone-panel">
|
||||
<div class="center">
|
||||
<div>
|
||||
<h3>Interested in running Drone on your own, private infrastructure?</h3>
|
||||
<div><a href="https://docs.drone.io/installation/">Download official Docker image</a></div>
|
||||
<div><small>and install Drone in minutes</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div>
|
||||
<div class="logo"></div>
|
||||
<section>
|
||||
<h3>Company</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="mailto:hello@drone.io" target="_blank">Contact</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/drone/brand">Branding</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://drone.io/enterprise/license">License</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h3>Products</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://drone.io/enterprise">Drone Enterprise</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://cloud.drone.io">Drone Cloud</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://autoscale.drone.io" target="_blank">Drone Autoscaler</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h3>Developers</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://docs.drone.io" target="_blank">Documentation</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://plugins.drone.io" target="_blank">Plugins</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://discourse.drone.io" target="_blank">Support</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section>
|
||||
<h3>Community</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/drone" target="_blank">
|
||||
<svg aria-labelledby="simpleicons-github-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-github-icon">GitHub icon</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path></svg>
|
||||
GitHub
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://twitter.com/droneio" target="_blank">
|
||||
<svg aria-labelledby="simpleicons-twitter-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-twitter-icon">Twitter icon</title><path d="M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"></path></svg>
|
||||
Twitter
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://discourse.drone.io/" target="_blank">
|
||||
<svg aria-labelledby="simpleicons-discourse-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-discourse-icon">Discourse icon</title><path d="M12.103 0C18.666 0 24 5.485 24 11.997c0 6.51-5.33 11.99-11.9 11.99L0 24V11.79C0 5.28 5.532 0 12.103 0zm.116 4.563c-2.593-.003-4.996 1.352-6.337 3.57-1.33 2.208-1.387 4.957-.148 7.22L4.4 19.61l4.794-1.074c2.745 1.225 5.965.676 8.136-1.39 2.17-2.054 2.86-5.228 1.737-7.997-1.135-2.778-3.84-4.59-6.84-4.585h-.008z"></path></svg>
|
||||
Discourse
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://gitter.im/drone/drone/" target="_blank">
|
||||
<svg aria-labelledby="simpleicons-slack-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-slack-icon">Slack icon</title><path d="M9.879 10.995l1.035 3.085 3.205-1.074-1.035-3.074-3.205 1.08v-.017z"></path><path d="M18.824 14.055l-1.555.521.54 1.61c.218.65-.135 1.355-.786 1.574-.15.045-.285.067-.435.063-.511-.015-.976-.338-1.155-.849l-.54-1.607-3.21 1.073.539 1.608c.211.652-.135 1.358-.794 1.575-.15.048-.285.067-.435.064-.51-.015-.976-.34-1.156-.85l-.539-1.619-1.561.524c-.15.045-.285.061-.435.061-.511-.016-.976-.345-1.155-.855-.225-.66.135-1.364.78-1.575l1.56-.525L7.5 11.76l-1.551.525c-.141.048-.285.066-.428.064-.495-.016-.975-.338-1.141-.848-.209-.65.135-1.354.796-1.574l1.56-.52-.54-1.605c-.21-.654.136-1.359.796-1.575.659-.22 1.363.136 1.574.783l.539 1.608L12.3 7.544l-.54-1.605c-.209-.645.135-1.35.789-1.574.652-.211 1.359.135 1.575.791l.54 1.621 1.555-.51c.651-.219 1.356.135 1.575.779.218.654-.135 1.359-.784 1.575l-1.557.524 1.035 3.086 1.551-.516c.652-.211 1.358.135 1.575.795.22.66-.135 1.365-.779 1.574l-.011-.029zm4.171-5.356C20.52.456 16.946-1.471 8.699 1.005.456 3.479-1.471 7.051 1.005 15.301c2.475 8.245 6.046 10.17 14.296 7.694 8.245-2.475 10.17-6.046 7.694-14.296z"></path></svg>
|
||||
Chat
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 237 KiB |
|
@ -1,615 +0,0 @@
|
|||
html, body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 60px;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 60px 30px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.center {
|
||||
max-width:900px;
|
||||
margin:0px auto;
|
||||
}
|
||||
|
||||
/*
|
||||
* Code
|
||||
*/
|
||||
|
||||
code {
|
||||
text-align:left;
|
||||
background: #222;
|
||||
color: #FFF;
|
||||
margin: 0px auto;
|
||||
font-family: 'Source Code Pro';
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
border-radius: 5px;
|
||||
padding: 30px 0px;
|
||||
}
|
||||
|
||||
code div {
|
||||
white-space: pre;
|
||||
padding: 0px 30px;
|
||||
}
|
||||
|
||||
code span.group {
|
||||
background: #333;
|
||||
display: block;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
|
||||
code span.c0 {
|
||||
color: #00E5FF;
|
||||
}
|
||||
|
||||
code span.c1 {
|
||||
color: #FF8A80;
|
||||
}
|
||||
|
||||
.code .center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.code p {
|
||||
max-width:500px;
|
||||
text-align:center;
|
||||
margin:30px auto;
|
||||
}
|
||||
|
||||
.code .grid {
|
||||
display: grid;
|
||||
grid-template-columns: 225px 450px 225px;
|
||||
grid-template-rows: auto auto auto;
|
||||
}
|
||||
|
||||
.code .grid code {
|
||||
grid-column: 2;
|
||||
grid-row-start: 1;
|
||||
grid-row-end: 4;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.info {
|
||||
background: #EEE;
|
||||
margin-right: 20px;
|
||||
border-radius: 5px;
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.info:first-of-type {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.info:nth-of-type(2) {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
margin-right: 0px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.info:last-of-type {
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Plugins
|
||||
*/
|
||||
|
||||
|
||||
.code.plugins .grid {
|
||||
margin-top: 80px;
|
||||
display: grid;
|
||||
grid-template-columns: 112.5px 112.5px 112.5px 112.5px 450px;
|
||||
grid-template-rows: auto auto auto auto;
|
||||
}
|
||||
|
||||
.code.plugins .grid code {
|
||||
grid-column: 5;
|
||||
grid-row-start: 1;
|
||||
grid-row-end: 5;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.code.plugins .logo {
|
||||
margin-right: 20px;
|
||||
padding: 15px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
nav{
|
||||
text-align: right;
|
||||
height: 60px;
|
||||
background:#293a41;
|
||||
}
|
||||
|
||||
nav .center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
nav li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
nav li a {
|
||||
font-size: 15px;
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
margin-left: 15px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
nav .login {
|
||||
background:#00bfa6;
|
||||
color: #FFF;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 20px;
|
||||
border-radius: 3px;
|
||||
-webkit-font-smoothing: unset;
|
||||
-moz-font-smoothing: unset;
|
||||
}
|
||||
|
||||
nav svg {
|
||||
fill: #FFF;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Header Section
|
||||
*/
|
||||
|
||||
header {
|
||||
background-color: #293a41;
|
||||
color: #FFF;
|
||||
padding: 50px 20px;
|
||||
padding-bottom: 80px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
header .illustration {
|
||||
background-image: url("/static2/city-cloud.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
float:right;
|
||||
height: 250px;
|
||||
padding: 20px;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
header h1,
|
||||
header h2 {
|
||||
max-width: 500px;
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 28px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
margin-bottom: 50px;
|
||||
line-height: 20px;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
max-width: 400px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color: rgba(255,255,255,0.8);
|
||||
}
|
||||
|
||||
header a {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
header a.button {
|
||||
background: #00bfa6;
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #00bfa6;
|
||||
padding: 10px 20px;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
transition: all .15s ease;
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
margin-right: 10px;
|
||||
|
||||
}
|
||||
|
||||
header a.button.button-outline {
|
||||
color: #00bfa6;
|
||||
background: none;
|
||||
border: 1px solid #00bfa6;
|
||||
}
|
||||
|
||||
header a.button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/*
|
||||
* Codeblock
|
||||
*/
|
||||
|
||||
div.logos {
|
||||
display: block;
|
||||
border-top: none;
|
||||
margin-top: 0px;
|
||||
text-align: left;
|
||||
white-space: unset;
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
.logos .logo {
|
||||
display: inline-block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.logos .logo img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
* VCS Section
|
||||
*/
|
||||
|
||||
.vcs .center {
|
||||
text-align: center;
|
||||
padding: 60px 0px;
|
||||
}
|
||||
|
||||
.vcs strong {
|
||||
font-size: 1.17em;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*
|
||||
* Logo Section
|
||||
*/
|
||||
|
||||
.logos {
|
||||
border-top: 1px solid #EEE;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
.logos img {
|
||||
margin: 0px 30px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Quote Sections
|
||||
*/
|
||||
|
||||
.quote .center {
|
||||
display: grid;
|
||||
grid-template-columns: 110px auto;
|
||||
}
|
||||
|
||||
.quote blockquote {
|
||||
margin: 0px;
|
||||
padding: 15px;
|
||||
font-size: 18px;
|
||||
line-height: 26px;
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.quote img {
|
||||
grid-column: 1;
|
||||
padding-top: 5px;
|
||||
max-width: 75px;
|
||||
}
|
||||
|
||||
.quote cite {
|
||||
grid-column: 2;
|
||||
padding-top: 15px;
|
||||
padding-left: 15px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* 3-columns section
|
||||
*/
|
||||
|
||||
.columns-2 .center {
|
||||
display: grid;
|
||||
grid-template-columns: auto 400px;
|
||||
grid-gap: 30px;
|
||||
}
|
||||
|
||||
.columns-3 .center {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
grid-gap: 30px;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
border: 1px solid #CCC;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* Cards
|
||||
*/
|
||||
|
||||
.center.header h2{
|
||||
font-size: 26px;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cards .center div {
|
||||
font-size: 14px;
|
||||
border: 1px solid #EEE;
|
||||
border-radius: 5px;
|
||||
padding: 15px 30px;
|
||||
box-shadow: 0 5px 15px rgba(50,50,93,.05), 0 5px 5px rgba(0,0,0,.02);
|
||||
}
|
||||
|
||||
.cards div h3 {
|
||||
font-size: 15px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Try Drone Today
|
||||
*/
|
||||
|
||||
.try-drone-panel {
|
||||
background:#293a41;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.try-drone-panel h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.try-drone-panel a {
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
border-radius: 3px;
|
||||
background: #00bfa6;
|
||||
padding: 10px 20px;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
transition: all .15s ease;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.try-drone-panel a:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.try-drone-panel small {
|
||||
font-style: italic;
|
||||
color: rgba(255,255,255,0.75);
|
||||
}
|
||||
|
||||
/*
|
||||
* Thanks to Packet
|
||||
*/
|
||||
|
||||
.thanks-packet {
|
||||
background-color: #eff3f5;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.thanks-packet .center > div:first-of-type {
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.thanks-packet svg {
|
||||
max-width: 300px;
|
||||
margin-top: 45px;
|
||||
}
|
||||
|
||||
.thanks-packet .center > div:last-of-type {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.thanks-packet p {
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.thanks-packet em {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.thanks-packet a:visited,
|
||||
.thanks-packet a {
|
||||
color: #0564d7;
|
||||
}
|
||||
|
||||
.thanks-packet a.button {
|
||||
color: #00bfa6;
|
||||
text-decoration: none;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #00bfa6;
|
||||
padding: 10px 20px;
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
transition: all .15s ease;
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.thanks-packet a.button:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
|
||||
|
||||
footer {
|
||||
padding: 0px;
|
||||
}
|
||||
footer > div {
|
||||
max-width: 900px;
|
||||
margin: 0px auto;
|
||||
display: flex;
|
||||
}
|
||||
footer section {
|
||||
margin-left: unset;
|
||||
}
|
||||
footer h3 {
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
color: #455A64;
|
||||
}
|
||||
footer ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
margin-top: 40px;
|
||||
list-style: none;
|
||||
}
|
||||
footer ul li {
|
||||
|
||||
}
|
||||
footer a {
|
||||
display: flex;
|
||||
align-content: center;
|
||||
font-size: 14px;
|
||||
margin: 10px 0px;
|
||||
color: #455A64;
|
||||
text-decoration: none;
|
||||
}
|
||||
footer svg {
|
||||
fill: #455A64;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
footer .logo {
|
||||
flex: 1;
|
||||
}
|
||||
@media (max-width: 920px) {
|
||||
header {
|
||||
padding: 30px 30px;
|
||||
}
|
||||
|
||||
header .illustration {
|
||||
display: none;
|
||||
}
|
||||
nav {
|
||||
padding: 0px 30px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
footer > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
footer .logo {
|
||||
flex: 1;
|
||||
}
|
||||
footer section {
|
||||
margin-left: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-top: 0px;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
footer {
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
footer h3 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
footer ul {
|
||||
margin-left: 30px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
nav a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav a.login {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.thanks-packet.columns-2 {
|
||||
padding-top: 0px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.thanks-packet.columns-2 > .center {
|
||||
grid-template-columns: none;
|
||||
display: grid;
|
||||
grid-template-rows: auto 400px;
|
||||
}
|
||||
|
||||
.thanks-packet .center > div:first-of-type {
|
||||
grid-row: 2;
|
||||
}
|
||||
.thanks-packet .center > div:last-of-type {
|
||||
grid-row: 1;
|
||||
padding: 0px 30px;
|
||||
padding-bottom:30px;
|
||||
}
|
||||
.thanks-packet .center > div:last-of-type > div {
|
||||
text-align: center;
|
||||
padding-top:20px;
|
||||
}
|
||||
|
||||
.thanks-packet svg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.columns-3.cards .center {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto auto;
|
||||
grid-template-columns: none !important;
|
||||
grid-gap: 30px;
|
||||
}
|
||||
}
|
|
@ -23,15 +23,13 @@ import (
|
|||
|
||||
"github.com/drone/drone-ui/dist"
|
||||
"github.com/drone/drone/core"
|
||||
"github.com/drone/drone/handler/web/landingpage"
|
||||
)
|
||||
|
||||
func HandleIndex(host string, session core.Session, license core.LicenseService) http.HandlerFunc {
|
||||
return func(rw http.ResponseWriter, r *http.Request) {
|
||||
user, _ := session.Get(r)
|
||||
if user == nil && host == "cloud.drone.io" && r.URL.Path == "/" {
|
||||
rw.Header().Set("Content-Type", "text/html; charset=UTF-8")
|
||||
rw.Write(landingpage.MustLookup("/index.html"))
|
||||
if user == nil && r.URL.Path == "/" {
|
||||
http.Redirect(rw, r, "/welcome", 303)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue