1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-15 09:44:16 +00:00
awesome-cheatsheets/pages/index.vue

87 lines
1.8 KiB
Vue
Raw Normal View History

<!-- *************************************************************************
TEMPLATE
************************************************************************* -->
2018-09-09 14:50:38 +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"
)
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"
class="c-index__category"
2018-09-09 15:26:24 +00:00
)
base-divider(
:category="'0' + (index + 1) + '. ' + category.name"
)
</template>
2018-09-09 14:50:38 +00:00
<!-- *************************************************************************
SCRIPT
************************************************************************* -->
2018-09-09 14:50:38 +00:00
<script>
import BaseDivider from "@/components/BaseDivider";
2018-09-09 15:26:24 +00:00
export default {
components: {
BaseDivider
},
2018-09-09 15:26:24 +00:00
data() {
return {
categories: [
{
name: "Languages"
},
{
name: "Backend"
},
{
name: "Frontend"
},
{
name: "Databases"
},
{
name: "Tools"
}
]
2018-09-09 15:26:24 +00:00
};
}
};
</script>
2018-09-09 14:50:38 +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;
}
#{$c}__category {
margin-bottom: 30px;
}
2018-09-09 16:58:41 +00:00
}
</style>