-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve blog page and add scaffolding post
- Loading branch information
1 parent
6a6fe68
commit 4bfa70c
Showing
21 changed files
with
279 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import url('./global.css'); | ||
@import url('./animations.css'); | ||
@import url('./variables.css'); | ||
@import url('./posts.css'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
article > .nuxt-content h2 { | ||
margin-top: 30px; | ||
margin-bottom: 10px; | ||
font-size: 1.125rem; | ||
font-weight: bold; | ||
} | ||
|
||
article > .nuxt-content .vue { | ||
background-color: theme('colors.green-main.400'); | ||
color: white; | ||
padding: 0 3px; | ||
} | ||
|
||
article > .nuxt-content .code { | ||
background-color: theme('colors.blue-main.750'); | ||
color: theme('colors.gray-main.950'); | ||
padding: 0 3px; | ||
} | ||
|
||
article > .nuxt-content a { | ||
/* TODO: integrate tailwind */ | ||
text-decoration: none; | ||
color: #1f8ed5; | ||
font-weight: bold; | ||
opacity: 1; | ||
border-bottom: solid 1px transparent; | ||
-webkit-transition: opacity 0.2s ease-out, border-bottom-color 0.4s ease-out; | ||
-moz-transition: opacity 0.2s ease-out, border-bottom-color 0.4s ease-out; | ||
-ms-transition: opacity 0.2s ease-out, border-bottom-color 0.4s ease-out; | ||
-o-transition: opacity 0.2s ease-out, border-bottom-color 0.4s ease-out; | ||
transition: opacity 0.2s ease-out, border-bottom-color 0.4s ease-out; | ||
} | ||
|
||
article > .nuxt-content a:hover { | ||
/* TODO: integrate tailwind */ | ||
opacity: 0.8; | ||
border-bottom: solid 1px #1f8ed5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<span class="image"> | ||
<img v-bind="$attrs" loading="lazy" /> | ||
</span> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'CustomImage', | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
/* TODO: integrate tailwind */ | ||
.image { | ||
display: flex; | ||
justify-content: center; | ||
background-color: transparent; | ||
width: 100%; | ||
height: 100%; | ||
margin: 0 auto; | ||
margin-top: 20px; | ||
margin-bottom: 30px; | ||
img { | ||
border-radius: 5px; | ||
max-width: 100%; | ||
box-shadow: rgba(0, 0, 0, 0.15) 0 32px 32px 0, | ||
rgba(0, 0, 0, 0.15) 0 16px 16px 0, rgba(0, 0, 0, 0.15) 0 8px 8px 0, | ||
rgba(0, 0, 0, 0.15) 0 4px 4px 0; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<template> | ||
<div class="flex justify-center mt-8"> | ||
<a | ||
class="coffee-button" | ||
target="_blank" | ||
href="https://www.buymeacoffee.com/VD4nJSu" | ||
> | ||
<img | ||
src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" | ||
alt="Invítame a un café" | ||
/> | ||
<span class="coffee-text"> | ||
<!-- TODO: integrate translations --> | ||
Invítame a un café | ||
</span> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'CoffeeWidget', | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
// TODO: integrate tailwind | ||
.coffee-button { | ||
line-height: 35px; | ||
height: 51px; | ||
min-width: 217px; | ||
text-decoration: none; | ||
display: inline-flex; | ||
color: #fff; | ||
background-color: #4fc08d; | ||
border-radius: 5px; | ||
border: 1px solid transparent; | ||
padding: 7px 10px 7px 10px; | ||
font-size: 28px; | ||
letter-spacing: 0.6px; | ||
box-shadow: 0 1px 2px rgba(190, 190, 190, 0.5); | ||
-webkit-box-shadow: 0 1px 2px 2px rgba(190, 190, 190, 0.5); | ||
margin: 0 auto; | ||
font-family: 'Cookie', cursive; | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
-o-transition: 0.3s all linear; | ||
-webkit-transition: 0.3s all linear; | ||
-moz-transition: 0.3s all linear; | ||
-ms-transition: 0.3s all linear; | ||
transition: 0.3s all linear; | ||
img { | ||
height: 34px; | ||
width: 35px; | ||
margin-bottom: 1px; | ||
box-shadow: none; | ||
border: none; | ||
vertical-align: middle; | ||
} | ||
&:hover, | ||
&:active, | ||
&:focus { | ||
-webkit-box-shadow: 0 1px 2px 2px rgba(190, 190, 190, 0.5); | ||
text-decoration: none; | ||
box-shadow: 0 1px 2px 2px rgba(190, 190, 190, 0.5); | ||
opacity: 0.85; | ||
color: #fff; | ||
} | ||
} | ||
.coffee-text { | ||
margin-left: 15px; | ||
font-size: 28px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 'Añadir i18n en una aplicación Vue' | ||
description: 'Cómo traducir tus aplicaciones con Vue e I18n' | ||
date: 2019-02-01 | ||
timeToRead: 5 | ||
--- | ||
|
||
# Hello test 2 | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam viverra tincidunt ligula in congue. Cras nec sapien a risus varius dictum. Sed rhoncus convallis sapien quis varius. In justo leo, congue et convallis sed, feugiat et orci. Quisque quam elit, venenatis non diam eget, hendrerit posuere ex. Nam condimentum elit aliquam nisl varius, quis luctus massa ullamcorper. Curabitur ac pellentesque arcu. Nulla turpis libero, condimentum vel tempor non, sagittis vitae sem. Etiam aliquet eu nisl vel dictum. Phasellus vitae ornare purus, ut euismod quam. In eget tristique lacus. Duis lectus sem, pretium sit amet mollis vitae, sagittis eu augue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: 'Desplegar una aplicación hecha con Vue en GithubPages' | ||
description: 'Tutorial sobre cómo desplegar una aplicación Vue en github pages' | ||
date: 2018-11-01 | ||
timeToRead: 2 | ||
--- | ||
|
||
# Hello test 2 | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam viverra tincidunt ligula in congue. Cras nec sapien a risus varius dictum. Sed rhoncus convallis sapien quis varius. In justo leo, congue et convallis sed, feugiat et orci. Quisque quam elit, venenatis non diam eget, hendrerit posuere ex. Nam condimentum elit aliquam nisl varius, quis luctus massa ullamcorper. Curabitur ac pellentesque arcu. Nulla turpis libero, condimentum vel tempor non, sagittis vitae sem. Etiam aliquet eu nisl vel dictum. Phasellus vitae ornare purus, ut euismod quam. In eget tristique lacus. Duis lectus sem, pretium sit amet mollis vitae, sagittis eu augue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Vue from 'vue' | ||
import CustomImage from '@/components/blog/CustomImage.vue' | ||
|
||
Vue.component('custom-image', CustomImage) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
static/images/posts/scaffolding-vue/scaffolding-global-components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.