Skip to content

Commit

Permalink
add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarcosfer committed Jul 19, 2022
1 parent 3d16cc3 commit 154ff10
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 5 deletions.
5 changes: 5 additions & 0 deletions examples/demos/discogs-autotagging/views/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/demos/discogs-autotagging/views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@tensorflow/tfjs": "^3.11.0",
"bootstrap": "^4.6.1",
"d3": "^7.1.1",
"d3-cloud": "^1.2.5",
"essentia.js": "^0.1.3",
Expand Down
15 changes: 10 additions & 5 deletions examples/demos/discogs-autotagging/views/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<template>
<main>
<YTStream></YTStream>
<PredictionsDisplay></PredictionsDisplay>
</main>
<div>
<main>
<YTStream></YTStream>
<PredictionsDisplay></PredictionsDisplay>
</main>
<DemosFooter></DemosFooter>
</div>
</template>

<script>
import YTStream from './components/YTStream.vue';
import PredictionsDisplay from './components/PredictionsDisplay.vue';
import DemosFooter from './components/DemosFooter.vue';
export default {
components: { YTStream, PredictionsDisplay }
components: { YTStream, PredictionsDisplay, DemosFooter }
}
</script>

Expand Down Expand Up @@ -45,5 +49,6 @@ main {
body {
background-color: rgb(var(--color-bg));
color: white;
margin: 0;
}
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
$primary: #E4454A;
$dark: rgb(25, 25, 25);
$carousel-control-color: #000;

@import 'bootstrap/scss/bootstrap.scss';

body {
overflow: hidden;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<template>
<footer id="footer-wrapper" class="d-flex justify-content-around text-muted font-weight-light container-fluid">
<div id="mtg-logo" class="d-flex align-items-center footer-block">
<a id="mtg-link" href="https://www.upf.edu/web/mtg/" target="_blank">
<mtg-logo></mtg-logo>
</a>
</div>
<div id="essentiajs-logo" class="d-flex align-items-center footer-block">
<a id="essentiajs-link" href="https://mtg.github.io/essentia.js/" target="_blank">
<essentiajs-logo></essentiajs-logo>
</a>
</div>
<div id="essentia-models" class="d-flex flex-column justify-content-center align-items-center footer-block"
@mouseover="essentiaModelsHovered = true" @mouseleave="essentiaModelsHovered = false">
<p>Made with</p>
<a href="https://essentia.upf.edu/models.html#discogs-effnet" target="_blank">
<essentia-logo :isHovered="essentiaModelsHovered"></essentia-logo>
</a>
<p :style="essentiaModelsHovered ? {fontWeight: 'bold', color: '#afafaf'} : {}">Models</p>
</div>
</footer>
</template>

<script>
import MtgLogo from './MTGLogo.vue';
import EssentiajsLogo from './EssentiajsLogo.vue';
import EssentiaLogo from './EssentiaLogo.vue';
export default {
components: { MtgLogo, EssentiajsLogo, EssentiaLogo },
data () {
return {
essentiaModelsHovered: false
}
}
}
</script>

<style lang="scss" scoped>
@import '../assets/styles/globals.scss';
#footer-wrapper {
position: absolute;
bottom: 0vh;
background-color: $dark;
z-index: 10;
}
.footer-block {
margin-bottom: 0.5rem;
}
.footer-block p {
margin: auto!important;
}
.footer-block a {
margin: auto 0;
}
.footer-block img {
margin-left: 2rem;
border-radius: 5px;
}
#essentiajs-link {
height: 2.5rem;
margin-left: .5rem;
}
#mtg-link {
height: 3.5rem;
}
#essentia-models {
margin-top: .5rem;
&:hover {
cursor: pointer;
}
}
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<template>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="211.202px" height="40.708px" viewBox="0 28 211.202 20.708" enable-background="new 0 0 211.202 74.708"
xml:space="preserve">
<path :fill="colors.ssentia" d="M94.359,49.474c-0.324,0-0.578-0.092-0.763-0.277c-0.186-0.185-0.277-0.439-0.277-0.764V26.921
c0-0.323,0.092-0.577,0.277-0.763c0.185-0.185,0.439-0.278,0.763-0.278h10.004c0.324,0,0.578,0.093,0.764,0.278
c0.185,0.186,0.277,0.439,0.277,0.763v1.042c0,0.324-0.093,0.578-0.277,0.763c-0.186,0.186-0.44,0.278-0.764,0.278H94.07
c-0.231,0,2.544,0.116,2.544,0.347v6.245c0,0.232-2.775,0.348-2.544,0.348h9.599c0.324,0,0.579,0.093,0.764,0.277
c0.186,0.186,0.278,0.439,0.278,0.763v1.041c0,0.324-0.093,0.579-0.278,0.763c-0.185,0.186-0.439,0.277-0.764,0.277H94.07
c-0.231,0,2.544,0.117,2.544,0.347v6.592c0,0.232-2.775,0.347-2.544,0.347h10.987c0.324,0,0.578,0.093,0.764,0.278
c0.185,0.185,0.277,0.439,0.277,0.763v1.04c0,0.325-0.093,0.579-0.277,0.764c-0.186,0.185-0.44,0.277-0.764,0.277H94.359z"/>
<path :fill="colors.ssentia" d="M52.974,45.067c0.231-0.231,0.479-0.335,0.746-0.312c0.266,0.023,0.503,0.127,0.711,0.312
c0.185,0.162,0.393,0.342,0.625,0.538c0.23,0.196,0.497,0.376,0.797,0.537c0.3,0.162,0.647,0.295,1.041,0.399
c0.394,0.104,0.845,0.156,1.353,0.156c1.11,0,2.024-0.307,2.741-0.92c0.716-0.613,1.075-1.382,1.075-2.307
c0-1.042-0.318-1.875-0.954-2.499c-0.637-0.625-1.648-1.272-3.036-1.943c-0.88-0.417-1.672-0.855-2.377-1.318
c-0.706-0.462-1.312-0.983-1.821-1.561c-0.509-0.579-0.897-1.232-1.162-1.96c-0.267-0.729-0.399-1.567-0.399-2.516
c0-0.786,0.149-1.549,0.451-2.29c0.3-0.74,0.74-1.394,1.318-1.96c0.579-0.567,1.279-1.023,2.099-1.371
c0.822-0.347,1.741-0.521,2.759-0.521c1.319,0,2.446,0.255,3.383,0.763c0.937,0.51,1.683,1.042,2.237,1.596
c0.486,0.486,0.486,0.972,0,1.458l-0.797,0.833c-0.231,0.231-0.451,0.353-0.659,0.365c-0.208,0.011-0.451-0.11-0.729-0.365
c-0.3-0.278-0.764-0.601-1.388-0.972c-0.625-0.37-1.307-0.555-2.047-0.555c-0.509,0-0.978,0.087-1.405,0.26
c-0.429,0.173-0.798,0.399-1.111,0.677c-0.312,0.277-0.555,0.596-0.729,0.955c-0.173,0.358-0.26,0.734-0.26,1.127
c0,0.509,0.075,0.96,0.226,1.354c0.15,0.394,0.382,0.758,0.694,1.093c0.312,0.336,0.717,0.654,1.214,0.955
c0.498,0.3,1.105,0.601,1.822,0.902c0.948,0.417,1.792,0.856,2.533,1.318c0.74,0.463,1.364,0.977,1.873,1.544
s0.897,1.214,1.163,1.943s0.398,1.567,0.398,2.516c0,0.879-0.185,1.712-0.555,2.498c-0.37,0.786-0.878,1.475-1.526,2.064
c-0.648,0.59-1.406,1.064-2.273,1.423c-0.867,0.357-1.787,0.538-2.758,0.538c-1.573,0-2.805-0.238-3.695-0.711
s-1.671-1.081-2.342-1.822c-0.186-0.184-0.29-0.416-0.312-0.694c-0.023-0.277,0.081-0.532,0.312-0.763L52.974,45.067z"/>
<path :fill="colors.ssentia" d="M73.038,45.067c0.23-0.231,0.479-0.335,0.745-0.312c0.267,0.023,0.503,0.127,0.711,0.312
c0.185,0.162,0.394,0.342,0.625,0.538c0.23,0.196,0.497,0.376,0.797,0.537c0.301,0.162,0.647,0.295,1.041,0.399
c0.394,0.104,0.845,0.156,1.354,0.156c1.11,0,2.024-0.307,2.741-0.92c0.717-0.613,1.075-1.382,1.075-2.307
c0-1.042-0.318-1.875-0.954-2.499c-0.637-0.625-1.648-1.272-3.036-1.943c-0.88-0.417-1.672-0.855-2.377-1.318
c-0.706-0.462-1.313-0.983-1.821-1.561c-0.51-0.579-0.897-1.232-1.163-1.96c-0.266-0.729-0.398-1.567-0.398-2.516
c0-0.786,0.149-1.549,0.451-2.29c0.3-0.74,0.74-1.394,1.318-1.96s1.278-1.023,2.1-1.371c0.821-0.347,1.74-0.521,2.759-0.521
c1.318,0,2.446,0.255,3.382,0.763c0.937,0.51,1.683,1.042,2.238,1.596c0.486,0.486,0.486,0.972,0,1.458l-0.798,0.833
c-0.231,0.231-0.451,0.353-0.66,0.365c-0.208,0.011-0.451-0.11-0.729-0.365c-0.3-0.278-0.764-0.601-1.388-0.972
c-0.625-0.37-1.307-0.555-2.046-0.555c-0.51,0-0.978,0.087-1.406,0.26c-0.429,0.173-0.798,0.399-1.11,0.677
c-0.312,0.277-0.555,0.596-0.729,0.955c-0.173,0.358-0.261,0.734-0.261,1.127c0,0.509,0.075,0.96,0.226,1.354
c0.15,0.394,0.382,0.758,0.694,1.093c0.312,0.336,0.716,0.654,1.214,0.955c0.498,0.3,1.104,0.601,1.822,0.902
c0.948,0.417,1.792,0.856,2.533,1.318c0.74,0.463,1.364,0.977,1.874,1.544c0.508,0.567,0.896,1.214,1.162,1.943
c0.266,0.729,0.399,1.567,0.399,2.516c0,0.879-0.186,1.712-0.556,2.498c-0.37,0.786-0.879,1.475-1.526,2.064
c-0.648,0.59-1.406,1.064-2.273,1.423c-0.867,0.357-1.787,0.538-2.758,0.538c-1.573,0-2.805-0.238-3.696-0.711
c-0.89-0.474-1.671-1.081-2.341-1.822c-0.185-0.184-0.29-0.416-0.312-0.694c-0.023-0.277,0.081-0.532,0.312-0.763L73.038,45.067z"/>
<path :fill="colors.ssentia" d="M128.044,49.474c-0.324,0-0.584-0.087-0.781-0.261c-0.197-0.173-0.399-0.433-0.607-0.781l-8.812-15.439
c-0.116-0.185-0.238-0.254-0.365-0.208s-0.191,0.162-0.191,0.346v15.301c0,0.325-0.092,0.579-0.277,0.764
c-0.186,0.185-0.44,0.277-0.763,0.277h-1.215c-0.324,0-0.578-0.092-0.763-0.277c-0.186-0.185-0.277-0.439-0.277-0.764V26.921
c0-0.323,0.091-0.577,0.277-0.763c0.185-0.185,0.439-0.278,0.763-0.278h1.353c0.348,0,0.636,0.064,0.868,0.191
s0.439,0.353,0.625,0.676l8.431,14.677c0.091,0.138,0.202,0.197,0.33,0.173c0.126-0.022,0.19-0.126,0.19-0.312V26.921
c0-0.323,0.092-0.577,0.277-0.763c0.185-0.185,0.439-0.278,0.763-0.278h1.215c0.323,0,0.578,0.093,0.763,0.278
c0.185,0.186,0.277,0.439,0.277,0.763v21.511c0,0.325-0.093,0.579-0.277,0.764c-0.186,0.185-0.44,0.277-0.763,0.277H128.044z"/>
<polygon :fill="colors.e" points="24.174,50.068 24.174,44.121 27.041,44.121 27.041,47.053 41.542,47.053 41.542,44.121
44.354,44.121 44.354,50.068 "/>
<polygon :fill="colors.e" points="33.784,40.589 33.062,38.991 28.987,38.991 28.987,36.201 33.062,36.201 33.784,34.604
35.377,34.604 35.377,40.589 "/>
<rect x="24.174" y="36.285" :fill="colors.e" width="2.774" height="2.623"/>
<polygon :fill="colors.e" points="41.542,31.239 41.542,28.062 27.041,28.062 27.041,31.239 24.174,31.239 24.174,25.295
44.354,25.295 44.354,31.239 "/>
<path :fill="colors.ssentia" d="M144.624,49.543c-0.322,0-0.576-0.092-0.761-0.277c-0.185-0.185-0.277-0.438-0.277-0.763V29.45
c0-0.23-0.116-0.347-0.346-0.347h-5.196c-0.325,0-0.578-0.092-0.762-0.277c-0.185-0.185-0.277-0.438-0.277-0.762v-1.04
c0-0.323,0.092-0.577,0.277-0.762c0.184-0.185,0.438-0.277,0.762-0.277h14.377c0.323,0,0.577,0.092,0.762,0.277
c0.185,0.186,0.277,0.439,0.277,0.762v1.04c0,0.323-0.093,0.577-0.277,0.762c-0.185,0.186-0.439,0.277-0.762,0.277h-5.196
c-0.231,0-0.347,0.116-0.347,0.347v19.053c0,0.324-0.092,0.578-0.276,0.763c-0.186,0.185-0.44,0.277-0.762,0.277H144.624z"/>
<path :fill="colors.ssentia" d="M161.084,49.42c-0.323,0-0.577-0.092-0.762-0.277c-0.186-0.185-0.277-0.438-0.277-0.763V26.902
c0-0.323,0.092-0.577,0.277-0.762c0.185-0.185,0.438-0.277,0.762-0.277h1.213c0.323,0,0.577,0.092,0.762,0.277
c0.185,0.185,0.277,0.439,0.277,0.762V48.38c0,0.325-0.093,0.578-0.277,0.763c-0.185,0.185-0.439,0.277-0.762,0.277H161.084z"/>
<path :fill="colors.ssentia" d="M186.95,49.42c-0.23,0.185-0.49,0.265-0.78,0.242c-0.288-0.023-0.56-0.104-0.814-0.242l-10.081-5.89
c-0.163-0.092-0.307-0.092-0.433,0c-0.127,0.092-0.214,0.208-0.26,0.347l-1.42,4.711c-0.162,0.555-0.554,0.832-1.178,0.832h-1.698
c-0.67,0-0.913-0.323-0.728-0.97l6.928-21.652c0.116-0.369,0.272-0.618,0.468-0.745c0.196-0.126,0.455-0.19,0.779-0.19h2.425
c0.323,0,0.583,0.063,0.779,0.19c0.196,0.127,0.352,0.376,0.468,0.745l6.617,20.716c0.161,0.532,0.069,0.947-0.278,1.247
L186.95,49.42z M179.295,30.263c-0.069-0.254-0.186-0.381-0.347-0.381c-0.163,0-0.277,0.127-0.346,0.381l-2.737,9.146
c-0.093,0.3-0.104,0.526-0.036,0.676c0.07,0.15,0.185,0.271,0.347,0.364l6.513,3.811c0.254,0.162,0.439,0.18,0.554,0.052
c0.116-0.127,0.15-0.271,0.104-0.433L179.295,30.263z"/>
</svg>
</template>

