Start working on images

This commit is contained in:
Andrew Cassidy 2017-12-24 15:04:19 -08:00
parent 16158fe0ab
commit 089fc4cd65
Failed to extract signature
56 changed files with 281 additions and 109 deletions

View File

@ -8,25 +8,15 @@ permalink: Blog/
{% for post in site.posts %}
<article class="post-entry">
<a class="post-title" href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
<table>
<tr>
<td class="post-tags">
{% include taglist.html %}
<td class="post-date">
<i>{{ post.date | date: "%b %-d, %Y" }}</i>
</td>
</tr>
</table>
</a>
</h2>
<hr>
{% include post-info.html tags = post.tags date=post.date%}
<div class="post-excerpt">
{% assign excerpt-text = post.content | markdownify %}
{% assign excerpt-length = excerpt-text | number_of_words %}
{{post.content | markdownify| truncate: char-count}}
<a class="post-see-more" href="{{ post.url | prepend: site.baseurl }}">
@ -34,4 +24,5 @@ permalink: Blog/
</a>
</div>
</article>
<br>
{% endfor %}

View File

@ -0,0 +1,30 @@
<figure
{% if include.float %}
style="float: {{include.float}};"
{% else %}
style="float: none; width:100%"
{% endif %}>
{% assign srcs = include.src | split: ' ' %}
{% capture path %}/images/{{page.path | split: '/' | last | split: '.' | first }}{% endcapture %}
<div class="figure-contents">
{% for src in srcs %}
{% capture img %} {{path}}/{{src}} {% endcapture %}
<a href="{{ img | remove: "-small" }}"> <img
src="{{ img }}"
{% if include.caption %}
alt="{{ include.caption | markdownify | strip_html }}"
{% else %}
alt="{{ include.alt }}"
{% endif %}> </a>
{% endfor %}
</div>
{% if include.caption %}
<figcaption>
{{ include.caption | markdownify | remove: '<p>' | remove: '</p>' }}
</figcaption>
{% endif %}
</figure>

View File

@ -1,8 +1,10 @@
<meta charset=utf-8 />
<title> {% if page.title %} {{ page.title }} | {% endif %} Andrew Cassidy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<meta charset=utf-8 />
<title> {% if page.title %} {{ page.title }} | {% endif %} Andrew Cassidy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/fa/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/fnoots.css"/>
<link rel="stylesheet" href="/css/style.css"/>
<link rel="stylesheet" href="/css/sidebar.css"/>
<link rel="stylesheet" href="/fa/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/fnoots.css"/>
<link rel="stylesheet" href="/css/style.css"/>
<link rel="stylesheet" href="/css/sidebar.css"/>
</head>

21
_includes/post-info.html Normal file
View File

@ -0,0 +1,21 @@
<table class="post-info" style="width:100%">
<tr>
<td class="post-tags">
<small>
Tags:
{% if include.tags.size > 0 %}
{% for tag in include.tags limit: 6%}
<i>{{ tag }}</i>
{% endfor %}
{% else %}
none
{% endif %}
</small>
<td class="post-date" style="text-align:right">
<small>
<i>{{ include.date | date: "%b %-d, %Y" }}</i>
</small>
</td>
</tr>
</table>
<hr>

View File

@ -6,7 +6,8 @@
<li>{% include flag.html color="orange" name="Projects" url="/Projects" %}</li>
<li>{% include flag.html color="magenta" name="About" url="/About" %}</li>
</ul>
<ul id="navLinks" class="fa-ul">
<ul compact id="navLinks" class="fa-ul">
<li>
<a href="https://github.com/drewcassidy">
<i class="fa fa-li fa-github" aria-hidden="true"></i>Github
@ -23,4 +24,4 @@
</a>
</li>
</ul>
</nav>
</nav>

View File

@ -1,10 +0,0 @@
Tags:
{% if post.tags.size > 0 %}
<i>
{% for tag in post.tags limit: 6%}
{{ tag }}
{% endfor %}
</i>
{% else %}
none
{% endif %}

View File

@ -1,10 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
<link rel="stylesheet" href="/css/blog.css"/>
</head>
{% include head.html %}
<body>
<header>

View File

@ -1,9 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
</head>
{% include head.html %}
<body>
<header>

View File

@ -1,9 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
</head>
{% include head.html %}
<body>
<header>

View File

@ -1,9 +1,7 @@
<!DOCTYPE html>
<html>
<head>
{% include head.html %}
</head>
{% include head.html %}
<body>
<header>
@ -17,7 +15,10 @@
{% include sidebar.html %}
<main id="content">
<h1> {{page.title}} </h1>
<h1 class="post-title">{{ page.title }}</h1>
{% include post-info.html tags = page.tags date=page.date%}
{{ content }}
</main>
</div>

View File

