Browse Source

feat: use rgba in config

Signed-off-by: QuentinN42 <quentin@lieumont.fr>
master
QuentinN42 1 year ago
parent
commit
fd50b60c64
Signed by untrusted user: number42 GPG Key ID: 2CD7D563712B3A50
  1. 2
      builder/templates/main.css
  2. 8
      config.json

2
builder/templates/main.css

@ -38,7 +38,7 @@ h2 {
}
.item-{{category.id}} .desc {
background: rgba({{category.bgrgb[0]}}, {{category.bgrgb[1]}}, {{category.bgrgb[2]}}, 0.5);
background: rgba({{category.bgrgba[0]}}, {{category.bgrgba[1]}}, {{category.bgrgba[2]}}, {{category.bgrgba[3]}});
width: 100%;
height: 100%;
transition-property: transform;

8
config.json

@ -2,7 +2,7 @@
{
"id": "telecom",
"name": "Télécom Paris",
"bgrgb": [220, 75, 75],
"bgrgba": [220, 75, 75, 0.5],
"txtrgb": [0, 0, 0],
"content": [
{
@ -34,8 +34,8 @@
{
"id": "rezel",
"name": "Rezel",
"bgrgb": [0, 100, 100],
"txtrgb": [100, 0, 100],
"bgrgba": [250, 250, 250, 0.9],
"txtrgb": [0, 150, 250],
"content": [
{
"url": "https://tutos.rezel.net",
@ -52,7 +52,7 @@
{
"url": "https://lnf.rezel.net/",
"image": "https://garezeldap.rezel.net/media/services/t%C3%A9l%C3%A9chargement_DpYObwK.svg",
"name": "Lost'N'Found",
"name": "Lost'N Found",
"description": "Service de gestion des objets trouvés"
},
{

Loading…
Cancel
Save