diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-25 20:16:01 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-25 20:16:01 +0100 |
commit | 03b8bea02076f8eceddded0a096026125e5e7ca1 (patch) | |
tree | 07cba29bda34d4330e5e33f42fff7e277f027b49 | |
parent | 0df2c534d8615fd55994e9d27d9c2b81d4e87c20 (diff) | |
download | puszcza-03b8bea02076f8eceddded0a096026125e5e7ca1.tar.gz puszcza-03b8bea02076f8eceddded0a096026125e5e7ca1.zip |
Fix empty images
-rw-r--r-- | components/GoogleDriveLink.vue | 10 | ||||
-rw-r--r-- | components/Posts/PostLink.vue | 1 | ||||
-rw-r--r-- | pages/kronika/_year/_month/_day/_title/index.vue | 4 |
3 files changed, 9 insertions, 6 deletions
diff --git a/components/GoogleDriveLink.vue b/components/GoogleDriveLink.vue index c54c630..ada6eff 100644 --- a/components/GoogleDriveLink.vue +++ b/components/GoogleDriveLink.vue @@ -6,7 +6,7 @@ <div class="text"> <p v-html="text"></p> </div> - <a :href="link"> + <a :href="link" target="_blank" rel="noopener"> <plain-button text="Przejdź" /> </a> </div> @@ -21,13 +21,13 @@ export default { props: { text: { type: String, - required: true + required: true, }, link: { type: String, - required: true - } - } + required: true, + }, + }, } </script> diff --git a/components/Posts/PostLink.vue b/components/Posts/PostLink.vue index 5f7d5bf..3f80bae 100644 --- a/components/Posts/PostLink.vue +++ b/components/Posts/PostLink.vue @@ -86,5 +86,6 @@ export default { background-repeat: no-repeat; background-size: cover; background-position: center; + box-shadow: inset 0px 0px 100px rgba(0, 0, 0, 0.25); } </style> diff --git a/pages/kronika/_year/_month/_day/_title/index.vue b/pages/kronika/_year/_month/_day/_title/index.vue index ed9eab7..331ed7a 100644 --- a/pages/kronika/_year/_month/_day/_title/index.vue +++ b/pages/kronika/_year/_month/_day/_title/index.vue @@ -6,6 +6,7 @@ </div> <section v-else class="article"> <img + v-if="attributes.image" :src="attributes.image" :alt="attributes.title" :title="attributes.title" @@ -79,7 +80,8 @@ export default { } .article img { width: 100%; - border-radius: 5px; + /*border-radius: 5px;*/ + box-shadow: inset 0px 0px 100px rgba(0, 0, 0, 0.25); } .article h1 { |