@ -13,6 +13,8 @@ My idea was to transplant the internals from a cheap bluetooth mouse (one I have
## Day 1: The Mouse Buttons
The first step was to split the existing single button into two. After grinding off the plastic welding on the pins holding the button in, I used a hacksaw guided by a block of wood to saw the button in half all the way down to the center part of the hinge. After sanding I think the cut looked pretty good! Something like a laser, or a better suited saw would probably have gotten a cleaner cut, but I was happy with this
{% include figure-image.html src="img-2-small.jpg img-3-small.jpg img-4-small.jpg img-5-small.jpg" caption="the _mouse_ case" %}
## Day 2: The Board
Since i wanted the optical sensor to peer through where the ball went, I needed it to be centered, but the bluetooth mouses board was slightly too wide to do this. Luckily the only thing on that part was the right mouse button, which I had to move anyways, and the connector for the batteries, which i was already replacing with a Lithium battery.
I unfortunately had to scrape away some of the solder mask from the underside of the board to solder on a wire for the power connection, since all the plated holes were on the cutoff part (I couldnt trace it to any of the pins on the sensor, I suspect there was some voltage conversioning happening). I also had to solder a piece of 30AWG wire directly to the surface mounted bluetooth module for right click, since that trace went all the way around the outside edge of the board.

View File

@ -10,4 +10,4 @@ $title-font: 'Barlow', sans-serif;
$body-text: $foreground;
$body-text-subtle: $subtle;
$body-font: 'Open Sans', sans-serif;
$body-size: 18px;
$body-size: 16px;

View File

@ -1,44 +0,0 @@
---
---
@import 'util';
@import 'colors';
@import 'fonts';
.post-entry {
.post-title {
color: $body-text;
text-decoration: none;
font-size: $body-size + 8;
font-weight: bold;
}
.post-title:hover {
text-decoration: underline;
}
.post-date {
text-align: right;
font-size: $body-size - 4;
}
.post-tags {
text-align: left;
font-size: $body-size - 4;
}
.post-see-more {
color: $body-text-subtle;
}
.post-see-more:hover {
color: $body-text;
}
table {
width: 100%;
}
hr {
margin: 5px;
}
}

View File

@ -68,7 +68,7 @@ $mobile-width: {{ site.mobile-width }};
text-align: center;
float: right;
width: 160px;
top:12px;
top: 0.6em;
color: $sidebar-text;
}

View File

@ -55,9 +55,10 @@ $mobile-width: {{ site.mobile-width }};
::-moz-selection {
color: white;
background: $orange;
/* WebKit/Blink Browsers */
/* Mozilla Browsers */
}
// base page format
html {
margin: 0;
background-color: $margin;
@ -65,6 +66,10 @@ html {
body {
background-color: $background;
font-size: $body-size;
font-family: $body-font;
color: $body-text;
max-width: 800px;
z-index: 0;
margin-left: auto;
@ -103,13 +108,6 @@ header {
}
}
//WHAT THE FUCK
hr {
border-width: 0;
height: 1px;
background-color: $body-text;
}
#box {
display: flex;
@ -121,17 +119,80 @@ hr {
left: 20px;
}
flex-grow: 1;
font-family: $body-font;
}
hr {
border-width: 0;
height: 1px;
background-color: $body-text;
}
a {
color: $body-text;
line-height: 1.5em;
p {
margin: {
top: 0;
bottom: 15px;
}
}
a:hover {
color: $body-text-subtle;
}
p {
margin: {
top: 0;
bottom: 15px;
}
}
h1,h2,h3 {
margin: {
top: 0px;
bottom: 10px;
}
a {
text-decoration: none;
}
}
h1 {
font-size: 2em;
}
small {
font-size: 0.8em;
}
figure {
margin: 0;
.figure-contents {
display: flex;
flex-flow: row wrap;
justify-content: center;
}
a {
padding: 3px;
margin: 0;
height: 100%;
width: auto;
flex-basis: auto;
flex-shrink: 1;
}
img {
margin: auto;
max-height: 240px;
min-height: 100px;
}
figcaption {
text-align: center;
}
}
// narrow screens override
@media screen and (max-width: $mobile-width) {
header {
top: 0;
@ -159,6 +220,7 @@ hr {
}
}
}
#box {
flex-direction: column;
}

BIN
images/2017-11-13-Apple-Mouse/atkinson.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-1-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-1.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-10-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-10.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-11-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-11.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-12-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-12.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-13-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-13.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-14-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-14.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-15-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-15.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-16-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-16.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-17-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-17.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-18-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-18.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-19-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-19.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-2-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-2.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-20-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-20.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-3-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-3.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-4-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-4.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-5-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-5.jpg (Stored with Git LFS) Executable file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-6-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-6.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-7-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-7.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-8-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-8.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-9-small.jpg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
images/2017-11-13-Apple-Mouse/img-9.jpg (Stored with Git LFS) Normal file

Binary file not shown.