From 389f6443e5cee43075406c5dfe1ab3c112cf7209 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Mon, 11 Apr 2016 19:43:50 -0400 Subject: audio --- public/assets/js/lib/ProjectView.js | 7 +++++++ public/assets/ok.css | 33 ++++++++++++++++++++++----------- 2 files changed, 29 insertions(+), 11 deletions(-) (limited to 'public/assets') diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index a0e0055..c269d38 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -17,6 +17,7 @@ var ProjectView = View.extend({ this.images = this.$images.toArray().map(function(img){ return $(img).data("uri") }) + if (is_mobile) { this.$iframes.remove() this.$videos.remove() @@ -76,6 +77,7 @@ var ProjectView = View.extend({ }, show: function(){ + var audio = this.$("audio") app.header.updatePageNumber( this.page_number ) app.header.updateSlideNumber( 0 ) app.header.updateSlideCount( this.slide_count ) @@ -86,7 +88,9 @@ var ProjectView = View.extend({ app.router.pushState("/") } else { + audio.get(0).play(); app.router.pushState("/project/" + this.project_id) + } this.$images.each(function(){ @@ -120,6 +124,7 @@ var ProjectView = View.extend({ }, hide: function(){ + addClassForPeriod( this.el, "hiding", app.navigation_delay, function(){ this.reset() }.bind(this) ) @@ -140,12 +145,14 @@ var ProjectView = View.extend({ if (is_mobile) return; e.stopPropagation() app.nav.previous() + audio.pause(); }, next: function(e){ if (is_mobile) return; e.stopPropagation() app.nav.next() + audio.pause(); }, }) diff --git a/public/assets/ok.css b/public/assets/ok.css index 14a8cd6..63e53d6 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -20,7 +20,12 @@ html { ::-moz-selection { color: blue; } - +audio { + position:fixed; + top:-800000px; + left:-90000px; + opacity:0; +} a, a:visited { color: blue; @@ -115,9 +120,9 @@ h3 { .intro div.text { width: 50%; -webkit-column-count: 2; - -webkit-column-gap: 5px; - -moz-column-gap: 5px; - column-gap: 5px; + -webkit-column-gap: 10px; + -moz-column-gap: 10px; + column-gap: 10px; font-size: 12px; } @@ -713,7 +718,7 @@ nav { .projectLink { display: block; - + margin-top:3px; } ul li { @@ -749,18 +754,24 @@ ul li { .projectLink { margin-top: 3px; } + .intro div.text, h3 { + font-size:14px; + line-height: 20px; + } + } -/* - @media (min-width: 1400px) { - .texts { - font-size: 14px; - line-height: 16px; - } + + @media (min-width: 1500px) { + .intro div.text, h3 { + font-size:16px; + line-height: 24px; + } } + /* @media (min-width: 1600px) { .texts { font-size: 15px; -- cgit v1.2.3-70-g09d2 From bf3866dafd959c62af32a03981e93f589b5a672f Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 18:38:04 -0400 Subject: no more audio --- db.json | 9 --------- public/assets/js/lib/ProjectView.js | 3 --- 2 files changed, 12 deletions(-) (limited to 'public/assets') diff --git a/db.json b/db.json index c842389..3681d5c 100644 --- a/db.json +++ b/db.json @@ -99,15 +99,6 @@ ], "press": [], "mobileTitle": "", - "mobileMedia": [ - { - "uri": "https://ltho.s3.amazonaws.com/portfolio/36074a60-002b-11e6-8919-558e5e9bf555.gif", - "caption": "background-size:contain; background-position:center;", - "type": "image" - } - ], - "press": [], - "mobileTitle": "", "mobileMedia": [], "linkText": "View in App Store", "whiteCursor": false, diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index 30c70ac..66bb3b6 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -88,7 +88,6 @@ var ProjectView = View.extend({ app.router.pushState("/") } else { - audio.get(0).play(); app.router.pushState("/project/" + this.project_id) } @@ -145,14 +144,12 @@ var ProjectView = View.extend({ if (is_mobile) return; e.stopPropagation() app.nav.previous() - audio.pause(); }, next: function(e){ if (is_mobile) return; e.stopPropagation() app.nav.next() - audio.pause(); }, }) -- cgit v1.2.3-70-g09d2 From 0b37cff025c4f30107319e374ae44a49f3bed979 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 18:51:11 -0400 Subject: target blank --- public/assets/ok.css | 3 +-- templates/index.liquid | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index 63e53d6..b0a9c12 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -30,7 +30,6 @@ a, a:visited { color: blue; font-weight: bold; - font-size: 11px; cursor: pointer; } @@ -754,7 +753,7 @@ ul li { .projectLink { margin-top: 3px; } - .intro div.text, h3 { + .intro div.text, h3, .left a { font-size:14px; line-height: 20px; } diff --git a/templates/index.liquid b/templates/index.liquid index d9c2576..dba72cb 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -115,13 +115,13 @@ OKFocus, Bonafide Internet Legends © 2016 Accolades –
{% for link in intro.accolades %} - {{ link.text }} + {{ link.text }} {% endfor %}

Press –
{% for link in intro.press %} - {{ link.text }} + {{ link.text }} {% endfor %}

Speaker At – -- cgit v1.2.3-70-g09d2 From 58311f52ee0d34ea1bed9cdcfebec2b95b956df2 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 19:37:00 -0400 Subject: type and img --- db.json | 4 ++-- public/assets/img/ryder-ripps.gif | Bin 0 -> 197976 bytes public/assets/ok.css | 19 +++++++++++-------- templates/index.liquid | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 public/assets/img/ryder-ripps.gif (limited to 'public/assets') diff --git a/db.json b/db.json index 3681d5c..1814cc0 100644 --- a/db.json +++ b/db.json @@ -1455,7 +1455,7 @@ { "id": "introduction", "title": "Introduction", - "body": "Form without function is bad. Being an artist these days has a lot to do with who you hangout with. Both my parents have their portraits by Warhol. I was born in 1986. I create physical work to freeze a moment of internet time. Being antisocial is cool now. People no longer look up from screens. The photo on the right was for a Sean John ad I modeled for. I love animals, especially cats and llamas. OKFocus was started in 2011 after I creative directed VFiles and before I bought a 1987 BMW convertible but after I rewrote Ginsberg's Howl for the internet generation. I invented sea-punk as well as vapor-wave. I made a site in 2010 that allowed people to communicate in real-time with images, it hosts over 2 million images and is still running, Facebook probably got the idea of real-time fav notifications from us. Before that in 2009 I created an online museum for early internet graphics, after that I worked for M.I.A. pontificating online with her many nights at 2am. My girlfriend says I should be less braggy in this writing. I am considering writing a passage about her as a response. Tweets killed books. Images killed tweets. Clickbait killed images. I played Doom through a dial-up modem in 1995. I made earnest 3d graphics of dolphins jumping through hoops in Adobe Photoshop 3.0.I rewrote Ginsberg’s Howl for the internet generation. You can not call yourself a creative director unless you could take the place of anyone under your command, someone one told me that. I write CSS because it’s efficient. We create our own backends because templates don’t understand us as individuals. I strive to be understood as a human and as media. Good work exists outside of trends. Trends are just over simplifications of a pithy new things. I once tried to create luxury email in 2008. When asked to make Burberry “cooler” on the internet in I thought about what between luxury goods and the internet were at odds. I told a creative director that a luxury good is something those with enough money can stroll into a store and buy, while status online isn’t as the same. Online clout comes from having a lot of followers or a Wikipedia entry, things that have little connection to what an individual can or can not afford. I explained this and introduced a concept that I felt was genius. I told him that we needed to merge these two disparate worlds, and create luxury email. That’s right, for $30,000 consumers could purchase a Burberry email address, to flaunt their wealth and status within the virtual world. The creative director looked me right in the eye, with inexcusable disgust and plainly said, “that’s the worst idea i’ve ever heard” the following day I quit working at that agency and have been my own boss since – still on a mission to make luxury email a thing and innovate culture through multiple disciplines online. I had asthma, then I quit smoking. On my desk I have a large piece of driftwood. I am the only person you will ever meet who has spoken at RISD and never been fly fishing. Who has worked with Kanye West, The Wolfsonian Museum, Mike Will Made-It and spoken at The Smithsonian. I am not a rapper... ", + "body": "Form without function is bad. Being an artist these days has a lot to do with who you hangout with. Both my parents have their portraits by Warhol. I was born in 1986. I create physical work to freeze a moment of internet time. Being antisocial is cool now. People no longer look up from screens. I love animals, especially cats and llamas. OKFocus was started in 2011 after I creative directed VFiles and before I bought a 1987 BMW convertible but after I rewrote Ginsberg's Howl for the internet generation. I invented sea-punk as well as vaporwave. I made a site in 2010 that allowed people to communicate in real-time with images, it hosts over 2 million images and is still running, Facebook probably got the idea of real-time fav notifications from us. Before that in 2009 I created an online museum for early internet graphics, after that I worked for M.I.A. pontificating online with her many nights at 2am. My girlfriend says I should be less braggy in this writing. I am considering writing a passage about her as a response. Tweets killed books. Images killed tweets. Clickbait killed images. I played Doom through a dial-up modem in 1995. I made earnest 3d graphics of dolphins jumping through hoops in Adobe Photoshop 3.0.I rewrote Ginsberg’s Howl for the internet generation. You can not call yourself a creative director unless you could take the place of anyone under your command, someone one told me that. I write CSS because it’s efficient. We create our own backends because templates don’t understand us as individuals. I strive to be understood as a human and as media. Good work exists outside of trends. Trends are just over simplifications of a pithy new things. I was once in a boyband called HDBOYZ. I am the only member of a boy band who is also proficient in both CSS3 and has shot a campaign for Marc Jacobs. I once tried to create luxury email in 2008. When asked to make Burberry “cooler” on the internet in I thought about what between luxury goods and the internet were at odds. I told a creative director that a luxury good is something those with enough money can stroll into a store and buy, while status online isn’t as the same. Online clout comes from having a lot of followers or a Wikipedia entry, things that have little connection to what an individual can or can not afford. I explained this and introduced a concept that I felt was genius. I told him that we needed to merge these two disparate worlds, and create luxury email. That’s right, for $30,000 consumers could purchase a Burberry email address, to flaunt their wealth and status within the virtual world. The creative director looked me right in the eye, with inexcusable disgust and plainly said, “that’s the worst idea i’ve ever heard” the following day I quit working at that agency and have been my own boss since – still on a mission to make luxury email a thing and innovate culture through multiple disciplines online. I had asthma, then I quit smoking. On my desk I have a large piece of driftwood. I am the only person you will ever meet who has spoken at RISD, knows how to pickle peppers and can write CSS with their eyes closed. Who has worked with Kanye West, The Wolfsonian Museum, Mike Will Made-It and spoken at The Smithsonian. I am not a rapper, but I do have a rap song dedicated to Tory Burch. My name has been published in 6 books, three of which are not in english. My mom makes the best chicken soup in the world, I made a documentary about it when I was 15, it aired on public television. I think microscopes and telescopes are equally as cool. I literally don’t know how the universe started but I would sure like to find out, but at the same time wonder if that would even be gratifying. I am looking for new experiences, to become a better person, to help others, to have fun, to be honest, to contribute something new, to be myself, to love and be loved and I am glad you are reading this. Please don't hesitate to ask questions.", "press": [ { "text": "New York Times", @@ -1480,7 +1480,7 @@ ], "speakers": "RISD, AIGA, Semi-Permanent, SXSW, Sotheby’s, Goethe Institut, Smithsonian, OTIS College", "clients": "M.I.A., Smirnoff, MOCA, New Museum, Kanye West, Mike Will Made-It, Nike, Instagram, Bruno Mars, Atlantic Records, Universal Records, Liberty Science Center, Stone Island, Diesel, Red Bull, Kenzo, FOX, HBO, VFILES, Been Trill, Tumblr, Paddles 8, Google", - "__index": "0", + "__index": 0, "dateCreated": "Tue, 05 Apr 2016 22:16:32 GMT", "accolades": [ { diff --git a/public/assets/img/ryder-ripps.gif b/public/assets/img/ryder-ripps.gif new file mode 100644 index 0000000..0dd6d08 Binary files /dev/null and b/public/assets/img/ryder-ripps.gif differ diff --git a/public/assets/ok.css b/public/assets/ok.css index b0a9c12..d6c03d2 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -11,6 +11,7 @@ html { outline: 0; border: 0; -webkit-appearance: none; + -webkit-font-smoothing: subpixel-antialiased; } ::selection { @@ -95,7 +96,7 @@ h3 { } .intro { - font-size: 12px; + font-size: 14px; line-height: 20px; } @@ -122,11 +123,10 @@ h3 { -webkit-column-gap: 10px; -moz-column-gap: 10px; column-gap: 10px; - font-size: 12px; } .intro .right { - background: url(http://ryder-ripps.com/press/ryder-ripps.jpg)no-repeat center; + background: url(img/ryder-ripps.gif)no-repeat center; background-size: cover; -webkit-filter: grayscale(100%); filter: grayscale(100%); @@ -753,7 +753,7 @@ ul li { .projectLink { margin-top: 3px; } - .intro div.text, h3, .left a { + .intro div.text, h3, .left a { font-size:14px; line-height: 20px; } @@ -763,11 +763,14 @@ ul li { @media (min-width: 1500px) { - .intro div.text, h3 { - font-size:16px; - line-height: 24px; + .intro div.text, h3, .left a { + font-size: 16px; + line-height: 25px; } - +h1 { + font-size: 40px; + line-height: 50px; +} } /* diff --git a/templates/index.liquid b/templates/index.liquid index dba72cb..c8c040f 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -200,7 +200,7 @@ OKFocus, Bonafide Internet Legends © 2016 -- cgit v1.2.3-70-g09d2 From 8b7a217d2cf381b13d2f90f8482c8b4305b093ac Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 19:46:19 -0400 Subject: portfolio --- public/assets/ok.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index d6c03d2..1fb8321 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -143,7 +143,7 @@ h3 { } .intro.cover .right { - background: url(img/crater.gif)no-repeat center; + background: url(img/ibm.jpg)no-repeat center; background-size: cover; width: 75%; } -- cgit v1.2.3-70-g09d2 From 71498e57e5d7604eb32452a3a0647dce3a54b6e6 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 19:57:10 -0400 Subject: more type stuff --- public/assets/ok.css | 81 ++++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 37 deletions(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index 1fb8321..e28f28f 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -21,12 +21,14 @@ html { ::-moz-selection { color: blue; } + audio { - position:fixed; - top:-800000px; - left:-90000px; - opacity:0; + position: fixed; + top: -800000px; + left: -90000px; + opacity: 0; } + a, a:visited { color: blue; @@ -332,15 +334,16 @@ span { } #curtain { - position: absolute; - top: 0; left: 0; - background: black; - transition: 200ms opacity cubic-bezier(0, 0, 0, 1); - opacity: 0; - z-index: 1; - width: 100%; - height: 100%; - pointer-events: none; + position: absolute; + top: 0; + left: 0; + background: black; + transition: 200ms opacity cubic-bezier(0, 0, 0, 1); + opacity: 0; + z-index: 1; + width: 100%; + height: 100%; + pointer-events: none; } .navopen #curtain { @@ -535,6 +538,7 @@ body { margin-left: 20vw; cursor: url(img/u.png) 32 0, pointer; } + .whitecursor .page-up { cursor: url(img/u-white.png) 32 0, pointer; } @@ -549,6 +553,7 @@ body { margin-left: 20vw; cursor: url(img/d.png) 32 64, pointer; } + .whitecursor .page-down { cursor: url(img/d-white.png) 32 64, pointer; } @@ -601,6 +606,7 @@ button.next { cursor: url(img/r.png)64 32, pointer; z-index: 4; } + .whitecursor button.next { cursor: url(img/r-white.png)64 32, pointer; } @@ -610,6 +616,7 @@ button.previous { cursor: url(img/l.png) 0 32, pointer; z-index: 4; } + .whitecursor button.previous { cursor: url(img/l-white.png) 0 32, pointer; } @@ -717,7 +724,7 @@ nav { .projectLink { display: block; - margin-top:3px; + margin-top: 3px; } ul li { @@ -737,7 +744,22 @@ ul li { display: none; } -@media (min-width: 1200px) { + +@media (min-width: 1500px) { + .intro div.text, + h3, + .left a { + font-size: 16px; + line-height: 25px; + } + h1 { + font-size: 40px; + line-height: 50px; + } +} + + +@media (min-width: 1200px) and (max-height: 980px){ .texts { font-size: 13px; line-height: 16px; @@ -753,27 +775,15 @@ ul li { .projectLink { margin-top: 3px; } - .intro div.text, h3, .left a { - font-size:14px; + .intro div.text, + h3, + .left a { + font-size: 14px; line-height: 20px; } - } - - - @media (min-width: 1500px) { - .intro div.text, h3, .left a { - font-size: 16px; - line-height: 25px; - } -h1 { - font-size: 40px; - line-height: 50px; -} - } - - /* +/* @media (min-width: 1600px) { .texts { font-size: 15px; @@ -825,8 +835,6 @@ h1 { .texts { padding: 3px 5px; } - - .five span { width: 100%; border-bottom: 1px solid; @@ -843,12 +851,11 @@ h1 { -moz-column-gap: 3px; column-gap: 3px; border-bottom: 0; - border-top:2px; + border-top: 2px; text-align: justify; } - .projectLink { - display:none; + display: none; } .press .five span:last-child { display: none; -- cgit v1.2.3-70-g09d2 From 4169d1da0c45719c9ef70de21103d8457295f4ff Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 19:59:13 -0400 Subject: test --- public/assets/img/ibm.gif | Bin 0 -> 555339 bytes public/assets/img/ibm.jpg | Bin 0 -> 398560 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/assets/img/ibm.gif create mode 100644 public/assets/img/ibm.jpg (limited to 'public/assets') diff --git a/public/assets/img/ibm.gif b/public/assets/img/ibm.gif new file mode 100644 index 0000000..0e3553a Binary files /dev/null and b/public/assets/img/ibm.gif differ diff --git a/public/assets/img/ibm.jpg b/public/assets/img/ibm.jpg new file mode 100644 index 0000000..d6ced6a Binary files /dev/null and b/public/assets/img/ibm.jpg differ -- cgit v1.2.3-70-g09d2 From 723f9f2c3b56a76fb390e62d777cf4a025afb472 Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 20:09:53 -0400 Subject: text edge case --- public/assets/ok.css | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index e28f28f..bae9334 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -744,22 +744,7 @@ ul li { display: none; } - -@media (min-width: 1500px) { - .intro div.text, - h3, - .left a { - font-size: 16px; - line-height: 25px; - } - h1 { - font-size: 40px; - line-height: 50px; - } -} - - -@media (min-width: 1200px) and (max-height: 980px){ +@media (min-width: 1200px) { .texts { font-size: 13px; line-height: 16px; @@ -775,14 +760,38 @@ ul li { .projectLink { margin-top: 3px; } + .intro div.text, + h3, .left a { + font-size: 14px; + line-height: 20px; + } +} + + + +@media (min-width: 1500px) { .intro div.text, h3, .left a { + font-size: 16px; + line-height: 25px; + } + h1 { + font-size: 40px; + line-height: 50px; + } +} + + +@media (max-height: 980px) { + .intro div.text, + h3, .left a { font-size: 14px; line-height: 20px; } } + /* @media (min-width: 1600px) { .texts { -- cgit v1.2.3-70-g09d2 From edb135e0d2a441e072571601d17c858319c7b6fa Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 20:46:44 -0400 Subject: stars dude --- public/assets/img/dude.png | Bin 0 -> 597926 bytes public/assets/img/ibm.gif | Bin 555339 -> 0 bytes public/assets/ok.css | 18 ++++++- public/assets/stars/flyingthroughspace.css | 17 ++++++ public/assets/stars/flyingthroughspace.js | 81 +++++++++++++++++++++++++++++ public/assets/stars/index.html | 10 ++++ templates/index.liquid | 4 ++ 7 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 public/assets/img/dude.png delete mode 100644 public/assets/img/ibm.gif create mode 100755 public/assets/stars/flyingthroughspace.css create mode 100755 public/assets/stars/flyingthroughspace.js create mode 100755 public/assets/stars/index.html (limited to 'public/assets') diff --git a/public/assets/img/dude.png b/public/assets/img/dude.png new file mode 100644 index 0000000..c0246fe Binary files /dev/null and b/public/assets/img/dude.png differ diff --git a/public/assets/img/ibm.gif b/public/assets/img/ibm.gif deleted file mode 100644 index 0e3553a..0000000 Binary files a/public/assets/img/ibm.gif and /dev/null differ diff --git a/public/assets/ok.css b/public/assets/ok.css index bae9334..c558a8c 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -145,11 +145,25 @@ h3 { } .intro.cover .right { - background: url(img/ibm.jpg)no-repeat center; - background-size: cover; + padding:0; width: 75%; + height:100%; +} +.intro.cover .right iframe { + width: 35%; + height: 40%; + position: absolute; + margin-top: 9%; + margin-left: 33%; } +.intro.cover .right span { + background: url(img/dude.png)no-repeat center; + background-size: cover; + width:100%; + height:100%; + position: relative; +} .menu { position: fixed; height: calc(100vh - 24px); diff --git a/public/assets/stars/flyingthroughspace.css b/public/assets/stars/flyingthroughspace.css new file mode 100755 index 0000000..8d867ed --- /dev/null +++ b/public/assets/stars/flyingthroughspace.css @@ -0,0 +1,17 @@ +body { + background-color: black; + margin: 0; + padding: 0; +} + +.star { + /*background-color: white;*/ + /*border-radius: 30px;*/ + width: 1px; + height: 1px; + position: absolute; + background: -moz-radial-gradient(closest-side circle,#FFF,#000); + background: -o-radial-gradient(closest-side circle,#FFF,#000); + background: -webkit-radial-gradient(closest-side circle,#FFF,#000); + background: radial-gradient(closest-side circle,#FFF,#000); +} \ No newline at end of file diff --git a/public/assets/stars/flyingthroughspace.js b/public/assets/stars/flyingthroughspace.js new file mode 100755 index 0000000..7587c71 --- /dev/null +++ b/public/assets/stars/flyingthroughspace.js @@ -0,0 +1,81 @@ +(function() { + + var STAR_COUNT = 500; + var WARP_SPEED = 0.02; + var FPS = 30; + + var getRandom = function(lbound, ubound) { + return window.Math.random() * (ubound - lbound) + lbound; + }; + + var windowCenter = { + x: window.innerWidth / 2, + y: window.innerHeight / 2 + }; + + var Star = function() { + this.element = document.createElement('div'); + this.element.className = 'star'; + this.randomizeSpawn(); + document.body.appendChild(this.element); + }; + + Star.prototype.randomizeSpawn = function() { + this.x = getRandom(1, window.innerWidth); + this.y = getRandom(1, window.innerHeight); + this.brightness = 1;//getRandom(1, 5); + this.distance = getRandom(0.01, 6); + } + + Star.prototype.isOutsideField = function() { + return this.x < 0 || + this.x > window.innerWidth || + this.y > window.innerHeight || + this.y < 0; + }; + + Star.prototype.setPosition = function() { + this.element.style.left = this.x + 'px'; + this.element.style.top = this.y + 'px'; + this.element.style.width = this.brightness + 'px'; + this.element.style.height = this.brightness + 'px'; + }; + + var stars = []; + + var incrementFrame = function() { + + for (var i = 0; i < STAR_COUNT; i++) { + + var star = stars[i] = stars[i] || new Star(); + + // Split position by splitting into x & y vectors + star.x -= (windowCenter.x - star.x) * WARP_SPEED * star.distance; + star.y -= (windowCenter.y - star.y) * WARP_SPEED * star.distance; + + if (star.isOutsideField()) { + // Reloate star + star.randomizeSpawn(); + } else { + // Increase brightness + star.brightness += (star.distance * 0.05); + } + + star.setPosition(); + } + }; + + // Follow cursor + window.addEventListener('mousemove', function(e) { + windowCenter.x = e.clientX; + windowCenter.y = e.clientY; + }); + + // Start drawing + window.setInterval(function(){ + if (document.body) { + incrementFrame(); + } + }, 1000 / FPS); + +})(); \ No newline at end of file diff --git a/public/assets/stars/index.html b/public/assets/stars/index.html new file mode 100755 index 0000000..e6a878c --- /dev/null +++ b/public/assets/stars/index.html @@ -0,0 +1,10 @@ + + + + Flying Through Space + + + + + + \ No newline at end of file diff --git a/templates/index.liquid b/templates/index.liquid index c8c040f..faa26e2 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -101,6 +101,10 @@ OKFocus, Bonafide Internet Legends © 2016
+ + +
-- cgit v1.2.3-70-g09d2 From d185ba79b3e95a1e644955f0c3b70b72ecd543cb Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 20:50:16 -0400 Subject: remove filter --- public/assets/ok.css | 2 -- 1 file changed, 2 deletions(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index c558a8c..bd50e6d 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -130,8 +130,6 @@ h3 { .intro .right { background: url(img/ryder-ripps.gif)no-repeat center; background-size: cover; - -webkit-filter: grayscale(100%); - filter: grayscale(100%); } .intro.cover .left span#cred { -- cgit v1.2.3-70-g09d2 From 4838109e2ea23f2fac85b2e8c5945e5563dab51d Mon Sep 17 00:00:00 2001 From: “Ryder <“r@okfoc.us”> Date: Tue, 12 Apr 2016 20:53:03 -0400 Subject: more defined --- public/assets/ok.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/assets') diff --git a/public/assets/ok.css b/public/assets/ok.css index bd50e6d..1e8bcb4 100644 --- a/public/assets/ok.css +++ b/public/assets/ok.css @@ -127,7 +127,7 @@ h3 { column-gap: 10px; } -.intro .right { +.intro.single .right { background: url(img/ryder-ripps.gif)no-repeat center; background-size: cover; } -- cgit v1.2.3-70-g09d2