My changes.

This commit is contained in:
veal 2016-02-15 14:52:14 +01:00
parent 4fc11a9640
commit 213d741a96
3 changed files with 36 additions and 32 deletions

View File

@ -12,6 +12,7 @@ html {
} }
body { body {
margin: 0; margin: 0;
padding-top: 100px;
} }
article, article,
aside, aside,

View File

@ -1,21 +1,25 @@
<nav class="navbar navbar-default navbar-fixed-top"> <nav class="navbar navbar-default navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="http://gonito.net/">Gonito.net</a> <a class="navbar-brand" href="@{HomeR}">Gonito.net
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
$maybe user <- maybeUser $maybe user <- maybeUser
_{MsgLoggedAs} #{userIdent $ entityVal user} <ul class="nav navbar-nav">
<li><a href="@{HomeR}">_{MsgHome}</a> <li><a href="@{HomeR}">_{MsgHome}</a>
$if userIsAdmin $ entityVal user $if userIsAdmin $ entityVal user
<li><a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a></li> <li><a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a>
<li><a href="@{ListChallengesR}">_{MsgListChallenges}</a></li> <li><a href="@{ListChallengesR}">_{MsgListChallenges}</a>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="@{AuthR LoginR}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">#{userIdent $ entityVal user}<span class="caret"></span>
<ul class="dropdown-menu">
<li><a href="@{YourAccountR}">_{MsgYourAccount}</a></li> <li><a href="@{YourAccountR}">_{MsgYourAccount}</a></li>
<li><a href="@{AuthR LogoutR}">_{MsgLogOut}</a></li> <li><a href="@{AuthR LogoutR}">_{MsgLogOut}</a></li>
$nothing $nothing
<li><a href="@{AuthR LoginR}">_{MsgLogIn}</a> <ul class="nav navbar-nav navbar-right">
<li><a href="@{AuthR LoginR}">log in</a>
$maybe msg <- mmsg $maybe msg <- mmsg
<div #message .alert .alert-warning><a href="#" class="close" data-dismiss="alert">&times;</a> #{msg} <div #message .alert .alert-warning><a href="#" class="close" data-dismiss="alert">&times;</a> #{msg}
<br><br><br><br>
^{widget} ^{widget}

View File

@ -1,9 +1,10 @@
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
<h1>Welcome to Gonito.net! <h1>Welcome to Gonito.net!
<hr> <p>Gonito (pronounced <i>ɡɔ̃ˈɲitɔ</i>) is a Kaggle<sup><u><a class="nounderline" href="#disclaimer">*</a></u></sup>-like platform for machine learning competitions.
<p>Gonito (pronounced <i>ɡɔ̃ˈɲitɔ</i>) is a Kaggle<sup><u><a href="#disclaimer">*</a></u></sup>-like platform for machine learning competitions.
<p>What's so special about Gonito: <div class="panel panel-default">
<div class="panel-heading">What's so special about Gonito:
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item">free & open-source (AGPL), you can use it your own, in your company, at your university, etc. (git repo: <tt><a href="#{browsableGitRepo "gonito"}">git://gonito.net/gonito</a></tt>) <li class="list-group-item">free & open-source (AGPL), you can use it your own, in your company, at your university, etc. (git repo: <tt><a href="#{browsableGitRepo "gonito"}">git://gonito.net/gonito</a></tt>)
<li class="list-group-item">git-based (challenges and solutions are submitted only with git). <li class="list-group-item">git-based (challenges and solutions are submitted only with git).
@ -12,19 +13,17 @@
$maybe _ <- maybeLocalId $maybe _ <- maybeLocalId
<p>Go to the <a href="@{ListChallengesR}">challenge list</a> and choose a challenge for you! <p>Go to the <a href="@{ListChallengesR}">challenge list</a> and choose a challenge for you!
$nothing $nothing
<h2>How to setup your account? <div class="alert alert-info" role="alert">
<p>Click <a href="@{YourAccountR}">your account</a> to setup your name, ID and SSH public key. <p>
<strong>How to setup your account?
Click <a href="@{YourAccountR}">your account</a> to setup your name, ID and SSH public key.
$nothing $nothing
<br><br><br>
<h2>How to log in?
<hr>
<p>Gonito uses <a href="https://developer.mozilla.org/en-US/Persona">Persona</a> authentication system available in Mozilla Firefox. Other authentication systems are on the way, but for the time being you need to use Firefox. <div class="alert alert-info" role="alert">
<p>
<strong>How to log in?
Gonito uses <a href="https://developer.mozilla.org/en-US/Persona">Persona</a> authentication system available in Mozilla Firefox. Other authentication systems are on the way, but for the time being you need to use Firefox.
<p>So, just click <a href="@{AuthR LoginR}">log in</a>, then "Sign in with Persona" button and Firefox will guide you! <p>So, just click <a href="@{AuthR LoginR}">log in</a>, then "Sign in with Persona" button and Firefox will guide you!
<p>So, just click button below, then "Sign in with Persona" button and Firefox will guide you!</p>
<br><br> <p class="text-muted pagination-centered"><sup>*</sup>Disclaimer: Gonito is neither affiliated with nor endorsed by <a href="https://www.kaggle.com">Kaggle</a>.
<p>
<a class="btn btn-lg btn-primary" href="@{AuthR LoginR}" role="button">Log in »</a>
<p><sup>*</sup>Disclaimer: Gonito is neither affiliated with nor endorsed by <a href="https://www.kaggle.com">Kaggle</a>.