front base init
This commit is contained in:
112
frontend/src/components/LectureList.vue
Normal file
112
frontend/src/components/LectureList.vue
Normal file
@@ -0,0 +1,112 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import MiniatureList from "../items/MiniatureList.vue";
|
||||
import {defineProps} from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
popup: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="props.popup == true ? 'lecture-list--popup' : 'lecture-list'">
|
||||
<div class="lecture-list__content">
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
<MiniatureList
|
||||
imgSrc="https://i.ytimg.com/vi/CFGLoQIhmow/hqdefault.jpg"
|
||||
title="lofi hip hop mix 📚 beats to relax/study to (Part 1)"
|
||||
name="LofiGirl"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.lecture-list--popup {
|
||||
position: absolute;
|
||||
height: 90vh;
|
||||
width: 90vw;
|
||||
bottom: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lecture-list {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.lecture-list--popup, .lecture-list {
|
||||
display: flex;
|
||||
border-radius: 25px;
|
||||
background: var(--neutral-100);
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
&__content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 30px;
|
||||
box-sizing: border-box;
|
||||
overflow: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user