dark mode update

This commit is contained in:
carodej
2020-07-09 10:56:17 +02:00
parent a43f0e6908
commit 5a9f5813c8
89 changed files with 1633 additions and 912 deletions
@@ -19,7 +19,7 @@
</td>
<td>
<span class="cell-item">
{{ row.relationships.storage.data.attributes.used }}%
{{ row.relationships.storage.data.attributes.used_formatted }}
</span>
</td>
<td>
@@ -57,6 +57,18 @@
}
@media (prefers-color-scheme: dark) {
.widget-value {
span {
color: $dark_mode_text_primary;
}
}
.footer-link {
.content {
color: $dark_mode_text_primary;
}
}
}
</style>
@@ -48,4 +48,16 @@
}
}
}
@media (prefers-color-scheme: dark) {
.widget-content {
background: $dark_mode_foreground;
}
.headline {
.title {
color: $dark_mode_text_primary;
}
}
}
</style>
@@ -129,8 +129,15 @@
.button-base {
&.secondary {
color: $dark_mode_text_primary;
background: $dark_mode_foreground;
.content {
color: $dark_mode_text_primary;
}
polyline, path {
stroke: $theme;
}
}
}
}
@@ -110,8 +110,12 @@
'homeDirectory',
]),
hasCapacity() {
//return this.$store.getters.user.relationships.storage.data.attributes.used <= 100
return true
if (! this.$store.getters.config.storageLimit) {
return true
}
return this.$store.getters.user.relationships.storage.data.attributes.used <= 100
},
directoryName() {
return this.currentFolder ? this.currentFolder.name : this.homeDirectory.name
@@ -64,12 +64,12 @@
.title {
max-width: 100%;
font-size: 28px;
font-size: 32px;
line-height: 1.25;
margin-bottom: 15px;
/deep/ span {
font-size: 28px;
font-size: 32px;
}
}
@@ -41,7 +41,7 @@
axios.get('/api/public/pricing')
.then(response => {
this.plans = response.data
this.$emit('load', false)
this.$emit('load', response.data)
})
}
}
@@ -138,4 +138,52 @@
}
}
}
@media (prefers-color-scheme: dark) {
.plans-wrapper {
background: $dark_mode_foreground;
}
.plan {
border-color: $dark_mode_border_color;
.plan-wrapper {
background: $dark_mode_foreground;
}
.plan-header {
.title {
color: $dark_mode_text_primary;
}
.description {
color: $dark_mode_text_secondary;
}
}
.plan-features {
.storage-size {
color: $dark_mode_text_primary;
}
.storage-description {
color: $dark_mode_text_primary;
}
}
.plan-footer {
.sign-in-button {
background: rgba($theme, 0.1);
/deep/ .content {
color: $theme;
}
}
}
}
}
</style>
@@ -316,7 +316,18 @@
}
}
@media only screen and (max-width: 690px) {
@media only screen and (max-width: 960px) {
.page-title {
padding-top: 20px;
}
.get-started-button {
margin-bottom: 30px;
}
.cloud-bg,
.icons {
display: none;
}
}
</style>
@@ -1,6 +1,7 @@
<template>
<div class="page-wrapper large hero-screenshot">
<img src="/assets/images/vuefilemanager-screenshot.png" alt="VueFileManager screenshot">
<img class="hero-light" src="/assets/images/vuefilemanager-screenshot-light.png" alt="VueFileManager application">
<img class="hero-dark" src="/assets/images/vuefilemanager-screenshot-dark.png" alt="VueFileManager application">
<div class="icons">
<link-icon size="20" class="icon"></link-icon>
@@ -59,6 +60,7 @@
.icons {
.icon {
z-index: 0;
position: absolute;
&:nth-child(1) {
@@ -168,31 +170,53 @@
}
.hero-screenshot {
position: relative;
z-index: 1;
padding-top: 75px;
padding-bottom: 130px;
img {
border-radius: 8px;
max-width: 1165px;
width: 80%;
box-shadow: 0 7px 255px rgba(#19363C, 0.1);
}
}
@media only screen and (max-width: 1390px) and (min-width: 1190px) {
.hero-screenshot {
img {
width: 80%;
&.hero-dark {
display: none;
}
}
}
@media only screen and (max-width: 1190px) {
@media only screen and (max-width: 890px) {
.icons {
display: none;
}
.hero-screenshot {
padding-top: 40px;
padding-bottom: 90px;
img {
width: 100%;
}
}
}
@media (prefers-color-scheme: dark) {
.hero-screenshot {
img {
&.hero-light {
display: none;
}
&.hero-dark {
display: block;
box-shadow: 0 7px 185px rgba(0, 0, 0, 0.8);
}
}
}
}
</style>
@@ -2,7 +2,7 @@
<section class="main-features page-wrapper medium">
<PageTitle
type="center"
title="The Fastest Growing <span style='color: #41B883'>File Manager</span><br> on the CodeCanyon Market"
title="The Fastest Growing <span style='color: #41B883'>File Manager</span> on the CodeCanyon Market"
description="Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Trully freedom."
></PageTitle>
<div class="content">
@@ -147,4 +147,39 @@
margin-top: 50px;
}
}
@media only screen and (max-width: 960px) {
.content {
margin-top: 40px;
}
.features {
.feature {
margin-bottom: 35px;
.title {
@include font-size(22);
}
.description {
@include font-size(16);
}
}
}
}
@media (prefers-color-scheme: dark) {
.features {
.feature {
.description {
color: $dark_mode_text_secondary;
}
}
}
}
</style>
@@ -1,7 +1,8 @@
<template>
<nav class="main-navigation">
<router-link :to="{name: 'SaaSLandingPage'}" tag="div" class="logo">
<img src="/assets/images/vuefilemanager-horizontal-logo.svg" alt="VueFileManager">
<img v-if="config.app_logo_horizontal" :src="config.app_logo_horizontal" :alt="config.app_name">
<b v-if="! config.app_logo_horizontal" class="logo-text">{{ config.app_name }}</b>
</router-link>
<div class="navigation">
<ul class="navigation-links">
@@ -36,8 +37,13 @@
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'IndexNavigation',
computed: {
...mapGetters(['config']),
},
}
</script>
@@ -55,12 +61,18 @@
}
.logo {
cursor: pointer;
img {
cursor: pointer;
height: 38px;
width: auto;
}
.logo-text {
font-weight: 800;
@include font-size(25);
}
}
.navigation-links {
@@ -1,8 +1,9 @@
<template>
<footer class="page-wrapper medium">
<div class="logo">
<img src="/assets/images/vuefilemanager-horizontal-logo.svg" alt="VueFileManager">
</div>
<router-link :to="{name: 'SaaSLandingPage'}" tag="div" class="logo">
<img v-if="config.app_logo_horizontal" :src="config.app_logo_horizontal" :alt="config.app_name">
<b v-if="! config.app_logo_horizontal" class="logo-text">{{ config.app_name }}</b>
</router-link>
<ul class="navigation-links">
<li>
<a href="/#pricing">
@@ -14,31 +15,38 @@
Contact Us
</router-link>
</li>
</ul>
<ul class="navigation-links">
<li>
<router-link :to="{name: 'DynamicPage', params: {slug: 'terms'}}">
Terms
<router-link :to="{name: 'DynamicPage', params: {slug: 'terms-of-service'}}">
Terms of Service
</router-link>
</li>
<li>
<router-link :to="{name: 'DynamicPage', params: {slug: 'privacy'}}">
Privacy
<router-link :to="{name: 'DynamicPage', params: {slug: 'privacy-policy'}}">
Privacy Policy
</router-link>
</li>
<li>
<router-link :to="{name: 'DynamicPage', params: {slug: 'cookies'}}">
Cookies
<router-link :to="{name: 'DynamicPage', params: {slug: 'cookie-policy'}}">
Cookie Policy
</router-link>
</li>
</ul>
<p class="copyright">
© 2020 VueFileManager. All rights reserved.
© 2020 {{ config.app_name }}. All rights reserved.
</p>
</footer>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'IndexPageFooter',
computed: {
...mapGetters(['config']),
},
}
</script>
@@ -49,15 +57,22 @@
footer {
text-align: center;
padding-top: 80px;
}
.logo {
margin-bottom: 15px;
cursor: pointer;
img {
height: 38px;
width: auto;
}
.logo-text {
font-weight: 800;
@include font-size(25);
}
}
.navigation-links {
@@ -67,6 +82,7 @@
display: inline-block;
a {
display: block;
padding: 19px;
font-weight: 700;
@include font-size(17);
@@ -86,7 +102,24 @@
padding-bottom: 20px;
}
@media only screen and (max-width: 690px) {
@media only screen and (max-width: 960px) {
.navigation-links {
display: block;
li {
display: block;
a {
padding: 10px 0;
}
}
}
}
@media (prefers-color-scheme: dark) {
.copyright {
color: $dark_mode_text_secondary;
}
}
</style>
@@ -94,6 +94,11 @@
}
@media only screen and (max-width: 690px) {
.main-header {
padding-top: 50px;
}
.features {
display: block;
@@ -106,5 +111,9 @@
}
}
}
.sign-up-button {
margin-top: 30px;
}
}
</style>
@@ -1,12 +1,12 @@
<template>
<div class="page-wrapper medium pricing">
<div class="page-wrapper medium pricing" v-if="! isEmpty">
<div id="pricing" class="page-title center">
<h1 class="title">
Pick the <span style="color: #41B883">Best Plan</span> For Your Needs
</h1>
</div>
<PricingTables class="pricing-tables"/>
<PricingTables class="pricing-tables" @load="pricingLoaded"/>
<div class="page-title center">
<h2 class="description">
@@ -33,6 +33,18 @@
PricingTables,
AuthButton,
CloudIcon,
},
data() {
return {
isEmpty: false,
}
},
methods: {
pricingLoaded(pricing) {
if (pricing.length === 0)
this.isEmpty = true
}
}
}
</script>
@@ -125,6 +137,10 @@
@media only screen and (max-width: 960px) {
.cloud-bg {
display: none;
}
.page-title {
.title {
@@ -143,5 +159,10 @@
margin-bottom: 30px;
}
}
.pricing {
padding-top: 50px;
padding-bottom: 120px;
}
}
</style>
@@ -41,4 +41,13 @@
}
}
@media (prefers-color-scheme: dark) {
.form-label {
.label {
color: $dark_mode_text_primary;
}
}
}
</style>
@@ -53,7 +53,7 @@
.substring(imgPath.lastIndexOf('.') + 1)
.toLowerCase()
if (['png', 'jpg', 'jpeg'].includes(extn)) {
if (['png', 'jpg', 'jpeg', 'svg'].includes(extn)) {
const file = event.target.files[0],
reader = new FileReader()
@@ -156,6 +156,7 @@
@media (prefers-color-scheme: dark) {
.dropzone {
border-color: rgba(white, 0.2);
.dropzone-message {
@@ -33,7 +33,7 @@
p {
@include font-size(15);
line-height: 1.6;
word-break: break-all;
word-break: break-word;
font-weight: 600;
}
@@ -72,14 +72,24 @@
.info-box {
padding: 15px;
}
}
@media (prefers-color-scheme: dark) {
.info-box {
background: $dark_mode_foreground;
background: rgba($yellow, 0.1);
p {
color: $yellow;
}
ul {
li {
color: $yellow;
}
}
}
}
</style>
@@ -103,7 +103,6 @@
.option-item {
padding: 13px 20px;
display: block;
//border-bottom: 1px solid #EBEBEB;
cursor: pointer;
&:hover {
@@ -202,8 +201,18 @@
border-bottom: none;
&:hover {
color: $theme;
background: rgba($theme, .1);
.option-value {
color: $theme;
}
.option-icon {
path, circle {
stroke: $theme;
}
}
}
&:last-child {
@@ -144,6 +144,44 @@
}
@media (prefers-color-scheme: dark) {
.plan {
.plan-wrapper {
background: $dark_mode_foreground;
}
.plan-header {
.title {
color: $dark_mode_text_primary;
}
.description {
color: $dark_mode_text_secondary;
}
}
.plan-features {
.storage-size {
color: $dark_mode_text_primary;
}
.storage-description {
color: $dark_mode_text_primary;
}
}
.plan-footer {
.sign-in-button {
background: rgba($theme, 0.1);
/deep/ .content {
color: $theme;
}
}
}
}
}
</style>
@@ -182,7 +182,7 @@
.detail-storage-item {
&.others {
&.others, &.disk {
.icon {
@@ -80,8 +80,22 @@
.cell-image-thumbnail {
.image {
img {
&.blurred {
display: none;
}
}
}
.info {
.name {
color: $dark_mode_text_primary;
}
.description {
color: $dark_mode_text_secondary;
}
@@ -239,7 +239,7 @@
.table-body {
tr {
border-radius: 8px;
border-bottom: 1px solid #f5f5f5;
//border-bottom: 1px solid #f5f5f5;
&:hover {
background: $light_background;