Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ui_openvpn/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import getServerName from "./utils/getServerName";
// Logos
import errorLogo from "./img/error.png";
import okLogo from "./img/ok.png";
import logo from "./img/logo.png";
import loadingGif from "./img/loading.gif";
import logo from "./img/dappnode-logo.png";
// Icons
import FaAndroid from "./icons/FaAndroid";
import FaApple from "./icons/FaApple";
Expand Down Expand Up @@ -156,7 +155,7 @@ export default class App extends Component {
if (loading) {
return (
<div className="status-panel card-surface">
<img src={loadingGif} className="loading-logo" alt="loading" />
<div className="loading-spinner"></div>
<h6 className="main-text">Loading...</h6>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion ui_openvpn/src/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import dappnodeLogo from "./img/logo.png";
import dappnodeLogo from "./img/dappnode-logo.png";

class Header extends Component {
render() {
Expand Down
Binary file added ui_openvpn/src/img/dappnode-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ui_openvpn/src/img/loading.gif
Binary file not shown.
Binary file removed ui_openvpn/src/img/logo.png
Binary file not shown.
16 changes: 16 additions & 0 deletions ui_openvpn/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ a:hover {
margin-bottom: 8px;
}

.loading-spinner {
width: 56px;
height: 56px;
margin: 16px auto 8px;
border: 5px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}

.main-text {
font-weight: 500;
color: var(--muted);
Expand Down