feat(app): adjustments

This commit is contained in:
Julien
2018-09-09 20:07:59 +02:00
parent cd4fcf08e5
commit 457b7faf17
4 changed files with 42 additions and 9 deletions

View File

@@ -3,13 +3,24 @@
************************************************************************* --> ************************************************************************* -->
<template lang="pug"> <template lang="pug">
.c-base-cheatsheet a(
:href="link"
class="c-base-cheatsheet"
targer="_blank"
)
img( img(
:src="thumbnail" :src="'/images/components/BaseCheatsheet/' + thumbnail"
class="c-base-cheatsheet__thumbnail" class="c-base-cheatsheet__thumbnail"
) )
.c-base-cheatsheet__content .c-base-cheatsheet__content
span.c-base-cheatsheet__name The {{ name }} Cheatsheet span.c-base-cheatsheet__name The {{ name }} Cheatsheet
.c-base-cheatsheet__share
span(
v-for="network in networks"
:src="'/images/components/BaseCheatsheet/' + network"
class="c-base-cheatsheet__icon"
)
</template> </template>
<!-- ************************************************************************* <!-- *************************************************************************
@@ -19,6 +30,10 @@
<script> <script>
export default { export default {
props: { props: {
link: {
type: String,
required: true
},
name: { name: {
type: String, type: String,
required: true required: true
@@ -27,6 +42,13 @@ export default {
type: String, type: String,
required: true required: true
} }
},
data() {
return {
// --> COMPONENTS <--
networks: ["twitter", "slack", "messenger", "telegram", "linkedin"]
};
} }
}; };
</script> </script>
@@ -39,10 +61,12 @@ export default {
$c: ".c-base-cheatsheet"; $c: ".c-base-cheatsheet";
#{$c} { #{$c} {
display: block;
padding: 10px; padding: 10px;
border: 1px solid #313d4f; border: 1px solid #313d4f;
border-radius: 4px; border-radius: 4px;
background: #273142; background: #273142;
cursor: pointer;
#{$c}__thumbnail { #{$c}__thumbnail {
margin-bottom: 5px; margin-bottom: 5px;

View File

@@ -38,6 +38,7 @@ $c: ".c-base-divider";
#{$c}__category { #{$c}__category {
margin-right: 40px; margin-right: 40px;
color: #ffffff; color: #ffffff;
text-align-last: left;
text-transform: uppercase; text-transform: uppercase;
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;

View File

@@ -4,10 +4,10 @@
<template lang="pug"> <template lang="pug">
.l-default .l-default
.l-default__inner
the-github( the-github(
class="l-default__github" class="l-default__github"
) )
nuxt nuxt
the-copyright( the-copyright(
@@ -94,11 +94,18 @@ html {
} }
#{$c} { #{$c} {
margin: 0 20px;
#{$c}__inner {
margin: 0 auto;
max-width: 1140px;
#{$c}__copyright { #{$c}__copyright {
position: fixed; position: fixed;
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
} }
}
</style> </style>

View File

@@ -47,6 +47,7 @@ export default {
data() { data() {
return { return {
// --> COMPONENTS <--
categories: [ categories: [
{ {
name: "Languages", name: "Languages",
@@ -159,7 +160,7 @@ $c: ".c-index";
#{$c}__description { #{$c}__description {
margin: 0; margin: 0;
margin: 40px 0; margin: 30px 0 40px;
font-size: 24px; font-size: 24px;
line-height: 36px; line-height: 36px;
} }