mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
change styling
This commit is contained in:
parent
7f655d210a
commit
d57410d8ca
@ -1,9 +1,13 @@
|
||||
<template>
|
||||
<div class="list-item">
|
||||
<div class="icon"><img class="app-icon" :src="'http://heimdallmaster.test/storage/' + this.icon"></div>
|
||||
<div class="name">{{ this.application.title }}<span class="tags">dashboard, dev, work</span></div>
|
||||
<div class="name">
|
||||
{{ this.application.title }}
|
||||
<span class="tags">Tags: dashboard, dev, work</span>
|
||||
<a :href="this.application.url">url</a>
|
||||
</div>
|
||||
<div class="pinned">
|
||||
Pinned
|
||||
Active
|
||||
<q-icon
|
||||
:name="this.application.pinned === '1' ? 'check_box' : 'check_box_outline_blank'"
|
||||
/>
|
||||
@ -37,7 +41,7 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
max-width: 900px;
|
||||
margin: 50px auto;
|
||||
.list-item {
|
||||
border: 1px solid #00000029;
|
||||
@ -65,6 +69,11 @@ export default {
|
||||
font-size: 12px;
|
||||
color: #9c9c9c;
|
||||
}
|
||||
a {
|
||||
text-transform: uppercase;
|
||||
color: #9c9c9c;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
.pinned {
|
||||
display: flex;
|
||||
|
||||
84
src/components/User.vue
Normal file
84
src/components/User.vue
Normal file
@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<div class="list-item">
|
||||
<div class="icon"><img class="app-icon" :src="'http://heimdallmaster.test/storage/' + this.icon"></div>
|
||||
<div class="name">{{ this.application.title }}<span class="tags">dashboard, dev, work</span></div>
|
||||
<div class="actions">
|
||||
<q-btn size="12px" unelevated color="primary">Edit</q-btn>
|
||||
<q-btn size="12px" unelevated color="grey-2" text-color="black">Delete</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'AppItem',
|
||||
|
||||
props: ['application'],
|
||||
|
||||
components: {
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
icon: this.application.icon || '../img/heimdall-icon-small.png'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.list-items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
margin: 50px auto;
|
||||
.list-item {
|
||||
border: 1px solid #00000029;
|
||||
background: #fcfcfc;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #000000b5;
|
||||
font-weight: bold;
|
||||
margin: 5px 0;
|
||||
.icon {
|
||||
padding:15px 30px;
|
||||
.app-icon {
|
||||
max-width: 60px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.name {
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
padding: 0 15px 0 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.tags {
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
color: #9c9c9c;
|
||||
}
|
||||
}
|
||||
.pinned {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
color: #9c9c9c;
|
||||
font-weight: normal;
|
||||
i {
|
||||
font-size: 24px;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
.actions {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@ -138,6 +138,7 @@
|
||||
|
||||
.page-container {
|
||||
width: 100%;
|
||||
padding: 0 40px;
|
||||
}
|
||||
.alt-header {
|
||||
background: #849090;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user