Skip to content

Commit

Permalink
commit here for reference, two rows for building pic
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Sep 9, 2023
1 parent b382ddb commit 0653ddf
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/components/extras/heropicture.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<template>
<el-row class="stage">
<el-col :span="24" class="main">
<div element-loading-background="rgba(0, 0, 0, 0.3)" class="background" ref="main">
<div class="title">{{ name }}</div>
<div class="subtitle">{{ description }}</div>
</div>
<div
v-for="(media, index) in this.media"
:class="'slantImage leftEnd'"
:style="`background-image:url(https://osu-energy-images.s3-us-west-2.amazonaws.com/thumbnails/${media}); width:calc(100%); height:100px`"
:key="media"
></div>
</el-col>
</el-row>
</template>
Expand All @@ -22,6 +24,11 @@ export default {
// imageString is a string containing the image filename in the S3 bucket. ie: mcnary_2.jpg
media: function ( imageString ) {
this.$refs.main.style.backgroundImage = ''
console.log( imageString )
if ( imageString.length > 0 ) {
console.log( this.media )
imageString = imageString[0]
}
if ( imageString ) {
this.$refs.main.style.backgroundImage =
'linear-gradient(to bottom right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2)), url("https://osu-energy-images.s3-us-west-2.amazonaws.com/' +
Expand Down

0 comments on commit 0653ddf

Please sign in to comment.