Permalink
Browse files

initialize everything

  • Loading branch information...
0 parents commit 97d4b1ccea765efdb2396d4aecec470e3c4a3cf0 @ncase committed Mar 24, 2014
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org>
@@ -0,0 +1,4 @@
+NCASE
+==============
+
+My personal website, and stuff.
@@ -0,0 +1,144 @@
+body{
+ margin:0;
+ background: #fff;
+ font-family: sans-serif;
+ font-size: 25px;
+ font-weight: 100;
+}
+a{
+ color:#cc2727;
+ text-decoration: none;
+}
+a:hover{
+ color:#ee4949;
+}
+
+/** HEADER **/
+#header{
+ width:100%;
+ height:300px;
+ overflow: hidden;
+ position: relative;
+}
+#banner{
+ width:100%;
+ height:200px;
+ background:#000;
+ position: fixed;
+ overflow: hidden;
+ top:30px;
+}
+#banner > div{
+ background:#fff;
+ width:75px;
+ height:100%;
+ position: absolute;
+ margin:auto;
+ top:0;bottom:0;left:0;right:0;
+ border-left-width: 10px;
+ border-right-width: 10px;
+ border-color: #fff;
+ border-style: solid;
+}
+#banner > div > div{
+ position: absolute;
+ width: 0;
+ height: 0;
+}
+#banner > div > div:nth-child(1){
+ top:0;
+ border-left: 75px solid transparent;
+ border-right: 0px solid transparent;
+ border-top: 170px solid #000;
+}
+#banner > div > div:nth-child(2){
+ bottom:0;
+ border-left: 0px solid transparent;
+ border-right: 75px solid transparent;
+ border-bottom: 170px solid #000;
+}
+#navigation{
+ position: absolute;
+ top:220px;
+ width:100%;
+ height:80px;
+ text-align: center;
+ line-height: 80px;
+ background: #fff;
+ font-size: 28px;
+ letter-spacing: 5px;
+ z-index: 1;
+}
+#navigation a{
+ color:#aaa;
+ text-decoration: none;
+
+ -webkit-transition: color 0.2s ease-in-out;
+ -moz-transition: color 0.2s ease-in-out;
+ -ms-transition: color 0.2s ease-in-out;
+ transition: color 0.2s ease-in-out;
+
+}
+#navigation a:hover{
+ color:#000;
+}
+
+
+/** CONTENT **/
+#content{
+ width:800px;
+ margin:0 auto;
+}
+#content > a > div{
+ width:100%; height:250px;
+ margin-bottom:25px;
+
+ -webkit-transition: opacity 0.2s ease-in-out;
+ -moz-transition: opacity 0.2s ease-in-out;
+ -ms-transition: opacity 0.2s ease-in-out;
+ transition: opacity 0.2s ease-in-out;
+
+}
+#content > a{
+ text-decoration: none;
+}
+#content > a:hover > div{
+ opacity: 0.7;
+}
+#content > a > div > div:nth-child(1){
+ width:798px; height:198px;
+ border: 1px solid #ddd;
+}
+#content > a > div > div:nth-child(2){
+ width:100%; height:50px;
+ text-align: center;
+ line-height: 50px;
+ color:#000;
+}
+
+
+/** FOOTER **/
+#footer{
+ width:100%;
+ height:260px;
+ overflow: hidden;
+ position: relative;
+ visibility: hidden;
+}
+#footer_banner{
+ width:100%;
+ height:200px;
+ background:#000;
+ position: fixed;
+ overflow: hidden;
+ bottom:30px;
+}
+#footer_banner > div{
+ position: absolute;
+ width:100%; padding:50px 0;
+ text-align: center;
+ color:#fff;
+ letter-spacing: 5px;
+ line-height: 42px;
+ font-size: 20px;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,98 @@
+<!doctype>
+<html>
+ <head>
+ <title>ncase</title>
+ <link rel="stylesheet" href="css/index.css"/>
+ </head>
+ <body>
+
+ <div id="header">
+ <div id="banner"><div><div></div><div></div></div></div>
+ <div id="navigation">
+ Nicky Case
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <span style="color:#ddd">
+ <a href="/">projects</a> |
+ <a href="http://blog.ncase.me">blog</a> |
+ <a href="https://twitter.com/ncasenmare">twitter</a>
+ </span>
+ </div>
+ </div>
+
+ <div id="content">
+ <a href="http://NothingToHide.cc">
+ <div style="margin-top:20px">
+ <div style="background:url(img/nothingtohide.png);"></div>
+ <div>nothing to hide, a game where you are your own surveillance</div>
+ <div></div>
+ </div>
+ </a>
+ <a href="http://ncase.github.io/sight-and-light">
+ <div>
+ <div style="background:url(img/sight.png);"></div>
+ <div>sight &amp; light, how to create 2D visibility/shadows for your game</div>
+ <div></div>
+ </div>
+ </a>
+ <a href="http://open.commonly.cc">
+ <div>
+ <div style="background:url(img/openbundle.png);"></div>
+ <div>the open bundle, art &amp; music dedicated to the public domain</div>
+ <div></div>
+ </div>
+ </a>
+ <a href="http://www.craftyy.com/">
+ <div>
+ <div style="background:url(img/craftyy.png);"></div>
+ <div>craftyy, an online html5 game-maker and remixer</div>
+ <div></div>
+ </div>
+ </a>
+ <a href="http://nutcasenightmare.newgrounds.com/games/">
+ <div>
+ <div style="background:url(img/misc.png);"></div>
+ <div>and all my other games &amp; projects</div>
+ <div></div>
+ </div>
+ </a>
+ </div>
+
+ <div id="footer">
+ <div id="footer_banner">
+ <div>
+ Feel free to reach me at
+ <a href='https://twitter.com/ncasenmare'>@ncasenmare</a>
+ or
+ <script>document.write('<'+'a'+' '+'h'+'r'+'e'+'f'+'='+"'"+'m'+'a'+'i'+'l'+'&'+'#'+'1'+'1'+'6'+';'+'o'+'&'+'#'+'5'+'8'+';'+
+'n'+'@'+'&'+'#'+'1'+'1'+'0'+';'+'&'+'#'+'9'+'9'+';'+'&'+
+'#'+'9'+'7'+';'+'s'+'e'+'&'+'#'+'4'+'6'+';'+'me'+"'"+'>'+'n'+'&'+'#'+'6'+'4'+';'+'n'+'c'+
+'a'+'&'+'#'+'1'+'1'+'5'+';'+'e'+'&'+'#'+'4'+'6'+';'+'me'+'<'+'/'+'a'+'>');</script>
+ <br>
+ <span style="color:#555">this page has zero rights reserved</span>
+ </div>
+ </div>
+ </div>
+
+ </body>
+</html>
+
+<script src="js/index.js"></script>
+
+<!-- Piwik -->
+<script type="text/javascript" defer="" async="" src="https://piwik-ncase.rhcloud.com/piwik.js"></script>
+<script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+ _paq.push(["setCookieDomain", "*.nothingtohide.cc"]);
+ _paq.push(["trackPageView"]);
+ _paq.push(["enableLinkTracking"]);
+
+ (function() {
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik-ncase.rhcloud.com/";
+ _paq.push(["setTrackerUrl", u+"piwik.php"]);
+ _paq.push(["setSiteId", "1"]);
+ var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
+ g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
+ })();
+</script>
@@ -0,0 +1,47 @@
+var banner = document.querySelector("#banner");
+var bannerWhite = document.querySelector("#banner > div");
+var navigation = document.querySelector("#navigation");
+var footer = document.querySelector("#footer");
+var footerBanner = document.querySelector("#footer_banner");
+var footerBannerContent = document.querySelector("#footer_banner > div");
+window.onscroll=function(event){
+
+ // Scroll
+ var y = window.scrollY;
+ var pageHeight = document.body.offsetHeight - window.innerHeight;
+ if(y<0){ y=0; }
+ if(y>pageHeight){ y=pageHeight; }
+
+ // Header
+ if(y<200){
+ banner.style.visibility = 'visible';
+ banner.style.height = (200-y)+'px';
+ var w = ((30-y)/30)*10;
+ if(w<0) w=0;
+ bannerWhite.style.borderLeftWidth = w+'px';
+ bannerWhite.style.borderRightWidth = w+'px';
+ }else{
+ banner.style.visibility = 'hidden';
+ }
+ if(y<220){
+ navigation.style.position='absolute';
+ navigation.style.top='220px';
+ navigation.style.borderBottom="none";
+ }else{
+ navigation.style.position='fixed';
+ navigation.style.top='0px';
+ navigation.style.borderBottom="1px solid #ddd";
+ }
+
+ // Footer
+ if(pageHeight-y<220){
+ footer.style.visibility='visible';
+ var h = (200-(pageHeight-y));
+ if(h<0) h=0;
+ footerBanner.style.height = h+'px';
+ footerBannerContent.style.top=(y-pageHeight)+'px';
+ }else{
+ footer.style.visibility='hidden';
+ }
+
+};

0 comments on commit 97d4b1c

Please sign in to comment.