Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit cc90584

Browse files
author
Artem Netsvetaev
committed
layout improves
1 parent a35508c commit cc90584

8 files changed

Lines changed: 193 additions & 327 deletions

File tree

src/components/BaseRow.vue

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<template>
2+
<div
3+
class="base-row noselect"
4+
:class="{ clickable }"
5+
>
6+
<div class="meta">
7+
<slot name="meta" />
8+
</div>
9+
<div class="info">
10+
<b class="title">{{ title }}</b>
11+
<span class="extra">
12+
{{ extra }}
13+
</span>
14+
</div>
15+
</div>
16+
</template>
17+
<script>
18+
export default {
19+
props: {
20+
title: {
21+
type: String,
22+
required: true,
23+
},
24+
extra: String,
25+
clickable: {
26+
type: Boolean,
27+
default: false,
28+
},
29+
},
30+
};
31+
</script>
32+
33+
<style scoped>
34+
.base-row {
35+
display: flex;
36+
gap: 24px;
37+
padding: 10px 24px;
38+
margin-bottom: 16px;
39+
align-items: center;
40+
border-radius: 20px;
41+
}
42+
.base-row:last-child {
43+
margin-bottom: 0;
44+
}
45+
46+
.info {
47+
display: flex;
48+
flex-direction: column;
49+
justify-content: center;
50+
font-size: 18px;
51+
height: 100%;
52+
}
53+
.extra {
54+
width: 100%;
55+
overflow: hidden;
56+
text-overflow: ellipsis;
57+
white-space: nowrap;
58+
}
59+
.extra:empty {
60+
display: none;
61+
}
62+
63+
.clickable {
64+
background: var(--bs-primary-10);
65+
transition: background-color 0.5s ease;
66+
}
67+
68+
.clickable:hover {
69+
background: var(--bs-primary-20);
70+
cursor: pointer;
71+
}
72+
</style>

src/components/EventRow.vue

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/components/GroupRow.vue

Lines changed: 0 additions & 58 deletions
This file was deleted.

src/components/LecturerRow.vue

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/components/RoomRow.vue

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/components/row.css

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)