From 32da7948bed6da8fba51eb4220cbf35fe3234f5f Mon Sep 17 00:00:00 2001
From: Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>
Date: Sat, 4 Jan 2020 15:30:53 +0100
Subject: Add jpg support

---
 components/ObozWidget.vue | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'components/ObozWidget.vue')

diff --git a/components/ObozWidget.vue b/components/ObozWidget.vue
index 8e1037e..887fd13 100644
--- a/components/ObozWidget.vue
+++ b/components/ObozWidget.vue
@@ -13,13 +13,20 @@ export default {
 </script>
 
 <style scoped>
+.webp .oboz-widget {
+  background-image: url('/assets/oboz.webp');
+}
+
+.no-webp .oboz-widget {
+  background-image: url('/assets/oboz.jpg');
+}
+
 .oboz-widget {
   width: 100%;
 
   margin-top: 50px;
   padding: 80px 20%;
 
-  background-image: url('/assets/oboz.webp');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
-- 
cgit 1.4.1

