--- /dev/null
+<html>
+ <head>
+ <link rel="stylesheet" href="res/reset.css" />
+ <link rel="stylesheet" href="res/style.css" />
+
+ <script src="js/script.js"></script>
+
+ <title>Jack Kinsey</title>
+ </head>
+ <body>
+
+ <menu id="menu" class="middle">
+ <div id="avatar"><img src="res/face.png"></img></div>
+ <div id="name"><h1>Jack Kinsey</h1></div>
+ <nav id="links">
+ <ul>
+ <li><a href="/writing" data-name="writing">Writing</a></li>
+ <li><a href="/code" data-name="code">Code</a></li>
+ <li><a href="/about" data-name="about">About</a></li>
+ <li><a href="/kinsey17-resume.pdf" data-name="resume">Résumé</a></li>
+ </ul>
+ </nav>
+ </menu>
+
+ <article></article>
+ <article></article>
+ <article></article>
+
+ </body>
+</html>
--- /dev/null
+<html>
+ <head>
+ <link rel="stylesheet" href="res/reset.css" />
+ <link rel="stylesheet" href="res/style.css" />
+
+ <script src="js/script.js"></script>
+
+ <title>Jack Kinsey</title>
+ </head>
+ <body>
+
+ <menu id="menu" class="middle">
+ <div id="avatar"><img src="res/face.png"></img></div>
+ <div id="name"><h1>Jack Kinsey</h1></div>
+ <nav id="links">
+ <ul>
+ <li><a href="/writing" data-name="writing">Writing</a></li>
+ <li><a href="/code" data-name="code">Code</a></li>
+ <li><a href="/about" data-name="about">About</a></li>
+ <li><a href="/kinsey17-resume.pdf" data-name="resume">Résumé</a></li>
+ </ul>
+ </nav>
+ </menu>
+
+ <article></article>
+ <article></article>
+ <article></article>
+
+ </body>
+</html>
</head>
<body>
- <menu>
- <div><img></img></div>
- <nav>
+ <menu id="menu" class="middle">
+ <div id="avatar"><img src="res/face.png"></img></div>
+ <div id="name"><h1>Jack Kinsey</h1></div>
+ <nav id="links">
<ul>
- <li><a href="">Words</a></li>
- <li><a href="">Code</a></li>
- <li><a href="">About</a></li>
- <li><a href="">Résumé</a></li>
+ <li><a href="/writing" data-name="writing">Writing</a></li>
+ <li><a href="/code" data-name="code">Code</a></li>
+ <li><a href="/about" data-name="about">About</a></li>
+ <li><a href="/kinsey17-resume.pdf" data-name="resume">Résumé</a></li>
</ul>
</nav>
</menu>
+window.addEventListener('load', function() {
+ var menuLoc = 0;
+ var links = document.getElementById("links").children[0].children;
+ var menu = document.getElementById("menu");
+ function menuMove(node) {
+ if(menuLoc) return;
+ menu.setAttribute("class", "top");
+ setTimeout(function() { menu.setAttribute("class", "left") }, 600);
+ menuLoc = 1;
+ }
+ for(var i = 0; i < links.length; i++) {
+ links[i].onclick = function(node) { menuMove(node); };
+ }
+}, false);
@import url('https://fonts.googleapis.com/css?family=Cutive+Mono|Source+Code+Pro:300');
body {
- background-color:grey;
+ background-color:#7F7977;
width:100%;
height:100%;
overflow-x:hidden;
position:absolute;
width:400px;
height:400px;
- left:calc(50% - 200px);
- top:calc(50% - 200px);
font-smooth:never;
-webkit-font-smoothing:none;
- background-color:black;
+ /*background-color:black;*/
+ transition:all .125s cubic-bezier(0.075, 0.82, 0.165, 1);
+}
+
+menu.middle {
+ left:calc(50% - 200px);
+ top:calc(50% - 400px);
+}
+
+menu.top {
+ left:calc(50% - 200px);
+ top:0px;
+}
+
+menu.left {
+ left:0px;
+ top:0px;
}
menu nav {
flex-direction:column;
}
-menu div {
+menu #avatar {
display:block;
width:300px;
height:300px;
margin-left:50px;
margin-right:50px;
- background-color:lightgrey;
+ /*background-color:lightgrey;*/
}
-menu div img {
+menu #avatar img {
width:256px;
height:256px;
margin:22px;
+ border-radius:50%;
+}
+
+menu #name {
+ width:100%;
+ height:50px;
+ font-size:3em;
+}
+
+menu #name h1 {
+ display:block;
+ width:100%;
+ height:50px;
+ line-height:50px;
+ text-align:center;
}
menu nav ul {
width:350px;
margin-left:25px;
margin-right:25px;
- height:100px;
+ height:50px;
}
menu nav ul li {
display:inline-block;
text-align:center;
width:25%;
- height:100px;
+ height:50px;
font-size:1.25em;
- line-height:100px;
+ line-height:50px;
+}
+
+menu nav ul li a:link, menu nav ul li a:visited {
+ text-decoration:none;
+ color:inherit;
+}
+
+menu nav ul li a:hover {
+ text-decoration:underline;
}
--- /dev/null
+<html>
+ <head>
+ <link rel="stylesheet" href="res/reset.css" />
+ <link rel="stylesheet" href="res/style.css" />
+
+ <script src="js/script.js"></script>
+
+ <title>Jack Kinsey</title>
+ </head>
+ <body>
+
+ <menu id="menu" class="middle">
+ <div id="avatar"><img src="res/face.png"></img></div>
+ <div id="name"><h1>Jack Kinsey</h1></div>
+ <nav id="links">
+ <ul>
+ <li><a href="/writing" data-name="writing">Writing</a></li>
+ <li><a href="/code" data-name="code">Code</a></li>
+ <li><a href="/about" data-name="about">About</a></li>
+ <li><a href="/kinsey17-resume.pdf" data-name="resume">Résumé</a></li>
+ </ul>
+ </nav>
+ </menu>
+
+ <article></article>
+ <article></article>
+ <article></article>
+
+ </body>
+</html>