iftrace: improve typography and add webfont
This commit is contained in:
parent
ca2e16c9f6
commit
8188d649db
5 changed files with 190 additions and 20 deletions
BIN
ifttt/assets/fonts/inter/InterVariable-Italic.woff2
Normal file
BIN
ifttt/assets/fonts/inter/InterVariable-Italic.woff2
Normal file
Binary file not shown.
BIN
ifttt/assets/fonts/inter/InterVariable.woff2
Normal file
BIN
ifttt/assets/fonts/inter/InterVariable.woff2
Normal file
Binary file not shown.
92
ifttt/assets/fonts/inter/LICENSE.txt
Normal file
92
ifttt/assets/fonts/inter/LICENSE.txt
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
||||
|
||||
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 AND 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.
|
||||
|
|
@ -50,6 +50,14 @@
|
|||
<p class="sigTag">Confidential documents > open verification</p>
|
||||
<p class="sigSub">3rd party unfalsifiable audit trails.</p>
|
||||
|
||||
<div class="sigActions" aria-label="Primary actions">
|
||||
<a class="sigAction sigAction--primary" href="https://infrafabric.io/static/trace/6qRgcR01kw_qNo63Dbs_ob9n" target="_blank" rel="noreferrer"
|
||||
>See a live receipt</a
|
||||
>
|
||||
<a class="sigAction" href="./whitepaper/">Read the paper</a>
|
||||
</div>
|
||||
<p class="sigTiny">No login. Anyone can download the bytes and verify they match the receipt hashes.</p>
|
||||
|
||||
<section class="sigHow" aria-label="How it works">
|
||||
<div class="sigHow__kicker">How it works</div>
|
||||
<div class="sigHow__panel">
|
||||
|
|
|
|||
110
ifttt/style.css
110
ifttt/style.css
|
|
@ -1,3 +1,24 @@
|
|||
:root {
|
||||
--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
||||
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url("./assets/fonts/inter/InterVariable.woff2") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url("./assets/fonts/inter/InterVariable-Italic.woff2") format("woff2");
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #fffdf7;
|
||||
--bg-alt: #fff9e6;
|
||||
|
|
@ -23,7 +44,8 @@ html {
|
|||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
|
||||
font-family: var(--font-sans);
|
||||
font-optical-sizing: auto;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
|
|
@ -40,7 +62,7 @@ a:hover {
|
|||
}
|
||||
|
||||
code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.92em;
|
||||
background: #f3f4f6;
|
||||
padding: 2px 6px;
|
||||
|
|
@ -1095,7 +1117,7 @@ body.home--sig a:hover {
|
|||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 18px;
|
||||
top: 16px;
|
||||
z-index: 60;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
@ -1107,14 +1129,14 @@ body.home--sig a:hover {
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 18px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
background: rgba(11, 18, 32, 0.55);
|
||||
backdrop-filter: blur(14px) saturate(140%);
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.06),
|
||||
0 26px 80px rgba(0, 0, 0, 0.55);
|
||||
0 20px 60px rgba(0, 0, 0, 0.50);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
|
@ -1124,7 +1146,7 @@ body.home--sig a:hover {
|
|||
position: absolute;
|
||||
inset: -70%;
|
||||
z-index: 0;
|
||||
opacity: 0.95;
|
||||
opacity: 0.70;
|
||||
background:
|
||||
radial-gradient(circle at 16% 52%, rgba(239, 68, 68, 0.26) 0, transparent 44%),
|
||||
radial-gradient(circle at 50% 48%, rgba(245, 158, 11, 0.22) 0, transparent 46%),
|
||||
|
|
@ -1137,7 +1159,7 @@ body.home--sig a:hover {
|
|||
rgba(255, 255, 255, 0.06) 45%,
|
||||
rgba(255, 255, 255, 0.00) 70%
|
||||
);
|
||||
filter: blur(12px);
|
||||
filter: blur(18px);
|
||||
transform: translateX(-8%);
|
||||
animation: sigTraffic 12s linear infinite;
|
||||
}
|
||||
|
|
@ -1160,10 +1182,10 @@ body.home--sig a:hover {
|
|||
}
|
||||
|
||||
.sigBrand {
|
||||
font-weight: 900;
|
||||
font-weight: 760;
|
||||
letter-spacing: -0.01em;
|
||||
color: rgba(255, 255, 255, 0.96);
|
||||
padding: 8px 10px;
|
||||
padding: 7px 9px;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
|
|
@ -1175,7 +1197,7 @@ body.home--sig a:hover {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.01em;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
|
|
@ -1183,8 +1205,8 @@ body.home--sig a:hover {
|
|||
|
||||
.sigLinks a {
|
||||
color: rgba(226, 232, 240, 0.88);
|
||||
padding: 8px 10px;
|
||||
border-radius: 14px;
|
||||
padding: 7px 9px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
|
|
@ -1220,7 +1242,7 @@ body.home--sig a:hover {
|
|||
align-items: center;
|
||||
gap: 10px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-size: 13px;
|
||||
font-size: 12px;
|
||||
color: rgba(226, 232, 240, 0.70);
|
||||
letter-spacing: 0.01em;
|
||||
margin: 0 0 18px;
|
||||
|
|
@ -1268,20 +1290,20 @@ body.home--sig a:hover {
|
|||
|
||||
.sigTitle {
|
||||
margin: 0 0 10px;
|
||||
font-size: clamp(54px, 7.2vw, 92px);
|
||||
font-size: clamp(48px, 6.6vw, 84px);
|
||||
line-height: 1.02;
|
||||
letter-spacing: -0.03em;
|
||||
font-weight: 920;
|
||||
letter-spacing: -0.024em;
|
||||
font-weight: 820;
|
||||
color: rgba(255, 255, 255, 0.96);
|
||||
}
|
||||
|
||||
.sigTitle--sub {
|
||||
font-size: clamp(40px, 5.6vw, 64px);
|
||||
font-size: clamp(38px, 5.2vw, 58px);
|
||||
}
|
||||
|
||||
.sigTag {
|
||||
margin: 0 0 8px;
|
||||
font-size: 18px;
|
||||
font-size: 16px;
|
||||
color: rgba(226, 232, 240, 0.80);
|
||||
}
|
||||
|
||||
|
|
@ -1291,13 +1313,61 @@ body.home--sig a:hover {
|
|||
color: rgba(226, 232, 240, 0.62);
|
||||
}
|
||||
|
||||
.sigActions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.sigAction {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px 12px;
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: rgba(226, 232, 240, 0.92);
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.01em;
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.05),
|
||||
0 22px 70px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
.sigAction:hover {
|
||||
border-color: rgba(255, 255, 255, 0.22);
|
||||
background: rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
|
||||
.sigAction--primary {
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border-color: rgba(255, 255, 255, 0.16);
|
||||
color: rgba(11, 18, 32, 0.92);
|
||||
}
|
||||
|
||||
.sigAction--primary:hover {
|
||||
background: rgba(255, 255, 255, 0.98);
|
||||
}
|
||||
|
||||
.sigTiny {
|
||||
margin: 12px auto 0;
|
||||
max-width: 80ch;
|
||||
font-size: 12px;
|
||||
color: rgba(226, 232, 240, 0.55);
|
||||
}
|
||||
|
||||
.sigHow {
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.sigHow__kicker {
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
font-weight: 780;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: rgba(226, 232, 240, 0.55);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue