Initial commit

This commit is contained in:
MakingCG
2020-03-10 19:00:32 +01:00
commit 3285a7e1c2
165 changed files with 31472 additions and 0 deletions

View File

@@ -0,0 +1,117 @@
<template>
<button class="button outline">
<span class="text-label">{{ text }}</span>
<span v-if="loading" class="icon">
<FontAwesomeIcon icon="sync-alt" class="sync-alt"/>
</span>
<span v-if="! loading && icon" class="icon">
<FontAwesomeIcon :icon="icon"/>
</span>
</button>
</template>
<script>
export default {
name: 'AuthContent',
props: ['loading', 'icon', 'text'],
data() {
return {
isVisible: false,
}
},
created() {
this.isVisible = this.visible
}
}
</script>
<style scoped lang="scss">
@import "@assets/app.scss";
.button {
cursor: pointer;
border-radius: 8px;
text-decoration: none;
padding: 12px 32px;
display: inline-block;
margin-left: 15px;
margin-right: 15px;
white-space: nowrap;
@include transition(150ms);
background: transparent;
.text-label {
@include transition(150ms);
@include font-size(17);
font-weight: 800;
line-height: 0;
}
.icon {
margin-left: 12px;
@include font-size(16);
}
&.solid {
background: $theme;
border: 2px solid $theme;
.text-label {
color: white;
}
}
&.outline {
border: 2px solid $text;
.text-label {
color: $text;
}
.icon {
path {
fill: $theme;
}
}
&:hover {
border-color: $theme;
.text-label {
color: $theme;
}
}
}
}
@media (prefers-color-scheme: dark) {
.button {
&.outline {
background: $dark_mode_background;
border-color: $dark_mode_text_primary;
.text-label {
color: $dark_mode_text_primary;
}
}
}
}
.sync-alt {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
</style>

View File

@@ -0,0 +1,26 @@
<template>
<div class="auth-form" v-if="isVisible">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'AuthContent',
props: ['visible', 'name'],
data() {
return {
isVisible: false,
}
},
created() {
this.isVisible = this.visible
}
}
</script>
<style scoped lang="scss">
</style>

View File

@@ -0,0 +1,25 @@
<template>
<div id="auth">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'AuthContentWrapper',
}
</script>
<style scoped lang="scss">
@import "@assets/app.scss";
#auth {
height: 100%;
width: 100%;
display: table;
//display: flex;
//align-items: center;
//justify-content: center;
}
</style>