mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-28 01:28:56 +01:00
Pure CSS font awesome icon
This commit is contained in:
parent
e11427508a
commit
9814a037a5
BIN
public/assets/tools/sample2.png
Normal file
BIN
public/assets/tools/sample2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
@ -69,3 +69,8 @@ services:
|
|||||||
tag: "app"
|
tag: "app"
|
||||||
url: "https://www.reddit.com/r/selfhosted/"
|
url: "https://www.reddit.com/r/selfhosted/"
|
||||||
target: "_blank" # optionnal html a tag target attribute
|
target: "_blank" # optionnal html a tag target attribute
|
||||||
|
- name: "Another one"
|
||||||
|
logo: "assets/tools/sample2.png"
|
||||||
|
subtitle: "Another application"
|
||||||
|
tag: "app"
|
||||||
|
url: "#"
|
||||||
|
14
src/App.vue
14
src/App.vue
@ -5,7 +5,7 @@
|
|||||||
:class="[
|
:class="[
|
||||||
`theme-${config.theme}`,
|
`theme-${config.theme}`,
|
||||||
isDark ? 'is-dark' : 'is-light',
|
isDark ? 'is-dark' : 'is-light',
|
||||||
!config.footer ? 'no-footer' : ''
|
!config.footer ? 'no-footer' : '',
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<DynamicTheme :themes="config.colors" />
|
<DynamicTheme :themes="config.colors" />
|
||||||
@ -132,7 +132,7 @@ export default {
|
|||||||
SearchInput,
|
SearchInput,
|
||||||
SettingToggle,
|
SettingToggle,
|
||||||
DarkMode,
|
DarkMode,
|
||||||
DynamicTheme
|
DynamicTheme,
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
@ -142,7 +142,7 @@ export default {
|
|||||||
filter: "",
|
filter: "",
|
||||||
vlayout: true,
|
vlayout: true,
|
||||||
isDark: null,
|
isDark: null,
|
||||||
showMenu: false
|
showMenu: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created: async function () {
|
created: async function () {
|
||||||
@ -205,10 +205,10 @@ export default {
|
|||||||
{
|
{
|
||||||
name: filter,
|
name: filter,
|
||||||
icon: "fas fa-search",
|
icon: "fas fa-search",
|
||||||
items: searchResultItems
|
items: searchResultItems,
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -35,5 +35,6 @@ colors:
|
|||||||
card-shadow: rgba(0, 0, 0, 0.4)
|
card-shadow: rgba(0, 0, 0, 0.4)
|
||||||
link-hover: "#ffdd57"
|
link-hover: "#ffdd57"
|
||||||
|
|
||||||
|
message: ~
|
||||||
links: []
|
links: []
|
||||||
services: []
|
services: []
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
|
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
|
||||||
<span v-show="value"><i :class="['fas', icon]"></i></span>
|
<span><i :class="['fas', value ? icon : iconAlt]"></i></span>
|
||||||
<span v-show="!value"><i :class="['fas', iconAlt]"></i></span>
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
|
@ -3,7 +3,6 @@ import App from "./App.vue";
|
|||||||
import "./registerServiceWorker";
|
import "./registerServiceWorker";
|
||||||
|
|
||||||
import "@fortawesome/fontawesome-free/css/all.css";
|
import "@fortawesome/fontawesome-free/css/all.css";
|
||||||
import "@fortawesome/fontawesome-free/js/all.js";
|
|
||||||
|
|
||||||
import "./assets/app.scss";
|
import "./assets/app.scss";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user