Add a splash page. Adds #21

Includes a self-made logo. Suggestions welcome.
This commit is contained in:
turt2live 2017-05-27 21:21:08 -06:00
parent 603600d97e
commit 9189c6f72b
9 changed files with 53 additions and 14 deletions

View File

@ -1,3 +1,20 @@
<div>
<h1>Hello world</h1>
<div class="header">
<img src="/img/logo.png">
</div>
<div class="wrapper">
<div class="center">
<h3>An alternative integrations manager for Riot</h3>
<p>Dimension is a way for people hosting Riot to expand their integrations offering to their users.</p>
<img src="/img/screenshot_bordered.png">
<br/>
<br/>
<p>Point your Riot <code>config.json</code> to Dimension to start using it:</p>
<pre>
"integrations_ui_url": "https://dimension.t2bot.io/riot"
"integrations_rest_url": "https://dimension.t2bot.io/api/v1/scalar"
</pre>
<br/>
<br/>
<p>Learn more on <a href="https://github.com/turt2live/matrix-dimension">Github</a>. Talk about it in <a href="https://matrix.to/#/#dimension:t2l.io">#dimension:t2l.io</a></p>
</div>
</div>

View File

@ -1 +1,17 @@
// component styles are encapsulated and only applied to their components
.header {
text-align: center;
background-color: #fff;
}
.header img {
height: 125px;
}
.wrapper {
margin-top: 20px;
}
.center {
text-align: center;
}

View File

@ -1,13 +1,15 @@
<div *ngIf="error">
<div id="wrapper">
<div *ngIf="error">
<p class="text-danger">{{ error }}</p>
</div>
<div *ngIf="loading && !error">
</div>
<div *ngIf="loading && !error">
<p><i class="fa fa-circle-o-notch fa-spin"></i> Loading...</p>
</div>
<div *ngIf="!error && !loading">
</div>
<div *ngIf="!error && !loading">
<h3>Manage Integrations</h3>
<p>Turn on anything you like. If an integration has some special configuration, it will have a configuration icon next to it.</p>
<div class="integration-container">
<my-bot *ngFor="let bot of bots" [bot]="bot" (updated)="updateBot(bot)"></my-bot>
</div>
</div>
</div>

View File

@ -2,3 +2,7 @@
.integration-container {
display: flex;
}
#wrapper {
padding: 30px;
}

BIN
web/public/img/avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
web/public/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -4,6 +4,6 @@
body {
background: #ddd !important;
margin: 0;
padding: 30px;
padding: 0;
color: #222;
}