Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed Aug 1, 2018
0 parents commit 4885d4d
Show file tree
Hide file tree
Showing 12 changed files with 389 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
.idea
*.iml
3 changes: 3 additions & 0 deletions Caddyfile
@@ -0,0 +1,3 @@
:2015
root src
ext .html
4 changes: 4 additions & 0 deletions Caddyfile.docker
@@ -0,0 +1,4 @@
:2015
root /srv
ext .html
gzip
3 changes: 3 additions & 0 deletions Dockerfile
@@ -0,0 +1,3 @@
FROM abiosoft/caddy:0.11.0
ADD Caddyfile.docker /etc/Caddyfile
ADD src/ /srv
6 changes: 6 additions & 0 deletions README.md
@@ -0,0 +1,6 @@
# website

## Development

## Deploy

69 changes: 69 additions & 0 deletions src/community.html
@@ -0,0 +1,69 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Velocity - the next generation Minecraft proxy</title>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Roboto:400,700" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="css/velocity.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav class="light-blue darken-2">
<div class="container">
<a href="/" class="brand-logo">Velocity</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li class="active"><a href="/community">Community</a></li>
<li><a href="/downloads">Downloads</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="section">
<h2>Join our community</h2>
<p>
We're happy to have you as a part of the Velocity community!
</p>

<h3>Discord</h3>
<p>
Discord is a popular option for many gamers to communicate with each other. We have a Discord community
server that anyone can join. This is the best choice if you're new to Velocity and want support in real-time.
</p>
<iframe src="https://discordapp.com/widget?id=472484458856185878&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0"></iframe>

<h3>IRC</h3>
<p>
If you're old-school, or prefer a text-based chatting environment, you can join us on IRC. Our IRC channel
is <code>#velocity</code> on <strong>irc.spi.gt</strong>. Our IRC channel is linked to our Discord server,
so you won't miss out on the conversation.
</p>

<h3>GitHub</h3>
<p>
You can also join the discussion on <a href="https://github.com/astei/velocity">GitHub</a>!
</p>
</div>
</div>

<footer class="page-footer light-blue darken-2">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Velocity</h5>
<p class="grey-text text-lighten-4">The next-generation Minecraft server proxy, built with mass-scale and best-of-breed support in mind.</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2018 The Velocity team
<a class="grey-text text-lighten-4 right" href="https://github.com/velocitypowered/website">Fork this website</a>
</div>
</div>
</footer>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>
13 changes: 13 additions & 0 deletions src/css/materialize.min.css

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/css/velocity.css
@@ -0,0 +1,29 @@
body {
font-family: Roboto, 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.jumbotron {
padding: 4rem 0;
text-align: center;
}

.jumbotron > h1 {
margin: 0;
}

.jumbotron > .jumbotron-btns {
padding-top: 1rem;
}

#benefits-intro {
text-align: center;
}

.benefit-icon {
font-size: 12rem;
float: right;
}

.row {
margin-bottom: 0;
}
93 changes: 93 additions & 0 deletions src/downloads.html
@@ -0,0 +1,93 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Velocity - the next generation Minecraft proxy</title>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Roboto:400,700" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="css/velocity.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav class="light-blue darken-2">
<div class="container">
<a href="/" class="brand-logo">Velocity</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="/community">Community</a></li>
<li class="active"><a href="/downloads">Downloads</a></li>
</ul>
</div>
</nav>
<div class="container">
<div class="section">
<h2>Downloads</h2>
<p>
You can download the latest version of Velocity below. If you're into technical details, you can also
access <a href="https://ci.velocitypowered.com">Jenkins</a> directly.
</p>
<div id="downloads-container">
<span v-if="loading">
<div class="preloader-wrapper active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</span>
<table v-if="builds.length > 0">
<tr>
<th>Build Number</th>
<th>Download</th>
<th>Built</th>
</tr>
<tr v-for="build in builds">
<td>
#{{ build.number }}
<span v-if="build.latest" class="new badge blue" data-badge-caption="Latest"></span>
</td>
<td>
<span v-for="artifact in build.artifacts">
<a :href="artifact.url" class="btn-small waves-effect waves-light light-blue darken-2">
<i class="material-icons left">save_alt</i> {{ artifact.type() }}
</a>
&nbsp;
</span>
</td>
<td>
{{ build.formattedDate }}
</td>
</tr>
</table>
</div>
</div>
</div>

