Browse Source

Load images from assets

pull/1088/head
Hironsan 4 years ago
parent
commit
0fdb2f7dac
12 changed files with 8 additions and 17 deletions
  1. 7
      frontend/assets/README.md
  2. BIN
      frontend/assets/feature1.png
  3. BIN
      frontend/assets/feature2.png
  4. BIN
      frontend/assets/feature3.png
  5. BIN
      frontend/assets/ner_demo.png
  6. 2
      frontend/assets/style/app.styl
  7. 1
      frontend/assets/style/variables.styl
  8. BIN
      frontend/assets/vbanner.jpg
  9. 8
      frontend/components/organisms/layout/FeatureCards.vue
  10. 4
      frontend/components/organisms/layout/TheBottomBanner.vue
  11. 2
      frontend/components/organisms/layout/TheTopBanner.vue
  12. 1
      frontend/nuxt.config.js

7
frontend/assets/README.md

@ -1,7 +0,0 @@
# ASSETS
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

BIN
frontend/assets/feature1.png

Before After
Width: 952  |  Height: 366  |  Size: 12 KiB

BIN
frontend/assets/feature2.png

Before After
Width: 723  |  Height: 467  |  Size: 2.1 KiB

BIN
frontend/assets/feature3.png

Before After
Width: 687  |  Height: 413  |  Size: 46 KiB

BIN
frontend/assets/ner_demo.png

Before After
Width: 1582  |  Height: 711  |  Size: 172 KiB

2
frontend/assets/style/app.styl

@ -1,2 +0,0 @@
// Import Vuetify styling
@require '~vuetify/src/stylus/app.styl'

1
frontend/assets/style/variables.styl

@ -1 +0,0 @@
@require '~vuetify/src/stylus/settings/_variables.styl'

BIN
frontend/assets/vbanner.jpg

Before After
Width: 1920  |  Height: 1080  |  Size: 316 KiB

8
frontend/components/organisms/layout/FeatureCards.vue

@ -23,7 +23,7 @@
md4
>
<feature-card
:image-src="item.imageSrc"
:image-src="require(`~/assets/${item.imageSrc}`)"
:title="item.title"
:text="item.text"
/>
@ -47,17 +47,17 @@ export default {
return {
featureCards: [
{
imageSrc: '/images/feature3.png',
imageSrc: 'feature3.png',
title: this.$t('home.featuresTitle1'),
text: this.$t('home.featuresText1')
},
{
imageSrc: '/images/feature2.png',
imageSrc: 'feature2.png',
title: this.$t('home.featuresTitle2'),
text: this.$t('home.featuresText2')
},
{
imageSrc: '/images/feature1.png',
imageSrc: 'feature1.png',
title: this.$t('home.featuresTitle3'),
text: this.$t('home.featuresText3')
}

4
frontend/components/organisms/layout/TheBottomBanner.vue

@ -1,7 +1,7 @@
<template>
<section>
<v-parallax
src="/images/vbanner.jpg"
:src="require(`~/assets/vbanner.jpg`)"
height="400"
dark
>
@ -17,7 +17,7 @@
md7
>
<v-img
src="/images/ner_demo.png"
:src="require(`~/assets/ner_demo.png`)"
max-height="380"
contain
class="ma-5"

2
frontend/components/organisms/layout/TheTopBanner.vue

@ -1,7 +1,7 @@
<template>
<section>
<v-parallax
src="/images/vbanner.jpg"
:src="require(`~/assets/vbanner.jpg`)"
height="400"
dark
>

1
frontend/nuxt.config.js

@ -124,6 +124,7 @@ export default {
/*
** You can extend webpack config here
*/
publicPath: '/static/_nuxt/',
extend(config, ctx) {
config.module.rules.push({
test: /\.(txt|csv|conll|jsonl)$/i,

Loading…
Cancel
Save