From fb58e20f7a8e625ecd5ca560b0e7d247ae2c7cbc Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Mon, 6 Jul 2020 00:15:58 -0600 Subject: [PATCH] Make missing artist profile pictures a default & remove click for more info on popularity --- components/artist.html | 9 +++++++-- components/artist.js | 14 ++++++++------ components/icons.js | 7 +++++++ components/track.js | 2 +- css/artist.css | 15 ++++++++++++++- index.html | 1 + js/text_computation.js | 2 +- 7 files changed, 39 insertions(+), 11 deletions(-) diff --git a/components/artist.html b/components/artist.html index 0a09fd8..8272f7a 100644 --- a/components/artist.html +++ b/components/artist.html @@ -1,6 +1,11 @@
-
- +
+ +
+
+
+ +
diff --git a/components/artist.js b/components/artist.js index 7fcd7ca..722cc27 100644 --- a/components/artist.js +++ b/components/artist.js @@ -2,13 +2,15 @@ Vue.component( `artist`, { props: [ `artist` ], - data: function () { - return {}; - }, computed: {}, template: `
-
- +
+ +
+
+
+ +
@@ -20,5 +22,5 @@ Vue.component(
{{artist.popularity}}
{{artist.follower_count}}
` - } +} ) \ No newline at end of file diff --git a/components/icons.js b/components/icons.js index e69de29..a7c9751 100644 --- a/components/icons.js +++ b/components/icons.js @@ -0,0 +1,7 @@ +Vue.component( + `music-note`, + { + props: [ `colour` ], + template: `` + } +); \ No newline at end of file diff --git a/components/track.js b/components/track.js index ed2dd9f..3d14916 100644 --- a/components/track.js +++ b/components/track.js @@ -4,7 +4,7 @@ Vue.component( props: [ `track` ], data: function () { return { - popularity_tooltip: `Popularity.\nClick for more information.` + popularity_tooltip: `Popularity` } }, template: `
diff --git a/css/artist.css b/css/artist.css index ffa6d93..76cb5d9 100644 --- a/css/artist.css +++ b/css/artist.css @@ -17,11 +17,24 @@ div.artist { div.artist > div.profile_pic { text-align: center; } -div.artist > div.profile_pic img { +div.artist > div.profile_pic img { width: 200px; height: 200px; } +div.artist > div.profile_pic > div.missing-circle { + background-color: #3a3a3aaa; + border-radius: 100px; + display: flex; + height: 200px; + width: 200px; + justify-content: center; + align-items: center; + margin: 0 auto; + margin-bottom: 5px; +} + + div.artist > div.info { margin: 0; text-align: center; diff --git a/index.html b/index.html index 3357e72..d6d4df4 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ + diff --git a/js/text_computation.js b/js/text_computation.js index c62cc63..0b10959 100644 --- a/js/text_computation.js +++ b/js/text_computation.js @@ -13,7 +13,7 @@ function get_button_text () { else if (this.count > 50) { this.error.main = `Cannot get more than 50 ${this.type.toLowerCase()}`; return false; - } + }; this.error.main = ``; return this.type; }; \ No newline at end of file