remove ripple

This commit is contained in:
Alicia
2019-02-23 17:23:22 +00:00
parent 1538ba4840
commit d0dffb45de
18 changed files with 119 additions and 85 deletions

View File

@@ -9,7 +9,7 @@ KyutGrill=homepage2.jpg
{{ $ := . }}
<div class="ui container">
<div class="ui center aligned segment">
<img src="/static/logos/logo-{{ randomLogoColour }}{{ if $ds }}-dark{{ end }}.svg">
<img src="/static/logos/circle.png">
</div>
{{ $set := systemSettings "website_home_alert" }}
{{ with $set.website_home_alert.String }}
@@ -20,42 +20,22 @@ KyutGrill=homepage2.jpg
{{/* Not logged in block */}}
{{ if not .Context.User.ID }}
<div class="ui segment">
<h1 class="ui header">{{ .T "Welcome to Ripple." }}</h1>
<h1 class="ui header">{{ .T "Welcome to Yozora." }}</h1>
<p>
{{ .T "You look new here. Allow us to introduce you to what Ripple is." }}
{{ .T "You look new here. Allow us to introduce you to what Yozora is." }}
</p>
<p>
{{ .T "Ripple is a private osu! server, featuring multiplayer, PP, a very active community and a development team going strong implementing new features and squashing bugs. <a href='/about'>You can check out even more features here.</a> It has also a very friendly community, and it's <a href='https://zxq.co/ripple/ripple'>open source!</a> Just so you know, <b>we currently have %s users online and %s registered users!</b>" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
{{ .T "Yozora is a private osu! server, featuring multiplayer, PP for relax, autopilot and regular osu!, leaderboards for every (submitted) map, a very active community and a development team going strong implementing new features and squashing bugs. <a href='/about'>You can check out even more features here.</a> It has also a very friendly community, and it's <a href='https://github.com/osuYozora'>open source!</a> Just so you know, <b>we currently have %s users online and %s registered users!</b>" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
</p>
<h3 class="ui header center aligned">{{ .T "What are you waiting for? Join Ripple! It's risk-free: you won't get your account banned on the official server if you play on Ripple.<br>You can also switch anytime between the official osu! server and Ripple!" | html }}</h3>
<h3 class="ui header center aligned">{{ .T "What are you waiting for? Join Yozora! It's risk-free: you won't get your account banned on the official server if you play on Yozora.<br>You can also switch anytime between the official osu! server and Yozora!" | html }}</h3>
</div>
{{ else }}
<div class="ui segment">
<h1 class="ui header">{{ .T "Howdy, %s!" .Context.User.Username }}</h1>
<p>
{{ .T "Welcome back to Ripple. We currently have <b>%s online users and %s total registered users.</b> Nice day to farm a few maps, isn't it?" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
{{ .T "Welcome back to Yozora. We currently have <b>%s online users and %s total registered users.</b> Nice day to farm PP, isn't it?" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
</p>
</div>
{{ end }}
{{ with (.Get "blog/posts?l=5") }}
<div class="ui raised segment">
<h1 class="ui center aligned header">
{{ $.T "Latest news from our <a href='https://blog.ripple.moe'>blog</a>" | html }}
</h1>
</div>
<div class="ui segments">
{{ range $i, $v := .posts }}
<div class="ui segment">
<h1 class="ui header no top margin">
<a href="https://blog.ripple.moe/{{ $v.unique_slug }}" class="inherit">{{ html $v.title }}</a>
<div class="sub header"><a href="https://blog.ripple.moe/@{{ $v.creator.username }}">{{ $v.creator.name }}</a>, {{ time $v.created_at }}</div>
</h1>
<p>
{{ $v.snippet }}
</p>
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}