diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-03 18:41:55 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-03 18:41:55 +0100 |
commit | 753743cb06c1fd0a6d1a25bbdf2dd0207d04d6dc (patch) | |
tree | fce748d79fa7d54b5de5cb3386189af0b6573a19 | |
parent | 1b74216fc4afa740991dcc9986eb6843c5b07a59 (diff) | |
download | puszcza-753743cb06c1fd0a6d1a25bbdf2dd0207d04d6dc.tar.gz puszcza-753743cb06c1fd0a6d1a25bbdf2dd0207d04d6dc.zip |
Add oboz site
-rw-r--r-- | components/ObozWidget.vue | 46 | ||||
-rw-r--r-- | nuxt.config.js | 3 | ||||
-rw-r--r-- | pages/index.vue | 4 | ||||
-rw-r--r-- | pages/oboz/2020.vue | 36 | ||||
-rw-r--r-- | static/assets/oboz.svg | 4 | ||||
-rw-r--r-- | static/assets/oboz.webp | bin | 0 -> 268906 bytes |
6 files changed, 92 insertions, 1 deletions
diff --git a/components/ObozWidget.vue b/components/ObozWidget.vue new file mode 100644 index 0000000..8e1037e --- /dev/null +++ b/components/ObozWidget.vue @@ -0,0 +1,46 @@ +<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> +.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; + + 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> diff --git a/nuxt.config.js b/nuxt.config.js index e5b3d4d..f454cac 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -4,6 +4,9 @@ const BASE_URL = process.env.DEPLOY_PRIME_URL || 'http://localhost:3000' export default { mode: 'universal', + server: { + host: '0.0.0.0' + }, /* ** Headers of the page */ diff --git a/pages/index.vue b/pages/index.vue index 045025d..8cf6327 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -5,6 +5,7 @@ <h1>Ostatnie wpisy z kroniki</h1> <post-list :posts="posts" :max="4" /> </div> + <oboz-widget /> <facebook-feed /> </div> </template> @@ -13,11 +14,12 @@ import JoinUs from '~/components/JoinUs.vue' import FacebookFeed from '~/components/Facebook/FacebookFeed.vue' import PostList from '~/components/Posts/PostList' +import ObozWidget from '~/components/ObozWidget' import postListParentMixin from '~/components/Posts/PostList/parentMixin' export default { name: 'HomeView', - components: { JoinUs, FacebookFeed, PostList }, + components: { JoinUs, FacebookFeed, PostList, ObozWidget }, mixins: [postListParentMixin] } </script> diff --git a/pages/oboz/2020.vue b/pages/oboz/2020.vue new file mode 100644 index 0000000..34764d1 --- /dev/null +++ b/pages/oboz/2020.vue @@ -0,0 +1,36 @@ +<template> + <section class="oboz"> + <h1>Obóz 2020</h1> + <p>W tym roku obóz odbędzie się nad jeziorem Sporym</p> + <div class="mapouter"> + <div class="gmap_canvas"> + <iframe + id="gmap_canvas" + src="https://maps.google.com/maps?q=Jezioro%20Spore&t=&z=13&ie=UTF8&iwloc=&output=embed" + frameborder="0" + scrolling="no" + marginheight="0" + marginwidth="0" + /> + </div> + </div> + </section> +</template> + +<style scoped> +.oboz { + margin-top: 40px; +} + +h1 { + font-size: 2em; +} + +.mapouter, +.gmap_canvas, +#gmap_canvas { + width: 100%; + height: 50vh; + max-height: 300px; +} +</style> diff --git a/static/assets/oboz.svg b/static/assets/oboz.svg new file mode 100644 index 0000000..39b4e00 --- /dev/null +++ b/static/assets/oboz.svg @@ -0,0 +1,4 @@ +<svg width="294" height="78" viewBox="0 0 294 78" fill="none" xmlns="http://www.w3.org/2000/svg"> +<path fill-rule="evenodd" clip-rule="evenodd" d="M294 0H0V78H294V0ZM58.7578 53.5938C61.6172 50.3281 63.0469 46.1953 63.0469 41.1953V40.6797C63.0469 35.7109 61.6094 31.5859 58.7344 28.3047C55.875 25.0234 52.1328 23.3828 47.5078 23.3828C42.8984 23.3828 39.1797 25.0234 36.3516 28.3047C33.5234 31.5859 32.1094 35.7109 32.1094 40.6797V41.1953C32.1094 46.1953 33.5234 50.3281 36.3516 53.5938C39.1953 56.8594 42.9219 58.4922 47.5312 58.4922C52.1562 58.4922 55.8984 56.8594 58.7578 53.5938ZM54.0234 32.0312C55.4922 34.2344 56.2266 37.1016 56.2266 40.6328V41.1953C56.2266 44.7891 55.5 47.6875 54.0469 49.8906C52.5938 52.0781 50.4219 53.1719 47.5312 53.1719C44.6719 53.1719 42.5234 52.0781 41.0859 49.8906C39.6641 47.6875 38.9531 44.7891 38.9531 41.1953V40.6328C38.9531 37.0703 39.6562 34.1953 41.0625 32.0078C42.4844 29.8203 44.6328 28.7266 47.5078 28.7266C50.3828 28.7266 52.5547 29.8281 54.0234 32.0312ZM87.9375 55.0938C89.625 52.8281 90.4688 49.8047 90.4688 46.0234V45.5312C90.4688 41.4844 89.625 38.25 87.9375 35.8281C86.25 33.3906 83.7969 32.1719 80.5781 32.1719C79.25 32.1719 78.0703 32.4453 77.0391 32.9922C76.0234 33.5391 75.1484 34.3203 74.4141 35.3359V21.4375H63.9609V25.5625L67.5938 26.2656V58H73.5L73.9922 54.8828C74.7422 56.0547 75.6641 56.9531 76.7578 57.5781C77.8516 58.1875 79.1406 58.4922 80.625 58.4922C83.8125 58.4922 86.25 57.3594 87.9375 55.0938ZM82.5469 39.6719C83.2812 41.1094 83.6484 43.0625 83.6484 45.5312V46.0234C83.6484 48.3047 83.2969 50.0703 82.5938 51.3203C81.8906 52.5547 80.6562 53.1719 78.8906 53.1719C77.8125 53.1719 76.8984 52.9688 76.1484 52.5625C75.4141 52.1562 74.8359 51.5625 74.4141 50.7812V40.0703C74.8359 39.2422 75.4141 38.6094 76.1484 38.1719C76.8828 37.7188 77.7812 37.4922 78.8438 37.4922C80.5938 37.4922 81.8281 38.2188 82.5469 39.6719ZM96.8203 35.8047C94.7109 38.2109 93.6562 41.3047 93.6562 45.0859V45.5781C93.6562 49.3906 94.7109 52.5 96.8203 54.9062C98.9453 57.2969 101.891 58.4922 105.656 58.4922C109.375 58.4922 112.289 57.2969 114.398 54.9062C116.523 52.5 117.586 49.3906 117.586 45.5781V45.0859C117.586 41.2891 116.523 38.1875 114.398 35.7812C112.289 33.375 109.359 32.1719 105.609 32.1719C101.875 32.1719 98.9453 33.3828 96.8203 35.8047ZM101.719 51.1562C100.906 49.75 100.5 47.8906 100.5 45.5781V45.0859C100.5 42.8359 100.906 41 101.719 39.5781C102.531 38.1562 103.828 37.4453 105.609 37.4453C107.391 37.4453 108.695 38.1562 109.523 39.5781C110.352 41 110.766 42.8359 110.766 45.0859V45.5781C110.766 47.875 110.352 49.7266 109.523 51.1328C108.711 52.5391 107.422 53.2422 105.656 53.2422C103.844 53.2422 102.531 52.5469 101.719 51.1562ZM113.414 22.75H106.172L101.508 28.9844H106.992L113.461 22.8906L113.414 22.75ZM136.336 52.75H129.258L141.422 36.5547V32.6406H121.125V41.2891H126.375L126.633 37.9375H132.844L120.773 53.9688V58H141.844V49.375H136.617L136.336 52.75ZM157.266 53.5234V58H180.562V49.375H175.359L175.078 52.75H166.219L166.172 52.6328L172.242 46C174.867 43.1875 176.742 40.9062 177.867 39.1562C179.008 37.4062 179.578 35.5 179.578 33.4375C179.578 30.3906 178.57 27.9531 176.555 26.125C174.539 24.2969 171.773 23.3828 168.258 23.3828C164.695 23.3828 161.859 24.4531 159.75 26.5938C157.656 28.7188 156.648 31.3203 156.727 34.3984L156.773 34.5391H163.43C163.43 32.7578 163.836 31.3359 164.648 30.2734C165.477 29.1953 166.68 28.6562 168.258 28.6562C169.68 28.6562 170.773 29.1172 171.539 30.0391C172.32 30.9453 172.711 32.1172 172.711 33.5547C172.711 34.6328 172.375 35.8047 171.703 37.0703C171.031 38.3203 169.898 39.8594 168.305 41.6875L157.266 53.5234ZM204.328 55C206.406 52.6562 207.445 49.2266 207.445 44.7109V37.1875C207.445 32.6875 206.398 29.2656 204.305 26.9219C202.227 24.5625 199.422 23.3828 195.891 23.3828C192.344 23.3828 189.531 24.5625 187.453 26.9219C185.391 29.2656 184.359 32.6875 184.359 37.1875V44.7109C184.359 49.2266 185.398 52.6562 187.477 55C189.555 57.3281 192.375 58.4922 195.938 58.4922C199.469 58.4922 202.266 57.3281 204.328 55ZM199.406 30.5547C200.219 31.8047 200.625 33.7812 200.625 36.4844V45.3672C200.625 48.1172 200.227 50.1172 199.43 51.3672C198.633 52.6172 197.469 53.2422 195.938 53.2422C194.375 53.2422 193.188 52.6172 192.375 51.3672C191.578 50.1172 191.18 48.1172 191.18 45.3672V36.4844C191.18 33.7656 191.578 31.7812 192.375 30.5312C193.172 29.2812 194.344 28.6562 195.891 28.6562C197.422 28.6562 198.594 29.2891 199.406 30.5547ZM211.219 53.5234V58H234.516V49.375H229.312L229.031 52.75H220.172L220.125 52.6328L226.195 46C228.82 43.1875 230.695 40.9062 231.82 39.1562C232.961 37.4062 233.531 35.5 233.531 33.4375C233.531 30.3906 232.523 27.9531 230.508 26.125C228.492 24.2969 225.727 23.3828 222.211 23.3828C218.648 23.3828 215.812 24.4531 213.703 26.5938C211.609 28.7188 210.602 31.3203 210.68 34.3984L210.727 34.5391H217.383C217.383 32.7578 217.789 31.3359 218.602 30.2734C219.43 29.1953 220.633 28.6562 222.211 28.6562C223.633 28.6562 224.727 29.1172 225.492 30.0391C226.273 30.9453 226.664 32.1172 226.664 33.5547C226.664 34.6328 226.328 35.8047 225.656 37.0703C224.984 38.3203 223.852 39.8594 222.258 41.6875L211.219 53.5234ZM258.281 55C260.359 52.6562 261.398 49.2266 261.398 44.7109V37.1875C261.398 32.6875 260.352 29.2656 258.258 26.9219C256.18 24.5625 253.375 23.3828 249.844 23.3828C246.297 23.3828 243.484 24.5625 241.406 26.9219C239.344 29.2656 238.312 32.6875 238.312 37.1875V44.7109C238.312 49.2266 239.352 52.6562 241.43 55C243.508 57.3281 246.328 58.4922 249.891 58.4922C253.422 58.4922 256.219 57.3281 258.281 55ZM253.359 30.5547C254.172 31.8047 254.578 33.7812 254.578 36.4844V45.3672C254.578 48.1172 254.18 50.1172 253.383 51.3672C252.586 52.6172 251.422 53.2422 249.891 53.2422C248.328 53.2422 247.141 52.6172 246.328 51.3672C245.531 50.1172 245.133 48.1172 245.133 45.3672V36.4844C245.133 33.7656 245.531 31.7812 246.328 30.5312C247.125 29.2812 248.297 28.6562 249.844 28.6562C251.375 28.6562 252.547 29.2891 253.359 30.5547Z" fill="white"/> +</svg> + diff --git a/static/assets/oboz.webp b/static/assets/oboz.webp new file mode 100644 index 0000000..4379a95 --- /dev/null +++ b/static/assets/oboz.webp Binary files differ |