removing server things from the '''official client'''
This commit is contained in:
parent
3ea5cdcab6
commit
b0ded798c3
@ -1,9 +1,14 @@
|
|||||||
build:
|
# Building primarily css here
|
||||||
cargo build
|
sass=static/sass/*
|
||||||
|
css=
|
||||||
|
|
||||||
release:
|
for item in $(sass) \
|
||||||
cargo build --release
|
css=$(css) $${item: scss:css} \
|
||||||
|
done
|
||||||
|
|
||||||
|
all:
|
||||||
|
mkdir -p static/css/
|
||||||
|
for item in $(css) \
|
||||||
|
sass static/sass
|
||||||
|
sass static/sass:static/css
|
||||||
|
|
||||||
run:
|
|
||||||
# Running server
|
|
||||||
cargo run
|
|
@ -1,29 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
build_dir="static/css"
|
|
||||||
sass_dir="static/sass"
|
|
||||||
|
|
||||||
if [ ! -d $build_dir ]; then
|
|
||||||
mkdir -p $build_dir
|
|
||||||
fi
|
|
||||||
|
|
||||||
login="login"
|
|
||||||
|
|
||||||
build() {
|
|
||||||
echo Building $1 css in $build_dir/$1.css
|
|
||||||
sass "$sass_dir/$1.scss" "$build_dir/$1.css"
|
|
||||||
}
|
|
||||||
|
|
||||||
_flags() {
|
|
||||||
echo '-b FILE : build css from sass'
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "$1" ];then
|
|
||||||
_flags
|
|
||||||
fi
|
|
||||||
|
|
||||||
while getopts ":b:" opt; do
|
|
||||||
case $opt in
|
|
||||||
b) build $2;;
|
|
||||||
esac
|
|
||||||
done
|
|
@ -1,197 +0,0 @@
|
|||||||
$button_color_bg: #1f8dd6;
|
|
||||||
$button_color_txt: white;
|
|
||||||
* {
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* -- BASE STYLES --
|
|
||||||
* Most of these are inherited from Base, but I want to change a few.
|
|
||||||
*/
|
|
||||||
body {
|
|
||||||
line-height: 1.7em;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
.navbar {
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* -- LAYOUT STYLES --
|
|
||||||
* These are some useful classes which I will need
|
|
||||||
*/
|
|
||||||
.l-box {
|
|
||||||
padding: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.l-box-lrg {
|
|
||||||
padding: 2em;
|
|
||||||
border-bottom: 1px solid rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.is-center {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.pure-form input[type] {
|
|
||||||
border: 2px solid #ddd;
|
|
||||||
box-shadow: none;
|
|
||||||
font-size: 100%;
|
|
||||||
width: 100%;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* -- PURE BUTTON STYLES --
|
|
||||||
* I want my pure-button elements to look a little different
|
|
||||||
*/
|
|
||||||
.pure-button {
|
|
||||||
background-color: $button_color_bg;
|
|
||||||
color: $button_color_txt;
|
|
||||||
padding: 0.5em 2em;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.pure-button-primary {
|
|
||||||
background: $button_color_bg;
|
|
||||||
color: $button_color_txt;
|
|
||||||
border-radius: 5px;
|
|
||||||
font-size: 120%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* -- SPLASH STYLES --
|
|
||||||
* This is the blue top section that appears on the page.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.splash-container {
|
|
||||||
background-image: url('https://www.shockrah.shop/static/images/chalk.jpg');
|
|
||||||
background-attachment: fixed;
|
|
||||||
background-size: cover;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
z-index: 1;
|
|
||||||
overflow: hidden;
|
|
||||||
/* The following styles are required for the "scroll-over" effect */
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
position: fixed !important;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.splash {
|
|
||||||
width: 80%;
|
|
||||||
height: 50%;
|
|
||||||
margin: auto;
|
|
||||||
position: absolute;
|
|
||||||
top: 100px; left: 0; bottom: 0; right: 0;
|
|
||||||
text-align: center;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is the main heading that appears on the blue section */
|
|
||||||
.splash-head {
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: white;
|
|
||||||
border: 3px solid white;
|
|
||||||
padding: 1em 1.6em;
|
|
||||||
font-weight: 450;
|
|
||||||
border-radius: 5px;
|
|
||||||
line-height: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is the subheading that appears on the blue section */
|
|
||||||
.splash-subhead {
|
|
||||||
letter-spacing: 0.05em;
|
|
||||||
color: white;
|
|
||||||
font-weight: 450;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* -- CONTENT STYLES --
|
|
||||||
* This represents the content area (everything below the blue section)
|
|
||||||
*/
|
|
||||||
.content-wrapper {
|
|
||||||
/* These styles are required for the "scroll-over" effect */
|
|
||||||
position: absolute;
|
|
||||||
top: 87%;
|
|
||||||
width: 100%;
|
|
||||||
min-height: 12%;
|
|
||||||
z-index: 2;
|
|
||||||
background: white;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* We want to give the content area some more padding */
|
|
||||||
.content {
|
|
||||||
padding: 1em 1em 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is the class used for the main content headers (<h2>) */
|
|
||||||
.content-head {
|
|
||||||
font-weight: 400;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.1em;
|
|
||||||
margin: 2em 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is a modifier class used when the content-head is inside a ribbon */
|
|
||||||
.content-head-ribbon {
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is the class used for the content sub-headers (<h3>) */
|
|
||||||
.content-subhead {
|
|
||||||
color: $button_color_txt;
|
|
||||||
}
|
|
||||||
.content-subhead i {
|
|
||||||
margin-right: 7px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* -- TABLET (AND UP) MEDIA QUERIES --
|
|
||||||
* On tablets and other medium-sized devices, we want to customize some
|
|
||||||
* of the mobile styles.
|
|
||||||
*/
|
|
||||||
@media (min-width: 48em) {
|
|
||||||
/* We decrease the width of the .splash, since we have more width
|
|
||||||
to work with */
|
|
||||||
.splash {
|
|
||||||
width: 50%;
|
|
||||||
height: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.splash-head {
|
|
||||||
font-size: 250%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* We remove the border-separator assigned to .l-box-lrg */
|
|
||||||
.l-box-lrg {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* -- DESKTOP (AND UP) MEDIA QUERIES --
|
|
||||||
* On desktops and other large devices, we want to over-ride some
|
|
||||||
* of the mobile and tablet styles.
|
|
||||||
*/
|
|
||||||
@media (min-width: 78em) {
|
|
||||||
/* We increase the header font size even more */
|
|
||||||
.splash-head {
|
|
||||||
font-size: 300%;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="title" content="{{og_title}}">
|
|
||||||
<title>{{og_title}}</title>
|
|
||||||
<meta name="description" content="{{og_desc}}">
|
|
||||||
<!-- open graph things -->
|
|
||||||
<meta property="og:title" content="{{og_title}}">
|
|
||||||
<meta property="og:type" content="{{og_type}}">
|
|
||||||
<meta property="og:description" content="{{og_desc}}">
|
|
||||||
<meta property="og:url" content="{{og_url}}">
|
|
||||||
<meta property="og:image" content="{{og_image}}">
|
|
||||||
<link rel="shortcut icon" type="image/png" href="{{favicon}}">
|
|
||||||
|
|
||||||
<script src="https://kit.fontawesome.com/744f5c4640.js"></script>
|
|
||||||
<link rel="stylesheet" href="/static/css/index.css">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css">
|
|
||||||
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
||||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
|
||||||
<a class="navbar-brand" href="/">{{brand_url}}</a>
|
|
||||||
<button
|
|
||||||
class="navbar-toggler dropdown"
|
|
||||||
type="button" data-toggle="collapse"
|
|
||||||
data-target="#nav-content"
|
|
||||||
aria-controls="nav-content"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="nav-content">
|
|
||||||
<ul class="navbar-nav">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/about">What is freechat?</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="/servers">Instances</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
<div class="splash-container">
|
|
||||||
<div class="splash">
|
|
||||||
<h1 class="splash-head">{{brand_url}}</h1>
|
|
||||||
<p class="splash-subhead">{{brand_motto}}</p>
|
|
||||||
<p>
|
|
||||||
<a href="#msgform" class="pure-button pure-button-primary">{{brand_quip}}</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
|
||||||
<div class="content">
|
|
||||||
<h2 class="content-head is-center">A chat platform that respects your privacy and freedom</h2>
|
|
||||||
<div class="pure-g">
|
|
||||||
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
|
|
||||||
<h3 class="content-subhead"><i class="fas fa-dollar-sign"></i>How much?</h3>
|
|
||||||
<p>Nothing. It's free to run your own instance</p>
|
|
||||||
</div>
|
|
||||||
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
|
|
||||||
<h3 class="content-subhead"><i class="fa fa-wrench"></i>Is it hard to setup?</h3>
|
|
||||||
<p>Not at all, you can easily spin up an instance using the guide here.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
<!-- If jquery doesn't come first things like dropdown menus break -->
|
|
||||||
<script
|
|
||||||
src="https://code.jquery.com/jquery-3.4.1.slim.js"
|
|
||||||
integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI="
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
<script
|
|
||||||
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
|
|
||||||
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
|
|
||||||
crossorigin="anonymous"></script>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user