<script>
export default {
props: ['isHovered'],
computed: {
colors () {
return {
e: this.isHovered ? "#E4454A" : "#757575",
ssentia: this.isHovered ? "#afafaf" : "#757575"
}
}
}
}
</script>

<style scoped>
</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<svg width="230" height="50" viewBox="0 0 310 50" fill="none" xmlns="http://www.w3.org/2000/svg" @mouseover="isHovered = true" @mouseleave="isHovered = false">
<path :fill="isHovered ? '#afafaf' : colors.main" d="M25.8479 28.0014C25.8479 36.9629 31.4122 42.6443 41.135 42.6443C44.9422 42.6443 48.5736 42 51.5022 40.8286L50.3308 34.7371C47.8708 35.5571 45.4693 35.9671 42.4236 35.9671C38.265 35.9671 34.6336 34.21 34.3408 30.52H52.7908C52.9079 29.8757 53.1422 28.5871 53.1422 27.0057C53.1422 19.9186 49.5693 12.7143 40.315 12.7143C30.3579 12.7143 25.8479 20.7386 25.8479 28.0014ZM34.2822 24.4286C34.5165 22.0857 36.0393 18.63 39.7879 18.63C43.8293 18.63 44.825 22.32 44.825 24.4286H34.2822ZM56.7581 40.5943C58.8666 41.7657 62.2638 42.6443 66.0123 42.6443C74.2123 42.6443 78.4295 38.6614 78.4295 33.3314C78.3709 29.1143 76.0866 26.3614 70.6395 24.4871C67.1252 23.2571 66.0123 22.5543 66.0123 21.2071C66.0123 19.8014 67.2423 18.8643 69.4095 18.8643C71.8695 18.8643 74.3295 19.86 75.6181 20.5043L77.1995 14.3543C75.4423 13.4757 72.4552 12.7143 69.1166 12.7143C61.9709 12.7143 57.4609 16.6971 57.4609 22.0857C57.4609 25.4829 59.6866 28.7043 65.6609 30.6957C68.8823 31.8086 69.8195 32.5114 69.8195 33.9757C69.8195 35.4986 68.6481 36.3771 65.9538 36.3771C63.3766 36.3771 59.9795 35.2057 58.3395 34.21L56.7581 40.5943ZM82.2229 40.5943C84.3315 41.7657 87.7286 42.6443 91.4772 42.6443C99.6772 42.6443 103.894 38.6614 103.894 33.3314C103.836 29.1143 101.551 26.3614 96.1043 24.4871C92.59 23.2571 91.4772 22.5543 91.4772 21.2071C91.4772 19.8014 92.7072 18.8643 94.8743 18.8643C97.3343 18.8643 99.7943 19.86 101.083 20.5043L102.664 14.3543C100.907 13.4757 97.92 12.7143 94.5815 12.7143C87.4358 12.7143 82.9258 16.6971 82.9258 22.0857C82.9258 25.4829 85.1515 28.7043 91.1258 30.6957C94.3472 31.8086 95.2843 32.5114 95.2843 33.9757C95.2843 35.4986 94.1129 36.3771 91.4186 36.3771C88.8415 36.3771 85.4443 35.2057 83.8043 34.21L82.2229 40.5943ZM107.688 28.0014C107.688 36.9629 113.252 42.6443 122.975 42.6443C126.782 42.6443 130.413 42 133.342 40.8286L132.171 34.7371C129.711 35.5571 127.309 35.9671 124.263 35.9671C120.105 35.9671 116.473 34.21 116.181 30.52H134.631C134.748 29.8757 134.982 28.5871 134.982 27.0057C134.982 19.9186 131.409 12.7143 122.155 12.7143C112.198 12.7143 107.688 20.7386 107.688 28.0014ZM116.122 24.4286C116.356 22.0857 117.879 18.63 121.628 18.63C125.669 18.63 126.665 22.32 126.665 24.4286H116.122ZM140.179 42H149.141V25.4829C149.141 24.6629 149.258 23.7843 149.492 23.2571C150.078 21.6171 151.542 19.9186 154.002 19.9186C157.165 19.9186 158.512 22.4371 158.512 26.1271V42H167.415V25.0143C167.415 16.58 163.022 12.7143 157.165 12.7143C152.362 12.7143 149.492 15.4671 148.321 17.3414H148.145L147.735 13.3586H139.945C140.062 15.9357 140.179 18.9229 140.179 22.4957V42ZM177.903 40.1257C179.367 41.6486 181.768 42.6443 184.697 42.6443C187.157 42.6443 189.265 42.2343 190.437 41.8243L190.378 35.03C189.734 35.2057 188.855 35.3229 187.684 35.3229C185.048 35.3229 184.228 33.7414 184.228 30.2857V19.9186H190.613V13.3586H184.228V5.15857L175.501 7.20857V13.3586H171.635V19.9186H175.501V31.6329C175.501 35.7329 176.263 38.4271 177.903 40.1257ZM195.673 42H204.635V13.3586H195.673V42ZM200.066 9.84429C203.053 9.84429 204.928 7.85286 204.869 5.39286C204.869 2.81571 203.053 0.882859 200.183 0.882859C197.372 0.882859 195.498 2.81571 195.498 5.39286C195.498 7.85286 197.255 9.84429 200.066 9.84429ZM209.873 33.9171C209.873 38.4857 213.329 42.6443 219.128 42.6443C222.525 42.6443 225.453 41.4143 227.328 39.1886H227.503L228.031 42H236.055C235.762 40.36 235.586 37.7829 235.586 35.03V25.0729C235.586 18.3371 232.599 12.7143 223.052 12.7143C217.839 12.7143 213.915 14.12 211.923 15.2914L213.563 20.9729C215.496 19.86 218.483 18.8057 221.412 18.8057C225.863 18.8057 226.683 20.9729 226.683 22.4957V22.9057C216.551 22.9057 209.873 26.42 209.873 33.9171ZM218.659 32.98C218.659 29.5829 222.232 28.47 226.976 28.4114V31.6329C226.976 32.1014 226.976 32.6871 226.801 33.0971C226.215 34.9129 224.399 36.3771 222.232 36.3771C220.182 36.3771 218.659 35.2643 218.659 32.98Z"/>
<path :fill="isHovered ? colors.red : colors.main " d="M241.321 37.2557C241.321 40.4186 243.488 42.6443 246.534 42.6443C249.697 42.6443 251.805 40.4186 251.805 37.2557C251.805 33.9757 249.638 31.8086 246.593 31.8086C243.488 31.8086 241.321 34.0343 241.321 37.2557Z"/>
<path :fill="isHovered ? colors.red : colors.main " d="M257.016 41.7071C258.831 42.2929 261.526 42.6443 263.576 42.6443C272.244 42.6443 277.633 38.6614 277.633 27.5329V2.52286H268.73V27.3571C268.73 33.5071 266.329 35.2057 262.639 35.2057C260.881 35.2057 259.241 34.9129 258.011 34.5029L257.016 41.7071ZM283.579 40.1843C285.805 41.4143 290.256 42.6443 294.766 42.6443C305.661 42.6443 310.639 36.9629 310.639 30.3443C310.639 24.78 307.418 21.1486 300.448 18.5714C295.352 16.6386 293.126 15.4671 293.126 13.0071C293.126 11.0157 295.001 9.2 298.866 9.2C302.732 9.2 305.543 10.3714 307.125 11.0743L309.058 3.87C306.773 2.81571 303.552 1.93714 298.983 1.93714C289.729 1.93714 284.048 7.03286 284.048 13.7686C284.048 19.5671 288.382 23.0814 295.001 25.4829C299.686 27.1229 301.561 28.5871 301.561 30.9886C301.561 33.5657 299.393 35.2643 295.293 35.2643C291.486 35.2643 287.738 34.0343 285.395 32.8043L283.579 40.1843Z"/>
</svg>
</template>

<script>
export default {
data () {
return {
colors: {
red: "#E4454A",
main: "#757575"
},
isHovered: false
}
}
}
</script>

<style scoped>
</style>
Loading

0 comments on commit 154ff10

Please sign in to comment.