<footer class="page-footer light-blue darken-2">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Velocity</h5>
<p class="grey-text text-lighten-4">The next-generation Minecraft server proxy, built with mass-scale and best-of-breed support in mind.</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2018 The Velocity team
<a class="grey-text text-lighten-4 right" href="https://github.com/velocitypowered/website">Fork this website</a>
</div>
</div>
</footer>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript" src="js/downloads.js"></script>
</body>
</html>
110 changes: 110 additions & 0 deletions src/index.html
@@ -0,0 +1,110 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Velocity - the next generation Minecraft proxy</title>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Roboto:400,700" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="css/velocity.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav class="light-blue darken-2">
<div class="container">
<a href="/" class="brand-logo">Velocity</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="/community">Community</a></li>
<li><a href="/downloads">Downloads</a></li>
</ul>
</div>
</nav>
<div class="light-blue jumbotron white-text">
<h1>Minecraft at mass-scale.</h1>
<p>Velocity is the next-generation Minecraft server proxy, built with mass-scale and best-of-breed support in mind.</p>
<div class="jumbotron-btns">
<a href="/community" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">chat</i>Community</a>
&nbsp;
<a href="/downloads" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">archive</i>Download</a>
&nbsp;
<a href="https://github.com/astei/velocity" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">code</i>GitHub</a>
</div>
</div>
<div class="section" id="benefits-intro">
<h3>Why will you benefit from Velocity?</h3>
<p>Whether you plan to be a friends-only collection of servers or aiming to become the next big Minecraft server, you can trust Velocity to power your server.</p>
</div>
<div class="benefit section">
<div class="row">
<div class="col m3">
<i class="material-icons benefit-icon">
assessment
</i>
</div>
<div class="col m9">
<h4>Scalable but approachable.</h4>
<p>
Velocity has the power to hold thousands of players on a single proxy. Yet, it is refreshingly easy to set up. With just a few minutes of time,
your Minecraft network is ready to go.
</p>
<a href="#!" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">archive</i>Read the documentation</a>
</div>
</div>
</div>
<div class="divider"></div>
<div class="benefit section">
<div class="row">
<div class="col m3">
<i class="material-icons benefit-icon">
settings
</i>
</div>
<div class="col m9">
<h4>Make your server how you want it.</h4>
<p>
Velocity comes out of the box with excellent support for <a href="https://aquifermc.org">Paper</a>, <a href="https://www.spongepowered.org">Sponge</a>, and
<a href="http://www.minecraftforge.net">Minecraft Forge</a>. Modify and build your server however you want without compromise.
</p>
<a href="#!" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">archive</i>Learn more about Velocity's server support</a>
</div>
</div>
</div>
<div class="divider"></div>
<div class="benefit section">
<div class="row">
<div class="col m3">
<i class="material-icons benefit-icon">
build
</i>
</div>
<div class="col m9">
<h4>Infinitely extensible.</h4>
<p>
Our rich plugin API makes it easy to build on Velocity’s strong core.
</p>
<a href="#!" class="waves-effect waves-light btn light-blue darken-2"><i class="material-icons left">archive</i>Discover what's possible with the Velocity API</a>
</div>
</div>
</div>

<footer class="page-footer light-blue darken-2">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Velocity</h5>
<p class="grey-text text-lighten-4">The next-generation Minecraft server proxy, built with mass-scale and best-of-breed support in mind.</p>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2018 The Velocity team
<a class="grey-text text-lighten-4 right" href="https://github.com/velocitypowered/website">Fork this website</a>
</div>
</div>
</footer>

<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>
51 changes: 51 additions & 0 deletions src/js/downloads.js
@@ -0,0 +1,51 @@
function fetchJenkinsBuilds() {
return window.fetch(
"https://ci.velocitypowered.com/job/velocity/job/master/api/json?tree=builds[number,url,artifacts[fileName,relativePath],timestamp]{,10}"
)
.then(function(resp) {
if (resp.status !== 200) {
throw new Error("unexpected error status " + resp.status)
}
return resp.json();
});
}

function onLoad() {
var app = new Vue({
el: '#downloads-container',
data: {
loading: true,
builds: []
}
});

fetchJenkinsBuilds().then(function(jenkinsResult) {
// Lightly process the result
jenkinsResult.builds.forEach(function(build, i) {
build.latest = i === 0;
build.formattedDate = new Date(build.timestamp).toLocaleDateString(undefined, {
year: "numeric",
month: "long",
day: "numeric"
});
build.artifacts.forEach(function(artifact) {
artifact.url = "https://ci.velocitypowered.com/job/velocity/job/master/" + build.number + "/artifact/" + artifact.relativePath;
artifact.type = function() {
if (artifact.fileName.startsWith('velocity-1.0') || artifact.fileName.startsWith('velocity-proxy-')) {
return "Proxy";
}

if (artifact.fileName.startsWith('velocity-api')) {
return "API";
}

return "Unknown";
}
})
});
app.loading = false;
app.builds = jenkinsResult.builds;
})
}

window.addEventListener('load', onLoad);
6 changes: 6 additions & 0 deletions src/js/materialize.min.js

Large diffs are not rendered by default.

0 comments on commit 4885d4d

Please sign in to comment.