mirror of https://github.com/bastienwirtz/homer
feat(cards): add multi link support
parent
45acac744a
commit
3468b9d795
|
@ -6,7 +6,8 @@ Here is a collection of neat tips and tricks that Homer users have come up with!
|
||||||
|
|
||||||
Great source to find service icons
|
Great source to find service icons
|
||||||
|
|
||||||
- <https://github.com/walkxcode/dashboard-icons>
|
- <https://selfh.st/icons/>
|
||||||
|
- <https://github.com/homarr-labs/dashboard-icons>
|
||||||
|
|
||||||
## Use Homer as a custom "new tab" page
|
## Use Homer as a custom "new tab" page
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,17 @@ services:
|
||||||
url: "https://github.com/bastienwirtz/homer/blob/main/docs/customservices.md"
|
url: "https://github.com/bastienwirtz/homer/blob/main/docs/customservices.md"
|
||||||
- name: "Dashboard icons"
|
- name: "Dashboard icons"
|
||||||
icon: "fa-solid fa-icons"
|
icon: "fa-solid fa-icons"
|
||||||
subtitle: "Dashboard icons"
|
|
||||||
tag: "setup"
|
tag: "setup"
|
||||||
url: "https://github.com/walkxcode/dashboard-icons"
|
url: ""
|
||||||
|
quick:
|
||||||
|
- name: "selfh.st"
|
||||||
|
url: "https://selfh.st/icons/"
|
||||||
|
icon: "fa-solid fa-arrow-up-right-from-square"
|
||||||
|
target: "_blank"
|
||||||
|
- name: "homarr-labs"
|
||||||
|
url: "https://github.com/homarr-labs/dashboard-icons"
|
||||||
|
icon: "fa-solid fa-arrow-up-right-from-square"
|
||||||
|
target: "_blank"
|
||||||
- name: "Buy me a coffee!"
|
- name: "Buy me a coffee!"
|
||||||
subtitle: "Sponsor this project"
|
subtitle: "Sponsor this project"
|
||||||
icon: "fa-solid fa-mug-hot"
|
icon: "fa-solid fa-mug-hot"
|
||||||
|
@ -116,18 +124,19 @@ services:
|
||||||
icon: "fa-regular fa-bookmark"
|
icon: "fa-regular fa-bookmark"
|
||||||
class: highlight-inverted
|
class: highlight-inverted
|
||||||
items:
|
items:
|
||||||
- name: "r/selfhosted"
|
- name: "Selfhosted community"
|
||||||
icon: "fa-brands fa-reddit-alien"
|
icon: "fa-brands fa-reddit-alien"
|
||||||
subtitle: "selfhosted community on Reddit"
|
|
||||||
tag: "community"
|
tag: "community"
|
||||||
url: "https://www.reddit.com/r/selfhosted/"
|
url: ""
|
||||||
target: "_blank"
|
quick:
|
||||||
- name: "c/selfhosted"
|
- name: "r/selfhosted"
|
||||||
logo: "https://icons.iconarchive.com/icons/simpleicons-team/simple/256/lemmy-icon.png"
|
url: "https://www.reddit.com/r/selfhosted/"
|
||||||
subtitle: "selfhosted community on Lemmy"
|
icon: "fa-solid fa-arrow-up-right-from-square"
|
||||||
tag: "community"
|
target: "_blank"
|
||||||
url: "https://lemmy.world/c/selfhosted"
|
- name: "c/selfhosted"
|
||||||
target: "_blank"
|
url: "https://lemmy.world/c/selfhosted"
|
||||||
|
icon: "fa-solid fa-arrow-up-right-from-square"
|
||||||
|
target: "_blank"
|
||||||
- name: "Awesome selfhosted"
|
- name: "Awesome selfhosted"
|
||||||
icon: "fa-solid fa-star"
|
icon: "fa-solid fa-star"
|
||||||
subtitle: "Another application"
|
subtitle: "Another application"
|
||||||
|
|
|
@ -19,6 +19,19 @@
|
||||||
<div class="media-content">
|
<div class="media-content">
|
||||||
<slot name="content">
|
<slot name="content">
|
||||||
<p class="title">{{ item.name }}</p>
|
<p class="title">{{ item.name }}</p>
|
||||||
|
<p v-if="item.quick" class="quicklinks">
|
||||||
|
<a
|
||||||
|
v-for="(link, linkIndex) in item.quick"
|
||||||
|
:key="linkIndex"
|
||||||
|
:style="`background-color:${link.color};`"
|
||||||
|
:href="link.url"
|
||||||
|
:target="link.target"
|
||||||
|
rel="noreferrer"
|
||||||
|
>
|
||||||
|
<span v-if="item.icon"><i style="font-size: 12px" :class="['fa-fw', link.icon]"></i></span>
|
||||||
|
{{ link.name }}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
<p v-if="item.subtitle" class="subtitle">
|
<p v-if="item.subtitle" class="subtitle">
|
||||||
{{ item.subtitle }}
|
{{ item.subtitle }}
|
||||||
</p>
|
</p>
|
||||||
|
@ -61,4 +74,23 @@ export default {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a[href=""] {
|
||||||
|
pointer-events: none;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quicklinks {
|
||||||
|
float: right;
|
||||||
|
a {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
padding: 3px 6px;
|
||||||
|
margin-left: 6px;
|
||||||
|
border-radius: 100px;
|
||||||
|
background-color: var(--background);
|
||||||
|
z-index: 9999;
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue