From bcd0035ad53c1c773b75a5c69674624600c46572 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Thu, 18 Jan 2024 11:31:56 -0500 Subject: [PATCH] use segment font for view count --- assets/fonts/7segments/7segments.ttf | Bin 0 -> 8800 bytes assets/fonts/7segments/license.txt | 93 +++++++++++++++++++++++++++ assets/fonts/7segments/readme.txt | 16 +++++ styles/01-poetry-n-style.scss | 9 +++ views/index.ejs | 4 +- 5 files changed, 120 insertions(+), 2 deletions(-) create mode 100644 assets/fonts/7segments/7segments.ttf create mode 100644 assets/fonts/7segments/license.txt create mode 100644 assets/fonts/7segments/readme.txt diff --git a/assets/fonts/7segments/7segments.ttf b/assets/fonts/7segments/7segments.ttf new file mode 100644 index 0000000000000000000000000000000000000000..41dc13512671a43b7030cfd99307848cbb88950b GIT binary patch literal 8800 zcmd5>TWlOx8UAKwy}ssVhme-E9HK%Jk$CO38z&`+8mcZA8KsI*6jey+X1%xAd+F{v zwxd3Ps4B!o;sL2RPkkt&4?Li%eQ95ixIAqV#6?KJ6Ri*rMB)LYs@N>wIdgV)&hE~5 z?4*dX#`B-+|DEr@oHMhq0F2=4a3C%%B$Blg*Iodu&ul) z8rC0Q=J+qN{6;CgR>d@?*gnLvD5p!=b6X#N2{=N1@q^V$y@7kk0Y{&f?T}b`f8op3 zx3BFx_b)&W1O7C=_HF+&eoWO5!B!*G7`JEqd+e8sAJg@6kb9j_H778MK~-V58@#6- z8?wHS0mNd6sY>@rIcIIi3b$4@Nu1u5TKMW^JWce^yBOU6Z3JO}oD}ht}^~ciU@b+rz#7A27HpTI0iizfR{PKh~c~ z-4Dp}Jnz4e>DPdPmw5k^mghbAYx?p}f#GFRNz;w|3>f7+WBYkGfjtG@tlN8rH~a5n zzkTlm`@aSpILG?~VEip$g3dL;eh04tA3MyOb%##!{yXsTH)PDxgL$b4u@R@;_JZ+i z^%6Ay@umxZRYp?sMLw7Qwr2J(!ad~1XLmzN&ay3M+{91xSyJ%BMx z;8A=ERMrc!e+`y(J?`zgsf2_vll$^>`b{Blu+Z z?7fTyvxPey`%w1bh{le6$7fSoBY+KQWm@M!a7#;fSW=eJe)W;!W~6#{bp15UM@_@} zK~i?%_i<9w;esiZ%kK~@Ipy`yaB9L;+;1Bx!N85kU{*13Ptb=2KC`_SYrhV5W;67I z*^jmyg7l?g>O6JAg`c!bDF@s_^3k~+7kfo`3@%z+H_sVwW?2~$S zWkzxRp2B-f)?`iZ&Eh)}j&NAZ;JjC1M! z?Sp|qM^ygJ;Bz>Pc{n;}=38TzeWG(F_4+yMZ!06#LkAs^L+%n)+JY_@-b^o{&E!?CekVXGULh?#;v!sY-6wWD=j;$ z|DBd&IBNY>%L6!M4{14$ar<#C58{eFrR5=t5 z?`nAuj>c>)PvCOw30Efm!?BysRI2N>V!qH2wc^rx4( z%5u8ql|4b|mMhs>y;v!W>B-KZRHfWlXw+6R4NtHnmaH&6dLd{Yu%Jy9=IRuj{6b5EY0 zPA2B+dVQyo+m5c(yuq_)&m?CO9=c1_Y+2zD^TkZIT+gP8H?!h;F)v!CQ&=xsTP`6OEX)JQKlESjYx(c(8K);cb9A9Bix#k8rsN*Rl_?OdK>S{h$OS`XR z$zVnt>0PmSj2c&oK;pVioJDdYd0nN{puYZiMs|dxKTemyI#*HWY!zxukj**%J&Dtl zk}S`$&9vYt*6)Oc{<7fEIlF>AKEU{cxHMiJaGDPmj3Ro0y6 PpL(}uHf_rNs`vUY9Osjh literal 0 HcmV?d00001 diff --git a/assets/fonts/7segments/license.txt b/assets/fonts/7segments/license.txt new file mode 100644 index 0000000..977683e --- /dev/null +++ b/assets/fonts/7segments/license.txt @@ -0,0 +1,93 @@ +Copyright (c) 2020, “rikyozone” +(https://fontstruct.com/fontstructors/1749823/rikyozone) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +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. + +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. + +DEFINITIONS +"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. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"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. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +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: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +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. + +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. + +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. + +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. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +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. \ No newline at end of file diff --git a/assets/fonts/7segments/readme.txt b/assets/fonts/7segments/readme.txt new file mode 100644 index 0000000..9879961 --- /dev/null +++ b/assets/fonts/7segments/readme.txt @@ -0,0 +1,16 @@ +The font file in this archive was created using Fontstruct the free, online +font-building tool. +This font was created by “rikyozone”. +This font has a homepage where this archive and other versions may be found: +https://fontstruct.com/fontstructions/show/1775612 + +Try Fontstruct at https://fontstruct.com +It’s easy and it’s fun. + +Fontstruct is copyright ©2020 Rob Meek + +LEGAL NOTICE: +In using this font you must comply with the licensing terms described in the +file “license.txt” included with this archive. +If you redistribute the font file in this archive, it must be accompanied by all +the other files from this archive, including this one. diff --git a/styles/01-poetry-n-style.scss b/styles/01-poetry-n-style.scss index cd66399..69394de 100644 --- a/styles/01-poetry-n-style.scss +++ b/styles/01-poetry-n-style.scss @@ -1,3 +1,8 @@ +@font-face { + font-family: '7segments'; + src: url('/assets/fonts/7segments/7segments.ttf'); +} + html, body { width: 100%; @@ -36,6 +41,10 @@ body { } + .v { + font-family: '7segments', 'Courier New', Courier, monospace; + } + #pixel { background: url('/cache-me.webp'); position: fixed; diff --git a/views/index.ejs b/views/index.ejs index 5658f1a..23b7719 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -7,13 +7,13 @@ JAKE HURWITZ IS A BITCH - +

Welcome to Jake Hurwitz is a bitch .com

-

<%= visitCount %> People have seen this site and agreed Jake Hurwitz is a bitch

+

<%= visitCount %> People have seen this site and agreed Jake Hurwitz is a bitch