66 lines
3.3 KiB
HTML
66 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>deemix</title>
|
|
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
|
|
<link rel="stylesheet" type="text/css" href="/public/css/animate.css">
|
|
<link rel="stylesheet" type="text/css" href="/public/css/material-icons.css"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0">
|
|
</head>
|
|
<body>
|
|
<aside id="sidebar">
|
|
<i class="material-icons side_icon">menu</i>
|
|
<i class="material-icons side_icon">home</i>
|
|
<i class="material-icons side_icon">bubble_chart</i>
|
|
<i class="material-icons side_icon">album</i>
|
|
<i class="material-icons side_icon">link</i>
|
|
<i class="material-icons side_icon">settings</i>
|
|
<i class="material-icons side_icon">info</i>
|
|
</aside>
|
|
<main id="main_content">
|
|
<div id="middle_section">
|
|
<header id="search"><input id="searchbar" type="text" name="searchbar" value="" placeholder="Search..."></header>
|
|
<section id="content"><div id="container">
|
|
|
|
<!-- ### Main Search Tab ### -->
|
|
<div id="main_search">
|
|
<template v-for="section in results.ORDER">
|
|
<div v-if="(section != 'TOP_RESULT' && results[section].data.length > 0) || (results[section].length > 0)" class="search_section">
|
|
<h1>{{ names[section] }}</h1>
|
|
<!-- Top result -->
|
|
<div v-if="section == 'TOP_RESULT'" class="top_result">
|
|
<img v-bind:src="(results[section][0].__TYPE__ == 'artist' ? 'https://e-cdns-images.dzcdn.net/images/artist/' + results[section][0].ART_PICTURE : results[section][0].__TYPE__ == 'album' ? 'https://e-cdns-images.dzcdn.net/images/cover/' + results[section][0].ALB_PICTURE : 'https://e-cdns-images.dzcdn.net/images/cover/') + '/156x156-000000-80-0-0.jpg'"
|
|
v-bind:class="results[section][0].__TYPE__ == 'artist' ? 'rounded' : ''"></img>
|
|
<div class="info_box">
|
|
<p class="title">{{ results[section][0].__TYPE__ == 'artist' ? results[section][0].ART_NAME : results[section][0].__TYPE__ == 'album' ? results[section][0].ALB_TITLE : '' }}</p>
|
|
<p class="subtitle">{{ results[section][0].__TYPE__ == 'artist' ? results[section][0].NB_FAN + ' fans' : results[section][0].__TYPE__ == 'album' ? 'by '+results[section][0].ART_NAME+' - '+results[section][0].NUMBER_TRACK+' tracks' : '' }}</p>
|
|
<span class="tag">{{ results[section][0].__TYPE__.charAt(0).toUpperCase() + results[section][0].__TYPE__.substring(1)}}</span>
|
|
</div>
|
|
</div>
|
|
<div v-if="section != 'TOP_RESULT'">
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
|
|
</div></section>
|
|
</div>
|
|
<div id="download_tab_container">
|
|
<div id="download_tab_bar">
|
|
<i id="show_download_tab" class="material-icons download_bar_icon">chevron_left</i>
|
|
<label>downloads</label>
|
|
</div>
|
|
<div id="download_tab">
|
|
<i id="hide_download_tab" class="material-icons download_bar_icon">chevron_right</i>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
<script type="text/javascript" src="/public/js/jquery-3.3.1.min.js"></script>
|
|
<script type="text/javascript" src="/public/js/vue.min.js"></script>
|
|
<script type="text/javascript" src="/public/js/utils.js"></script>
|
|
<script type="text/javascript" src="/public/js/frontend.js"></script>
|
|
</html>
|