clean up of home section; now with styling

This commit is contained in:
gingervitis
2020-11-13 03:43:28 -08:00
parent 3f1f96a768
commit 2211572ba1
11 changed files with 409 additions and 279 deletions

6
web/styles/colors.scss Normal file
View File

@@ -0,0 +1,6 @@
:root {
--owncast-purple: rgba(90,103,216,1);
--owncast-purple-highlight: #ccd;
--online-color: #73dd3f;
}

View File

@@ -1,4 +1,4 @@
$owncast-purple: rgba(90,103,216,1);;
$owncast-purple: rgba(90,103,216,1);
html,
body {
@@ -19,6 +19,12 @@ a {
box-sizing: border-box;
}
pre {
display: block;
padding: 1rem;
margin: .5rem 0;
background-color: #eee;
}
.owncast-layout .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {
background-color: $owncast-purple;
@@ -31,4 +37,4 @@ a {
.recharts-wrapper {
font-size: 12px;
}
}

160
web/styles/home.scss Normal file
View File

@@ -0,0 +1,160 @@
.home-container {
max-width: 1000px;
.section {
margin: 1rem 0;
}
.online-status-section {
> .ant-card {
box-shadow: 0px 1px 1px 0px rgba(0, 22, 40, 0.1);
}
.ant-card-head {
background-color: var(--owncast-purple);
border-color: #ccc;
color:#fff;
}
.ant-card-head-title {
font-size: .88rem;
}
.ant-statistic-title {
font-size: .88rem;
}
.ant-card-body {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
.ant-statistic {
width: 30%;
text-align: center;
margin: 0 1rem;
}
}
}
.stream-details-section {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
width: 100%;
.details {
width: 49%;
> .ant-card {
margin-bottom: 1rem;
}
.ant-card-head {
background-color: #ccd;
color: black;
}
}
.server-detail {
.ant-card-body {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
.ant-card {
width: 49%;
}
}
.ant-card-head {
background-color: #669;
color: #fff;
}
}
}
@media (max-width: 800px) {
.online-status-section{
.ant-card-body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
.ant-statistic {
width: auto;
text-align: left;
margin: 1em;
}
}
}
.stream-details-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
.details {
width: 100%;
}
}
}
}
.offline-content {
max-width: 1000px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
width: 100%;
.logo-section {
width: 50%;
.ant-result-title {
font-size: 2rem;
}
.ant-result-subtitle {
font-size: 1rem;
}
.ant-result-icon svg {
height: 8rem;
width: 8rem;
}
}
.list-section {
width: 50%;
> .ant-card {
margin-bottom: 1rem;
.ant-card-head {
background-color: #dde;
}
.ant-card-head-title {
font-size: 1rem;
}
.ant-card-meta-avatar {
margin-top: .25rem;
svg {
height: 1.25rem;
width: 1.25rem;
}
}
.ant-card-body {
font-size: .88rem;
}
}
}
@media (max-width: 800px) {
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
.logo-section,
.list-section {
width: 100%
}
}
}

View File

@@ -61,10 +61,10 @@
color: #999;
}
.online .statusIcon svg {
fill: #52c41a;
fill: var(--online-color)
}
.online .statusLabel {
color: #52c41a;
color: var(--online-color)
}