Florian Hoss 2 år sedan
förälder
incheckning
2b5c1d2e47
4 ändrade filer med 9 tillägg och 7 borttagningar
  1. 1 1
      Jenkinsfile
  2. 4 4
      static/css/input.css
  3. 2 0
      tailwind.config.js
  4. 2 2
      templates/index.gohtml

+ 1 - 1
Jenkinsfile

@@ -1,6 +1,6 @@
 pipeline {
     environment {
-        VERSION = "v1.2.3"
+        VERSION = "v2.0.0"
         PROJECT_NAME = JOB_NAME.split('/')
         IMAGE_NAME = "unjxde/${PROJECT_NAME[0]}"
         IMAGE = ''

+ 4 - 4
static/css/input.css

@@ -10,15 +10,15 @@
     @apply bg-primary-content h-1 rounded-full mt-1;
   }
   .system-icon {
-    @apply h-8 w-8 shrink-0 mr-3 opacity-90;
+    @apply h-8 w-8 shrink-0 mr-3 opacity-90 text-secondary;
   }
   .extra-icon {
-    @apply h-3 w-3 shrink-0 mr-2 text-primary;
+    @apply h-3 w-3 shrink-0 mr-2 text-secondary;
   }
   .extra-sun-icon {
-    @apply h-4 w-4 shrink-0 -mb-1 mr-2 text-primary;
+    @apply h-4 w-4 shrink-0 -mb-1 mr-2 text-secondary;
   }
   .extra-system-info {
-    @apply text-xs truncate;
+    @apply text-xs truncate text-secondary;
   }
 }

+ 2 - 0
tailwind.config.js

@@ -11,9 +11,11 @@ module.exports = {
         light: {
           ...require("daisyui/src/colors/themes")["[data-theme=light]"],
           primary: "#f28c18",
+          secondary: "rgba(70,70,70,0.7)",
         },
         dark: {
           ...require("daisyui/src/colors/themes")["[data-theme=halloween]"],
+          secondary: "#b9b9b9",
         },
       },
     ],

+ 2 - 2
templates/index.gohtml

@@ -12,7 +12,7 @@
 
     <div class="flex items-center mb-6 md:mb-10 select-none">
       <svg class="h-12 w-12 shrink-0 mr-4 md:w-14 md:h-14">
-        <use id="weatherIcon" xlink:href="#{{ .Weather.Icon }}"></use>
+        <use id="weatherIcon" class="text-secondary" xlink:href="#{{ .Weather.Icon }}"></use>
       </svg>
       <div>
         <div class="text-4xl md:text-4xl">
@@ -124,7 +124,7 @@
     {{ range .Categories }}
       <div class="grid gap-1">
         {{ if .Category }}
-          <div class="text-lg text-primary select-none truncate">{{ .Category }}</div>
+          <div class="text-lg text-secondary select-none truncate">{{ .Category }}</div>
         {{ end }}
         <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4">
           {{ range .Entries }}