319 lines
7.1 KiB
Vue
319 lines
7.1 KiB
Vue
<script setup lang="ts">
|
|
|
|
</script>
|
|
<template>
|
|
<div
|
|
class="podcast__wrapper overflow-hidden"
|
|
>
|
|
<div
|
|
class="podcast"
|
|
>
|
|
<p
|
|
class="podcast__content__time"
|
|
>
|
|
Ngày tạo podcast
|
|
</p>
|
|
<figure><img src="http://picsum.photos/1024/600?random=1'" alt="Ảnh podcast" title="Ảnh podcast" /></figure>
|
|
<div
|
|
class="podcast__content"
|
|
>
|
|
<p
|
|
class="podcast__content__time"
|
|
>
|
|
Ngày tạo podcast
|
|
</p>
|
|
<h1 class="podcast__content__title">Tiêu đề podcast</h1>
|
|
<p
|
|
class="podcast__content__text"
|
|
>
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
</div>
|
|
|
|
<ul
|
|
class="buttons"
|
|
>
|
|
<li><Icon name="mdi:bookmark-outline" /></li>
|
|
<li><Icon name="material-symbols:mode-comment-outline" /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="playlist">
|
|
<div class="playlist__time">
|
|
<span>5:00</span>
|
|
<span>10:00</span>
|
|
</div>
|
|
<div class="playlist__buttons">
|
|
<div class="playlist__buttons__left">
|
|
<div
|
|
class="button__prev"
|
|
>
|
|
<Icon name="material-symbols:skip-previous" />
|
|
</div>
|
|
<div
|
|
class="sound"
|
|
>
|
|
<Icon name="material-symbols:volume-mute"></Icon>
|
|
<div></div>
|
|
<Icon name="material-symbols:volume-up"></Icon>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="play">
|
|
<Icon name="fluent:skip-back-10-48-filled" />
|
|
<Icon name="material-symbols:play-arrow" class="button" />
|
|
<Icon name="fluent:skip-forward-10-48-filled" />
|
|
</div>
|
|
|
|
<div class="playlist__buttons__right">
|
|
<div
|
|
class="button__next"
|
|
>
|
|
<Icon name="material-symbols:skip-next" />
|
|
</div>
|
|
<div
|
|
class="speed"
|
|
>
|
|
<span>Tốc độ phát: </span>
|
|
<strong>1x</strong>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<p
|
|
class="podcast__content__text"
|
|
>
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
</div>
|
|
</template>
|
|
<style lang="scss">
|
|
:root {
|
|
--podcast-wrapper-padding: 40;
|
|
}
|
|
|
|
.podcast-padding-tablet {
|
|
--podcast-wrapper-padding: 30;
|
|
}
|
|
|
|
.podcast-padding-smartphone {
|
|
--podcast-wrapper-padding: 20;
|
|
}
|
|
|
|
.podcast__wrapper {
|
|
padding: calc(var(--podcast-wrapper-padding) * 1px);
|
|
border: 1px solid #eeeeee;
|
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
|
|
.podcast {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
|
|
& > figure > img {
|
|
width: 150px;
|
|
height: 150px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
cursor: pointer;
|
|
}
|
|
|
|
&__content__text {
|
|
font-size: 18px;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
|
|
&__content {
|
|
flex: 1;
|
|
color: #222222;
|
|
margin: 0;
|
|
|
|
&__time {
|
|
color: #9f9f9f;
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
&__title {
|
|
font-size: 24px;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
text-align: center;
|
|
&__time {
|
|
display: none;
|
|
}
|
|
|
|
&__text {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
& > .buttons {
|
|
display: flex;
|
|
align-self: start;
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
& li {
|
|
list-style: none;
|
|
width: 36px;
|
|
height: 36px;
|
|
background-color: white;
|
|
border: 1px solid rgb(229, 231, 235);
|
|
cursor: pointer;
|
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
border-radius: 50px;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
background-color: #e6f4ff;
|
|
color: #3c7abc;
|
|
}
|
|
|
|
& svg {
|
|
font-size: 18px;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translateY(-50%) translateX(-55%);
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
flex-direction: column;
|
|
|
|
& .buttons {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.playlist {
|
|
padding: 8px;
|
|
|
|
&__time {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-top: 12px;
|
|
position: relative;
|
|
|
|
&::after,
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
height: 4px;
|
|
top: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&::after {
|
|
width: 100%;
|
|
background-color: #e6f4ff;
|
|
|
|
z-index: 1;
|
|
}
|
|
|
|
&::before {
|
|
width: 50%;
|
|
background-color: #3c7abc;
|
|
z-index: 2;
|
|
}
|
|
& span {
|
|
font-size: 16px;
|
|
color: #3c7abc;
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
&__buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
& .button__prev,
|
|
& .button__next {
|
|
font-size: 28px;
|
|
color: #3c7abc;
|
|
}
|
|
& .sound {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-left: -10px;
|
|
padding: 0 10px;
|
|
height: 36px;
|
|
color: #3c7abc;
|
|
border-radius: 8px;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
&:hover {
|
|
background-color: #e6f4ff;
|
|
}
|
|
|
|
& > div {
|
|
width: 50px;
|
|
height: 2px;
|
|
position: relative;
|
|
background-color: #dcf0ff;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
top: 0;
|
|
height: 2px;
|
|
width: 50%;
|
|
background-color: #3c7abc;
|
|
}
|
|
}
|
|
}
|
|
|
|
& .play {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
flex: 1;
|
|
|
|
& svg {
|
|
font-size: 28px;
|
|
color: #3c7abc;
|
|
|
|
&.button {
|
|
font-size: 64px;
|
|
}
|
|
}
|
|
}
|
|
|
|
& .speed {
|
|
font-size: 14px;
|
|
color: #3c7abc;
|
|
|
|
& span {
|
|
font-weight: 200;
|
|
}
|
|
& strong {
|
|
font-weight: bold;
|
|
font-size: 20px;
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|