Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit b98c19c

Browse files
authored
Merge pull request #160 from HackerHours/new-logo
add new logo
2 parents cf8884e + 0075160 commit b98c19c

19 files changed

+1091
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
/_site
22
.sass-cache/
33
Gemfile.lock
4+
5+
logo.png
6+
node_modules/

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ Landing page for the [Hacker Hours](http://www.meetup.com/hackerhours/) meetup.
66

77
To run the site locally:
88

9-
```bash
9+
```sh
1010
bundle
1111
bundle exec jekyll serve
1212
```
13+
14+
## Logo
15+
16+
The logo was designed by @kristinbarr. With the server running, view it at http://localhost:4000/logo.html.
17+
18+
To create a PNG of the logo, install Node.js, then run:
19+
20+
```sh
21+
npm install
22+
node logo.js
23+
```

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Hacker Hours
22
markdown: kramdown
33
exclude:
4+
- node_modules
45
- vendor
56
defaults:
6-
-
7-
scope:
7+
- scope:
88
path: ""
99
values:
1010
layout: default

_sass/logo.scss

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
@import "trig";
2+
3+
// https://www.fontsquirrel.com/fonts/league-gothic
4+
@font-face {
5+
font-family: League Gothic;
6+
src: url("../assets/fonts/League-Gothic/LeagueGothic-Regular.otf")
7+
format("opentype");
8+
}
9+
10+
// https://befonts.com/kollektif-typeface.html
11+
@font-face {
12+
font-family: Kollektif;
13+
src: url("../assets/fonts/kollektif/Kollektif.ttf") format("truetype");
14+
}
15+
16+
.logo {
17+
$front-height: 300px;
18+
$front-width: 405px;
19+
20+
line-height: 0.9;
21+
22+
.background {
23+
background: linear-gradient(90deg, #7c2ae8, #00c4cc);
24+
display: inline-block;
25+
padding: 35px 0;
26+
width: $front-width;
27+
}
28+
29+
$left-skew: -37deg;
30+
$left-width: 50px;
31+
32+
.foreground {
33+
display: grid;
34+
grid-template-columns: $left-width $front-width;
35+
$left-face-height: tan(abs($left-skew)) * $left-width;
36+
grid-template-rows: $front-height $left-face-height;
37+
left: -15px;
38+
position: relative;
39+
}
40+
41+
.front-face {
42+
background-color: #eff0f2;
43+
font-family: "League Gothic", sans-serif;
44+
font-size: $front-height / 2;
45+
grid-column: 2;
46+
grid-row: 1;
47+
padding: 19px 23px;
48+
text-transform: uppercase;
49+
}
50+
51+
.front-face-inner {
52+
position: relative;
53+
}
54+
55+
.hh {
56+
letter-spacing: 7px;
57+
}
58+
59+
.location {
60+
bottom: 71px;
61+
display: inline-block;
62+
font-family: Kollektif, sans-serif;
63+
font-size: 0.35em;
64+
position: absolute;
65+
right: 0;
66+
transform: rotate(90deg);
67+
transform-origin: bottom center;
68+
}
69+
70+
.left-face {
71+
background-color: #ff5757;
72+
grid-column: 1;
73+
grid-row: 1;
74+
transform: skewY($left-skew);
75+
transform-origin: top right;
76+
}
77+
78+
.bottom-face {
79+
background-color: #ff66c4;
80+
grid-column: 2;
81+
grid-row: 2;
82+
transform: skewX(-90deg - $left-skew);
83+
transform-origin: top left;
84+
}
85+
}

_sass/trig.scss

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// https://codepen.io/NyX/pen/dYvymM
2+
3+
$pi: 3.14159265359;
4+
$_precision: 10;
5+
6+
@function pow($base, $exp) {
7+
$value: $base;
8+
@if $exp > 1 {
9+
@for $i from 2 through $exp {
10+
$value: $value * $base;
11+
}
12+
}
13+
@if $exp < 1 {
14+
@for $i from 0 through -$exp {
15+
$value: $value / $base;
16+
}
17+
}
18+
@return $value;
19+
}
20+
21+
@function fact($num) {
22+
$fact: 1;
23+
@if $num > 0 {
24+
@for $i from 1 through $num {
25+
$fact: $fact * $i;
26+
}
27+
}
28+
@return $fact;
29+
}
30+
31+
@function _to_unitless_rad($angle) {
32+
@if unit($angle) == "deg" {
33+
$angle: $angle / 180deg * $pi;
34+
}
35+
@if unit($angle) == "rad" {
36+
$angle: $angle / 1rad;
37+
}
38+
@return $angle;
39+
}
40+
41+
@function sin($angle) {
42+
$a: _to_unitless_rad($angle);
43+
$sin: $a;
44+
@for $n from 1 through $_precision {
45+
$sin: $sin + (pow(-1, $n) / fact(2 * $n + 1)) * pow($a, (2 * $n + 1));
46+
}
47+
@return $sin;
48+
}
49+
50+
@function cos($angle) {
51+
$a: _to_unitless_rad($angle);
52+
$cos: 1;
53+
@for $n from 1 through $_precision {
54+
$cos: $cos + (pow(-1, $n) / fact(2 * $n)) * pow($a, 2 * $n);
55+
}
56+
@return $cos;
57+
}
58+
59+
@function tan($angle) {
60+
@return sin($angle) / cos($angle);
61+
}
29.4 KB
Binary file not shown.
25.1 KB
Binary file not shown.
22.1 KB
Binary file not shown.
23.9 KB
Binary file not shown.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Copyright (c) 2010, Caroline Hadilaksono & Micah Rich <caroline@hadilaksono, [email protected]>, with Reserved Font Name: "League Gothic".
2+
3+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4+
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
5+
6+
-----------------------------------------------------------
7+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
8+
-----------------------------------------------------------
9+
10+
PREAMBLE
11+
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
12+
13+
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
14+
15+
DEFINITIONS
16+
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
17+
18+
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
19+
20+
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
21+
22+
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
23+
24+
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
25+
26+
PERMISSION & CONDITIONS
27+
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
28+
29+
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
30+
31+
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
32+
33+
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
34+
35+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
36+
37+
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
38+
39+
TERMINATION
40+
This license becomes null and void if any of the above conditions are not met.
41+
42+
DISCLAIMER
43+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

0 commit comments

Comments
 (0)