diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/assets/bird.png | bin | 0 -> 11079 bytes | |||
| -rw-r--r-- | public/assets/csm.png | bin | 0 -> 11075 bytes | |||
| -rw-r--r-- | public/assets/css.css | 89 | ||||
| -rw-r--r-- | public/assets/footer.jpg | bin | 0 -> 222049 bytes | |||
| -rw-r--r-- | public/assets/geidai.png | bin | 0 -> 31332 bytes | |||
| -rw-r--r-- | public/assets/header.jpg | bin | 82629 -> 108868 bytes | |||
| -rw-r--r-- | public/assets/postbg.jpg | bin | 257408 -> 177193 bytes | |||
| -rw-r--r-- | public/assets/site.js | 18 | ||||
| -rw-r--r-- | public/assets/wayshape.png | bin | 0 -> 8874 bytes |
9 files changed, 61 insertions, 46 deletions
diff --git a/public/assets/bird.png b/public/assets/bird.png Binary files differnew file mode 100644 index 0000000..9f5edc0 --- /dev/null +++ b/public/assets/bird.png diff --git a/public/assets/csm.png b/public/assets/csm.png Binary files differnew file mode 100644 index 0000000..18dea2d --- /dev/null +++ b/public/assets/csm.png diff --git a/public/assets/css.css b/public/assets/css.css index 46057a8..79c6989 100644 --- a/public/assets/css.css +++ b/public/assets/css.css @@ -2,6 +2,7 @@ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; + border-radius: 5px; } html,body { padding: 0; @@ -27,21 +28,33 @@ a { } #header { width: 100%; - margin: 0; - background: #fff; - padding: 20px; - box-shadow: 0 5px 10px rgba(0,0,0,0.2); - background-image: url(header.jpg); - background-size: cover; - background-position: bottom center; } - #footer { width: 100%; margin: 0; + background-image: url(footer.jpg); + background-size: cover; + background-position: center; +} +#coda { padding: 10px 0; padding-top: 15px; - height: 300px; +} +#coda a { + display: inline-block; + font-size: 16px; + padding: 5px; + border-radius: 4px; + background: white; + margin: 10px; +} +#logos { + background: rgba(255,255,255,0.2); + padding: 20px 0; +} +#logos img { + max-height: 12vh; + margin: 5px; } h1, h2 { @@ -90,53 +103,50 @@ h2 { /* GRID OF POSTS */ -#posts { - padding: 40px 0; -} .cell { - display: inline-block; - width: 26vw; - height: 23vw; - margin: 2vw; - color: white; + display: block; cursor: pointer; background-size: cover; background-position: center center; position: relative; + background-image: url(postbg.jpg); + background-size: cover; + background-position: center center; + padding: 20px; + text-align: center; } .cell .title { - position: absolute; - top: 50%; left: 50%; - transform: translate3d(-50%, -50%, 0); text-transform: uppercase; font-weight: bold; text-align: center; + margin: 20px; +} +.cell .title span { font-size: 20px; - color: black; - background: white; + color: white; padding: 5px; + text-shadow: 0 1px 2px #000; } -.desktop .cell { - opacity: 0.9; - transition: opacity 0.2s; -} -.desktop .cell:hover { - opacity: 1; -} -.cell:nth-child(2n+1) { background-color: #4f658e; } -.cell:nth-child(2n+2) { background-color: #7a7067; } - /* SINGLE POST VIEW */ .media { width: 100%; - max-height: 50vh; +} +.media iframe { + margin: 10px auto; + max-height: 30vh; + max-width: 100%; +} +.media img { + display: block; + margin: 10px auto; + max-width: 100%; } .content { - text-align: left; - padding: 20px 50px; + padding: 20px; line-height: 1.5; + background: white; } .close { position: absolute; @@ -154,10 +164,6 @@ h2 { #testimonials { margin-top: 15px; box-shadow: 0 0 20px 0px rgba(0,0,0,0.4); - background-image: url(testimonials.jpg); - background-size: cover; - background-position: bottom center; - background-repeat: no-repeat; width: 100%; height: 300px; } @@ -185,16 +191,11 @@ h2 { .cell { display: block; width: 100vw; - height: 20vh; - margin: 0; } #posts { margin: 0; padding: 0; } - body { - background-image: none; - } #testimonials { margin: 0; } diff --git a/public/assets/footer.jpg b/public/assets/footer.jpg Binary files differnew file mode 100644 index 0000000..6a485c9 --- /dev/null +++ b/public/assets/footer.jpg diff --git a/public/assets/geidai.png b/public/assets/geidai.png Binary files differnew file mode 100644 index 0000000..7dd78b6 --- /dev/null +++ b/public/assets/geidai.png diff --git a/public/assets/header.jpg b/public/assets/header.jpg Binary files differindex 3a16ef3..0839c17 100644 --- a/public/assets/header.jpg +++ b/public/assets/header.jpg diff --git a/public/assets/postbg.jpg b/public/assets/postbg.jpg Binary files differindex 9fc5c3a..61a193e 100644 --- a/public/assets/postbg.jpg +++ b/public/assets/postbg.jpg diff --git a/public/assets/site.js b/public/assets/site.js index eb38891..f875fee 100644 --- a/public/assets/site.js +++ b/public/assets/site.js @@ -3,6 +3,7 @@ var isIpad = !! (navigator.userAgent.match(/iPad/i)) var isAndroid = !! (navigator.userAgent.match(/Android/i)) var isMobile = isIphone || isIpad || isAndroid var isDesktop = ! isMobile +var youtubePlayer = null document.body.classList.add(isDesktop ? 'desktop' : 'mobile') @@ -17,7 +18,14 @@ $(function(){ }) }) ready() - }) + }); + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-35821710-3', 'auto'); + ga('send', 'pageview'); }) function ready() { @@ -59,6 +67,7 @@ function build(){ var entry = site.entries[id] if (! entry) return if (entry.media && entry.media.length) { + /* var media = entry.media[0] switch (media.type) { case 'youtube': @@ -68,7 +77,12 @@ function build(){ bg = media.uri break } - $(this).css('background-image', 'url(' + bg + ')') + */ + // $(this).css('background-image', 'url(' + bg + ')') + if (youtubePlayer) { + youtubePlayer.seekTo(0, true) + return youtubePlayer.playVideo() + } } }) } diff --git a/public/assets/wayshape.png b/public/assets/wayshape.png Binary files differnew file mode 100644 index 0000000..089f223 --- /dev/null +++ b/public/assets/wayshape.png |
