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> <div class="header">
<h1>Hello world</h1> <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> </div>

View File

@ -1 +1,17 @@
// component styles are encapsulated and only applied to their components // 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">
<p class="text-danger">{{ error }}</p> <div *ngIf="error">
</div> <p class="text-danger">{{ error }}</p>
<div *ngIf="loading && !error"> </div>
<p><i class="fa fa-circle-o-notch fa-spin"></i> Loading...</p> <div *ngIf="loading && !error">
</div> <p><i class="fa fa-circle-o-notch fa-spin"></i> Loading...</p>
<div *ngIf="!error && !loading"> </div>
<h3>Manage Integrations</h3> <div *ngIf="!error && !loading">
<p>Turn on anything you like. If an integration has some special configuration, it will have a configuration icon next to it.</p> <h3>Manage Integrations</h3>
<div class="integration-container"> <p>Turn on anything you like. If an integration has some special configuration, it will have a configuration icon next to it.</p>
<my-bot *ngFor="let bot of bots" [bot]="bot" (updated)="updateBot(bot)"></my-bot> <div class="integration-container">
<my-bot *ngFor="let bot of bots" [bot]="bot" (updated)="updateBot(bot)"></my-bot>
</div>
</div> </div>
</div> </div>

View File

@ -2,3 +2,7 @@
.integration-container { .integration-container {
display: flex; 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 { body {
background: #ddd !important; background: #ddd !important;
margin: 0; margin: 0;
padding: 30px; padding: 0;
color: #222; color: #222;
} }