mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-12 01:52:49 +00:00
styling changes - added font-awesome
This commit is contained in:
@@ -8,9 +8,9 @@ export default class Wrapper extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div className="Content">
|
||||
<Navbar/>
|
||||
<div className="content">
|
||||
<div>
|
||||
{this.props.children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
2337
app/assets/font-awesome/css/font-awesome.css
vendored
Normal file
2337
app/assets/font-awesome/css/font-awesome.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
app/assets/font-awesome/fonts/FontAwesome.otf
Normal file
BIN
app/assets/font-awesome/fonts/FontAwesome.otf
Normal file
Binary file not shown.
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.eot
Normal file
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
2671
app/assets/font-awesome/fonts/fontawesome-webfont.svg
Normal file
2671
app/assets/font-awesome/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 434 KiB |
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.ttf
Normal file
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.woff
Normal file
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.woff2
Normal file
BIN
app/assets/font-awesome/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
@@ -11,6 +11,9 @@ export default class Navbar extends React.Component {
|
||||
<div className="Navbar__header">GoBot</div>
|
||||
<Link to="/" className="Navbar__item" onlyActiveOnIndex activeClassName="Navbar__item--active">Home</Link>
|
||||
<Link to="/soundboard" className="Navbar__item" activeClassName="Navbar__item--active">Soundboard</Link>
|
||||
<div className="link">
|
||||
<a href="https://discordapp.com/invite/0Z2tzxKECEj2BHwj" target="_blank">Join the discord</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -11,14 +11,24 @@
|
||||
background-color: $gray2;
|
||||
border-right: 1px solid darken($gray2, 2%);
|
||||
overflow-y: auto;
|
||||
padding-bottom: 10px;
|
||||
|
||||
.link {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.Navbar__header {
|
||||
font-size: 25px;
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: $gray2;
|
||||
background-color: $primaryBlue;
|
||||
border-bottom: 1px solid $gray3;
|
||||
}
|
||||
|
||||
@@ -31,6 +41,7 @@
|
||||
text-align: center;
|
||||
color: $white;
|
||||
transition: background-color 0.1s linear;
|
||||
transition: color 0.1s linear;
|
||||
|
||||
&:hover {
|
||||
background-color: $gray1;
|
||||
@@ -45,4 +56,5 @@
|
||||
.Navbar__item--active {
|
||||
padding-left: 4px;
|
||||
border-right: 4px solid $primaryBlue;
|
||||
color: $primaryBlue !important;
|
||||
}
|
||||
|
||||
@@ -5,9 +5,17 @@ export default class Home extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="Home">
|
||||
<div className="Card">
|
||||
<div className="Card__header">
|
||||
GoBot Early Access Pre Pre Alpha
|
||||
</div>
|
||||
<p>This application is a work in progress.</p>
|
||||
<p>Check out the source code on
|
||||
<a href="https://github.com/mgerb/GoBot" target="_blank"> GitHub
|
||||
<i className="fa fa-github" aria-hidden="true"></i>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1 @@
|
||||
.Home {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 25px;
|
||||
}
|
||||
@import "../../scss/variables";
|
||||
|
||||
@@ -26,10 +26,12 @@
|
||||
padding: 20px;
|
||||
color: lighten($gray1, 15%);
|
||||
border-radius: 1em;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background-color: $gray2;
|
||||
transition: background-color 0.1s linear;
|
||||
}
|
||||
|
||||
.Dropzone--active {
|
||||
background-color: lighten($gray1, 20%);
|
||||
background-color: $primaryBlue;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
@import '../assets/normalize.css';
|
||||
@import '../assets/font-awesome/css/font-awesome.css';
|
||||
@import './variables.scss';
|
||||
@import './style.scss';
|
||||
|
||||
@@ -1,9 +1,46 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: $primaryBlue;
|
||||
transition: color 0.1s linear;
|
||||
|
||||
&:hover {
|
||||
color: darken(white, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $gray1;
|
||||
color: $white;
|
||||
padding-left: $navbarWidth;
|
||||
}
|
||||
|
||||
.content {
|
||||
.Content {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.Card {
|
||||
background-color: $gray2;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.Card__header {
|
||||
margin: -10px -10px 10px -10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
height: 50px;
|
||||
border-radius: 5px 5px 0 0;
|
||||
font-size: 25px;
|
||||
background-color: $gray3;
|
||||
}
|
||||
@@ -2,12 +2,12 @@ $navbarWidth: 200px;
|
||||
|
||||
|
||||
// colors
|
||||
$primaryBlue: #42adf4;
|
||||
$primaryBlue: #7289da;
|
||||
$white: darken(white, 10%);
|
||||
|
||||
$gray1: #686a6e;
|
||||
$gray2: #424549;
|
||||
$gray3: #36393e;
|
||||
$gray1: #2e3136;
|
||||
$gray2: #2a2d32;
|
||||
$gray3: #282b30;
|
||||
$gray4: #2e3136;
|
||||
$gray5: #282b30;
|
||||
$gray6: #1e2124;
|
||||
|
||||
Reference in New Issue
Block a user