2018-09-09 15:06:11 +00:00
|
|
|
|
<!-- *************************************************************************
|
|
|
|
|
TEMPLATE
|
|
|
|
|
************************************************************************* -->
|
2018-09-09 14:50:38 +00:00
|
|
|
|
|
2018-09-09 15:06:11 +00:00
|
|
|
|
<template lang="pug">
|
2018-09-09 15:26:24 +00:00
|
|
|
|
.c-index
|
2018-09-09 16:58:41 +00:00
|
|
|
|
img(
|
|
|
|
|
src="/images/common/logo.png"
|
|
|
|
|
srcset="/images/common/logo@2x.png"
|
|
|
|
|
class="c-index__logo"
|
|
|
|
|
)
|
2018-09-09 17:18:40 +00:00
|
|
|
|
p.c-index__description
|
|
|
|
|
| Awesome cheatsheets for popular programming languages, frameworks and development tools.<br/>
|
|
|
|
|
| They include everything you should know in one single file. 👩💻👨💻
|
|
|
|
|
|
|
|
|
|
section(
|
|
|
|
|
v-for="(category, index) in categories"
|
2018-09-09 17:46:23 +00:00
|
|
|
|
:key="category.name"
|
2018-09-09 17:18:40 +00:00
|
|
|
|
class="c-index__category"
|
2018-09-09 15:26:24 +00:00
|
|
|
|
)
|
2018-09-09 17:18:40 +00:00
|
|
|
|
base-divider(
|
|
|
|
|
:category="'0' + (index + 1) + '. ' + category.name"
|
2018-09-09 17:46:23 +00:00
|
|
|
|
class="c-index__divider"
|
2018-09-09 17:18:40 +00:00
|
|
|
|
)
|
2018-09-09 17:46:23 +00:00
|
|
|
|
.c-index__cheatsheets
|
|
|
|
|
base-cheatsheet(
|
|
|
|
|
v-for="cheatsheet in category.cheatsheets"
|
|
|
|
|
:key="cheatsheet.name"
|
|
|
|
|
:name="cheatsheet.name"
|
|
|
|
|
:thumbnail="cheatsheet.thumbnail"
|
|
|
|
|
)
|
2018-09-09 15:06:11 +00:00
|
|
|
|
</template>
|
2018-09-09 14:50:38 +00:00
|
|
|
|
|
2018-09-09 15:06:11 +00:00
|
|
|
|
<!-- *************************************************************************
|
|
|
|
|
SCRIPT
|
|
|
|
|
************************************************************************* -->
|
2018-09-09 14:50:38 +00:00
|
|
|
|
|
2018-09-09 15:06:11 +00:00
|
|
|
|
<script>
|
2018-09-09 17:46:23 +00:00
|
|
|
|
import BaseCheatsheet from "@/components/BaseCheatsheet";
|
2018-09-09 17:18:40 +00:00
|
|
|
|
import BaseDivider from "@/components/BaseDivider";
|
|
|
|
|
|
2018-09-09 15:26:24 +00:00
|
|
|
|
export default {
|
2018-09-09 17:18:40 +00:00
|
|
|
|
components: {
|
2018-09-09 17:46:23 +00:00
|
|
|
|
BaseCheatsheet,
|
2018-09-09 17:18:40 +00:00
|
|
|
|
BaseDivider
|
|
|
|
|
},
|
|
|
|
|
|
2018-09-09 15:26:24 +00:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
2018-09-09 17:18:40 +00:00
|
|
|
|
categories: [
|
|
|
|
|
{
|
2018-09-09 17:46:23 +00:00
|
|
|
|
name: "Languages",
|
|
|
|
|
cheatsheets: [
|
|
|
|
|
{
|
|
|
|
|
name: "Bash",
|
|
|
|
|
thumbnail: "bash.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "JavaScript",
|
|
|
|
|
thumbnail: "javascript.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "PHP",
|
|
|
|
|
thumbnail: "php.jpg"
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 17:18:40 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2018-09-09 17:46:23 +00:00
|
|
|
|
name: "Backend",
|
|
|
|
|
cheatsheets: [
|
|
|
|
|
{
|
|
|
|
|
name: "Django",
|
|
|
|
|
thumbnail: "django.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Feathers.js",
|
|
|
|
|
thumbnail: "feathers.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Moleculer",
|
|
|
|
|
thumbnail: "moleculer.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Node.js",
|
|
|
|
|
thumbnail: "node.jpg"
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 17:18:40 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2018-09-09 17:46:23 +00:00
|
|
|
|
name: "Frontend",
|
|
|
|
|
cheatsheets: [
|
|
|
|
|
{
|
|
|
|
|
name: "Angular.js",
|
|
|
|
|
thumbnail: "angularjs.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "HTML5",
|
|
|
|
|
thumbnail: "html5.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "React.js",
|
|
|
|
|
thumbnail: "react.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Vue.js",
|
|
|
|
|
thumbnail: "vue.jpg"
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 17:18:40 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2018-09-09 17:46:23 +00:00
|
|
|
|
name: "Databases",
|
|
|
|
|
cheatsheets: [
|
|
|
|
|
{
|
|
|
|
|
name: "Redis",
|
|
|
|
|
thumbnail: "redis.jpg"
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 17:18:40 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2018-09-09 17:46:23 +00:00
|
|
|
|
name: "Tools",
|
|
|
|
|
cheatsheets: [
|
|
|
|
|
{
|
|
|
|
|
name: "Docker",
|
|
|
|
|
thumbnail: "docker.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Kubernetes",
|
|
|
|
|
thumbnail: "kubernetes.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "VIM",
|
|
|
|
|
thumbnail: "vim.jpg"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Xcode",
|
|
|
|
|
thumbnail: "xcode.jpg"
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 17:18:40 +00:00
|
|
|
|
}
|
|
|
|
|
]
|
2018-09-09 15:26:24 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
2018-09-09 15:06:11 +00:00
|
|
|
|
</script>
|
2018-09-09 14:50:38 +00:00
|
|
|
|
|
2018-09-09 15:06:11 +00:00
|
|
|
|
<!-- *************************************************************************
|
|
|
|
|
STYLE
|
|
|
|
|
************************************************************************* -->
|
2018-09-09 14:50:38 +00:00
|
|
|
|
|
2018-09-09 16:58:41 +00:00
|
|
|
|
<style lang="scss">
|
|
|
|
|
$c: ".c-index";
|
|
|
|
|
|
|
|
|
|
#{$c} {
|
|
|
|
|
#{$c}__logo {
|
|
|
|
|
width: 245px;
|
|
|
|
|
height: 165px;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#{$c}__description {
|
|
|
|
|
margin: 0;
|
|
|
|
|
margin: 40px 0;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
}
|
2018-09-09 17:18:40 +00:00
|
|
|
|
|
|
|
|
|
#{$c}__category {
|
2018-09-09 17:46:23 +00:00
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#{$c}__divider {
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#{$c}__cheatsheets {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-gap: 20px;
|
|
|
|
|
grid-template-columns: repeat(auto-fill, 270px);
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
2018-09-09 17:18:40 +00:00
|
|
|
|
}
|
2018-09-09 16:58:41 +00:00
|
|
|
|
}
|
|
|
|
|
</style>
|