mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 22:11:35 +00:00
feat(app): adjustments
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
************************************************************************* -->
|
************************************************************************* -->
|
||||||
|
|
||||||
<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,10 +94,17 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#{$c} {
|
#{$c} {
|
||||||
#{$c}__copyright {
|
margin: 0 20px;
|
||||||
position: fixed;
|
|
||||||
right: 0;
|
#{$c}__inner {
|
||||||
bottom: 0;
|
margin: 0 auto;
|
||||||
|
max-width: 1140px;
|
||||||
|
|
||||||
|
#{$c}__copyright {
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user