mirror of https://github.com/bastienwirtz/homer
				
				
				
			Merge pull request #153 from taigrr/appcolor
feat: Enables setting colors for individual cardspull/159/head
						commit
						ade77e4257
					
				| 
						 | 
					@ -115,6 +115,7 @@ services:
 | 
				
			||||||
        type: "PiHole" # optional, loads a specific component that provides extra features. MUST MATCH a file name (without file extension) available in `src/components/services`
 | 
					        type: "PiHole" # optional, loads a specific component that provides extra features. MUST MATCH a file name (without file extension) available in `src/components/services`
 | 
				
			||||||
        target: "_blank" # optional html a tag target attribute
 | 
					        target: "_blank" # optional html a tag target attribute
 | 
				
			||||||
        # class: "green" # optional custom CSS class for card, useful with custom stylesheet
 | 
					        # class: "green" # optional custom CSS class for card, useful with custom stylesheet
 | 
				
			||||||
 | 
					        # background: red # optional color for card to set color directly without custom stylesheet
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you choose to fetch message information from an endpoint, the output format should be:
 | 
					If you choose to fetch message information from an endpoint, the output format should be:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,11 @@ export default {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div>
 | 
					  <div>
 | 
				
			||||||
    <div class="card" :class="item.class">
 | 
					    <div
 | 
				
			||||||
 | 
					      class="card"
 | 
				
			||||||
 | 
					      :style="`background-color:${item.background};`"
 | 
				
			||||||
 | 
					      :class="item.class"
 | 
				
			||||||
 | 
					    >
 | 
				
			||||||
      <a :href="item.url" :target="item.target" rel="noreferrer">
 | 
					      <a :href="item.url" :target="item.target" rel="noreferrer">
 | 
				
			||||||
        <div class="card-content">
 | 
					        <div class="card-content">
 | 
				
			||||||
          <div class="media">
 | 
					          <div class="media">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue