about summary refs log tree commit diff
path: root/components/ObozWidget.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:55:17 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:55:17 +0100
commit474d2bd31fdb0d13e07793c31d82e4eb264731cf (patch)
tree86cbfd30da21cc7abecc611c6ecdc6140a542a28 /components/ObozWidget.vue
parentc6b9b1e2846e769dbeb7cbb567a4e9ec08f3dd9c (diff)
parenta441d3e5284bf1883a55810e7387b43ff4836de3 (diff)
downloadpuszcza-474d2bd31fdb0d13e07793c31d82e4eb264731cf.tar.gz
puszcza-474d2bd31fdb0d13e07793c31d82e4eb264731cf.zip
Merge remote-tracking branch 'origin/master' into feature/json-api
Diffstat (limited to 'components/ObozWidget.vue')
-rw-r--r--components/ObozWidget.vue50
1 files changed, 50 insertions, 0 deletions
diff --git a/components/ObozWidget.vue b/components/ObozWidget.vue
new file mode 100644
index 0000000..084feab
--- /dev/null
+++ b/components/ObozWidget.vue
@@ -0,0 +1,50 @@
+<template>
+  <section class="oboz-widget">
+    <nuxt-link to="/oboz/2020">
+      <img src="/assets/oboz.svg" />
+    </nuxt-link>
+  </section>
+</template>
+
+<script>
+export default {
+  name: 'ObozWidget'
+}
+</script>
+
+<style scoped>
+.webp .oboz-widget {
+  background-image: url('/assets/oboz.webp');
+}
+
+.oboz-widget {
+  width: 100%;
+
+  margin-top: 50px;
+  padding: 80px 20%;
+
+  background-image: url('/assets/oboz.jpg');
+  background-size: cover;
+  background-position: center;
+  background-repeat: no-repeat;
+
+  display: flex;
+  flex-direction: row;
+  justify-content: center;
+}
+
+img {
+  max-width: 60vmin;
+  transition: all 1s ease-in-out;
+}
+
+img:hover {
+  transform: scale(1.1);
+}
+
+@media (max-width: 500px) {
+  .oboz-widget {
+    padding: 80px 20px;
+  }
+}
+</style>