]> git.quilime.com - quilime.com.git/commitdiff
Adding new nav and css
authorGabriel Dunne <gdunne@quilime.com>
Thu, 6 Jul 2023 06:20:14 +0000 (23:20 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Thu, 6 Jul 2023 06:20:14 +0000 (23:20 -0700)
_includes/nav.html [new file with mode: 0644]
_layouts/cat.html
_layouts/index.html
_posts/code/2020-07-21-node-one-time-pw.md
_posts/snippets/2010-05-15-bash-rewrite_multiple_slashes.md
_posts/snippets/2011-07-07-bootable_iso.md
_posts/snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md
about.md
css/style.css

diff --git a/_includes/nav.html b/_includes/nav.html
new file mode 100644 (file)
index 0000000..93c2218
--- /dev/null
@@ -0,0 +1,12 @@
+<div id="nav">    
+<ul>
+  <li><a href="{{site.url}}/">home</a></li>
+  <li><br /></li>
+  <li><a href="{{ site.url }}/code">open source</a></li>
+  <li><a href="{{ site.url }}/snippets">snippets</a></li>
+  <li><a href="{{ site.url }}/cli">cli</a></li>
+  <li><br /></li>
+  <li><a href="{{ site.url }}/about">about</a></li>    
+  <li><a href="{{ site.url }}/feed.xml">rss</a></li>      
+</ul>
+</div>
\ No newline at end of file
index fdbbb9259ce162cb24a3d931a101580eecec545e..30e3fbb5aa91192cd55af69f684c0e4d116fac05 100644 (file)
@@ -5,4 +5,4 @@ title: all
 
 <h1>{{ page.title }}</h1>
 
-{{content}}
+{{ content }}
index 78bce7aaf8b8a3abe4f69f822de1b374df444810..63c986dc77eb8ce8e0b57e31016e200d1d2fa76a 100644 (file)
   </head>
   <body>
 
-    <div id="nav">
-        <ul>
-          <li><a href="{{site.url}}/">home</a></li>
-          <li><br /></li>
-          <li><a href="{{ site.url }}/code">open source</a></li>
-          <li><a href="{{ site.url }}/snippets">snippets</a></li>
-          <li><a href="{{ site.url }}/cli">cli</a></li>
-          <li><br /></li>
-          <li><a href="{{ site.url }}/about">about</a></li>    
-          <li><a href="{{ site.url }}/feed.xml">rss</a></li>      
-        </ul>
-
-    </div>
-
-    <div id="content">
-      {{ content }}
-    <div>
+  <input type="checkbox" id="hamburger-input" class="burger-shower" />
+  <label id="hamburger-menu" for="hamburger-input">
+  {% include nav.html %}
+  </label>
+  
+  <div class="overlay"></div>
+
+  <div class="nav_full">
+    {% include nav.html %}
+  </div>    
+
+  <div id="content">
+    {{ content }}
+  <div>
 
   </body>
 </html>
\ No newline at end of file
index 6173af63995ae48702bd36579d01c5075706b5ab..846e6f301e55c6e6c67e91146aff333a1240c8a5 100644 (file)
@@ -50,12 +50,12 @@ Notion.so uses a similar login-flow that this code is unabashadly inspired by.
 
 ## Endpoints in this demo
 
-- GET `/` public root
-- POST `/register` Post form w/email field
-- POST `/login` Post form w/password field
-- GET `/login` The default redirect if not authenticated
-- POST `/logout` Clear cookies to "log out"
-- GET `/protected` A demo of protected route that resolves if user is authenticated
+- `GET /` public root
+- `POST /register` Post form w/email field
+- `POST /login` Post form w/password field
+- `GET /login` The default redirect if not authenticated
+- `POST /logout` Clear cookies to "log out"
+- `GET /protected` A demo of protected route that resolves if user is authenticated
 
 
 ### Suggestions and TODO
index 89286b885ff07194ffc96ca4491765b033530f00..a3ce4ca6dd31b3515e1e02d96dd46e8416377376 100644 (file)
@@ -1,6 +1,6 @@
 ---
 date: 2010-05-15
-title: "Rewrite URL: Replace Double Slashes With Single Slash"
+title: "URL Rewrite Double Slashes to Single"
 tags: htaccess apache
 layout: post
 category: snippets
index 515418c0eef3f290d0d9f91fa422f862e4dd00c0..6af5fc4fd85f9f6371f97834d48a206957f32fbf 100644 (file)
@@ -1,5 +1,5 @@
 ---
-title: "create bootable iso from unix/osx terminal"
+title: "flash usb stick w/bootable iso"
 date: july 7 2011
 layout: post
 category: snippets
index 329844cc1387e546b8b82899e7c7bace3de07a71..e2217c00932c3a42a557d820d7a993ee4a5ee3e9 100644 (file)
@@ -1,6 +1,6 @@
 ---
 date: 2014-06-20
-title: creating gif from mov with ffmpeg and gifsicle
+title: gif from mov
 category: snippets
 ---
 <pre class="prettyprint" >
index c9d9da3d09518ae366166c1e81c4f33a1099b9fd..c49c2e978a6959ede71c18137ace36cc3c7a5b81 100644 (file)
--- a/about.md
+++ b/about.md
@@ -2,10 +2,16 @@
 title: about
 ---
 
-© 1999—{{ "now" | date: "%Y" }} [gabriel dunne](https://gabrieldunne.com)
+`quilime.com` was started April 30, 2000. It's taken various forms of a project portfolio and blog. 
+
+© 1999—{{ "now" | date: "%Y" }} [~gld](https://gabrieldunne.com)
 
 older versions
 <!-- - [2008](http://portfolio.quilime.com/2008) -->
 - [2007](http://portfolio.quilime.com/new/port.php)
 - [2005](http://portfolio.quilime.com/recent.html)
 - [2004](http://portfolio.quilime.com/archive/)
+
+personal website
+
+- [gabrieldunne.com](https://gabrieldunne.com)
\ No newline at end of file
index 6f8b31cb9e1acbf265b1850f3b7e2c3454b53b1a..94bd35b8e62c519c878a7f12d7c472de1ee35edf 100644 (file)
@@ -5,13 +5,14 @@ h1, :root {
 
 body, table {
     font-family: arial, monaco, monospace;
-    font-size:14px;
-    line-height:1.4em;
+    font-size: 1em;
+    line-height: 1.4em;
 }
 body {
     background: var(--bg-color);
     padding:0;
-    margin:2em;
+    font-size:18px;
+    margin:1em;
     color: #ddd;
 }
 a {
@@ -116,11 +117,10 @@ table, td, tr {
 }
 
 #content {
-    position: absolute;
-    z-index: -1;
-    top:2em;
-    padding-left: 160px;
-    padding-bottom: 20px;
+/*    position: absolute;*/
+/*    z-index: -1;*/
+    padding-left: 12em;
+    padding-bottom: 2em;
 }
 #content.single {
     padding-top:0;
@@ -165,12 +165,11 @@ span.nextprev span a:hover {
 
 
 #nav {
-/*display:none;*/
   position:fixed;
   top:0;
   left:0;
   padding:20px;
-  width:100px;
+  width:120px;
 }
 #nav li, ul.nav {
   list-style-type:none;
@@ -203,8 +202,8 @@ span.nextprev span a:hover {
 }
 .entry h1 {
     margin-bottom:1em;
-    position:relative;
-    left:-1.5em;
+/*    position:relative;*/
+/*    left:-1.5em;*/
 }
 .entry h1 a {
 }
@@ -227,7 +226,9 @@ span.nextprev span a:hover {
 .entry p {
      max-width:720px;
 }
-
+.entry h1 {
+    text-indent: -1.5em;
+}
 
 .archive li {
     padding-bottom:5px;
@@ -267,4 +268,113 @@ ul.image {
 
 ._c {
     display: none;
-}
\ No newline at end of file
+}
+
+
+
+
+
+/* hamburger */
+
+#hamburger-menu {
+    width: 1.5em;
+    height: 1.25em;
+    position:absolute;
+    top:2.2em;
+    left:2em;
+    display:none;
+    background: linear-gradient(
+      to bottom,
+      var(--link-color), var(--link-color) 20%,
+      var(--bg-color) 20%, var(--bg-color) 40%,
+      var(--link-color) 40%, var(--link-color) 60%,
+      var(--bg-color) 60%, var(--bg-color) 80%,
+      var(--link-color) 80%, var(--link-color) 100%
+    );
+}
+#hamburger-input {
+  display:none;
+}
+#hamburger-input:checked + #hamburger-menu {
+  width:100%;
+  position:absolute;
+  top:0;
+  left:0;
+}
+#hamburger-input:checked + #hamburger-menu #nav {
+  visibility: visible;
+  padding:2em;
+
+}
+#hamburger-input:checked ~ .overlay {
+  visibility: visible;
+  opacity: 1;
+}
+#hamburger-input:checked ~ #content {
+  display: none;
+}
+.overlay {
+    position: fixed;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    opacity: 0;
+    visibility: hidden;
+    overflow: hidden;
+    background: var(--bg-color);
+}
+.nav-index {
+  display:none;
+}
+.nav-index ul.nav li {
+    list-style-type: none;
+    margin: 0;
+    padding: 0;
+}
+
+
+
+
+
+
+@media only screen and (device-width: 1060px),
+only screen and (max-width:1060px) {
+  body {
+    font-size:18px;
+    margin: 2em;
+  }
+  #nav {
+    visibility: hidden;
+    z-index:1;
+    top:0;
+    left:0;
+    width:100%;
+    margin-left:1em;
+  }
+  #nav ul {
+    width:100%;
+    padding-bottom:2em;
+  }
+  #hamburger-menu {
+    display: block;
+    margin-left:1em;
+  }
+  .breadcrumbs {
+    padding-left:2.8em;
+  }
+  .breadcrumbs h2::before {
+    content : "> ";
+  }
+  .index-block {
+    padding-top:4em;
+  }
+  #content {
+    padding-left: 1em;
+    padding-top: 5em;
+    padding-right:3em;
+  }
+  .nav-index {
+    display: block;
+  }
+}