Skip to content

Commit

Permalink
Documentation: improve design
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Aug 31, 2023
1 parent c5b1128 commit 4ff7d8a
Show file tree
Hide file tree
Showing 19 changed files with 249 additions and 63 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ api.video lets you customize a large part of the delivery, whether it's the play

{% endcapture %}

{% include "_partials/vod-product-grid-item.md" product: "Video", subheading: "on demand", description: vod-description, link: "/vod/README.md" %}
{% include "_partials/live-stream-product-grid-item.md" product: "Live", subheading: "streaming", description: live-stream-description, link: "/live-streaming/README.md" %}
{% include "_partials/player-analytics-product-grid-item.md" product: "Player", subheading: "& analytics", description: player-analytics-description, link: "/delivery-analytics/README.md" %}
{% include "_partials/product-grid-item.md" product: "Video", subheading: "on demand", description: vod-description, link: "/vod/README.md" %}
{% include "_partials/product-grid-item.md" product: "Live", subheading: "streaming", description: live-stream-description, link: "/live-streaming/README.md" %}
{% include "_partials/product-grid-item.md" product: "Player", subheading: "& analytics", description: player-analytics-description, link: "/delivery-analytics/README.md" %}

</div>

Expand Down
Binary file added _assets/fonts/JetBrainsMono[wght].ttf
Binary file not shown.
Binary file not shown.
93 changes: 93 additions & 0 deletions _assets/fonts/inter/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2020 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 & 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.
72 changes: 72 additions & 0 deletions _assets/fonts/inter/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Inter Variable Font
===================

This download contains Inter as both a variable font and static fonts.

Inter is a variable font with these axes:
slnt
wght

This means all the styles are contained in a single file:
Inter-VariableFont_slnt,wght.ttf

If your app fully supports variable fonts, you can now pick intermediate styles
that aren’t available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Inter:
static/Inter-Thin.ttf
static/Inter-ExtraLight.ttf
static/Inter-Light.ttf
static/Inter-Regular.ttf
static/Inter-Medium.ttf
static/Inter-SemiBold.ttf
static/Inter-Bold.ttf
static/Inter-ExtraBold.ttf
static/Inter-Black.ttf

Get started
-----------

1. Install the font files you want to use

2. Use your app's font picker to view the font family and all the
available styles

Learn more about variable fonts
-------------------------------

https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts

In desktop apps

https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts

Online

https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts

Installing fonts

MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows

Android Apps

https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts

License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.

You can use them in your products & projects – print or digital,
commercial or otherwise.

This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.
Binary file added _assets/fonts/inter/static/Inter-Black.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-Bold.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-ExtraBold.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-ExtraLight.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-Light.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-Medium.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-Regular.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-SemiBold.ttf
Binary file not shown.
Binary file added _assets/fonts/inter/static/Inter-Thin.ttf
Binary file not shown.
79 changes: 54 additions & 25 deletions _assets/landing.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
:root {
--AV_Primary_Blue_06: #414F6E99
--AV_Primary_Blue: #414F6E
--AV_BG_Gradient: #46396C
}

.hero {
text-align: left;
max-width: 42rem;
max-width: 100%;
margin-left: auto;
margin-right: auto;
}

.hero h1 {
font-weight: 200 !important;
font-size: 64px !important;
font-size: 34px !important;
font-style: normal !important;
font-weight: 500 !important;
line-height: 34px !important;
}

.hero h3 {
margin-bottom: 24px !important;
color: var(--AV_Primary_Blue_06, rgba(65, 79, 110, 0.60)) !important;
font-family: JetBrains Mono, sans-serif;
font-size: 16px !important;
font-style: normal !important;
font-weight: 400 !important;
line-height: 16px !important; /* 100% */
letter-spacing: -0.32px !important;
text-transform: uppercase;

}

.hero .links {
Expand Down Expand Up @@ -131,6 +152,14 @@
.product-grid-item-header p {
font-weight: 200 !important;
}
.product-grid-item-header h3 {
color: #FFF;
font-size: 30px !important;
font-style: normal !important;
font-weight: 700 !important;
line-height: normal !important;
letter-spacing: -0.6px !important;
}
.product-grid-item-header {
padding-left: 2rem;
padding-right: 2rem;
Expand All @@ -139,45 +168,45 @@
}

.product-grid-item-header.Video {
background: rgb(211, 74, 191);
background: linear-gradient(
38deg,
rgba(211, 74, 191, 1) 0%,
rgba(253, 187, 45, 1) 100%
);
background: linear-gradient(215deg, #FA5B30 -5.18%, #F7B500 179.35%);
}

.product-grid-item-header.Live {
background: rgb(201, 74, 211);
background: linear-gradient(
38deg,
rgba(201, 74, 211, 1) 0%,
rgba(102, 45, 253, 1) 100%
);
background: var(--AV_urp_icon, linear-gradient(76deg, #642180 -24.15%, #AF2A72 93.03%));
}

.product-grid-item-header.Player {
background: rgb(201, 74, 211);
background: linear-gradient(
38deg,
rgb(78, 179, 223) 0%,
rgb(140, 117, 201) 100%
);
background: var(--AV_BG_Gradient, radial-gradient(204.77% 98.38% at 87.15% 25.85%, rgba(78, 178, 221, 0.18) 0%, rgba(42, 124, 159, 0.00) 100%), linear-gradient(0deg, rgba(109, 27, 132, 0.40) -16.17%, rgba(109, 27, 132, 0.00) 84.97%), #46396C);
}

.product-grid-item-body {
padding: 2rem;
padding-bottom: 0;
}

.product-grid-item-body p {
.product-grid-item-body-description p {
opacity: 0.6;
color: var(--AV_Primary_Blue, #414F6E);
font-family: Inter;
font-size: 14px;
margin: 0 !important;
font-style: normal;
font-weight: 400;
line-height: 140%; /* 19.6px */
}

.product-grid-item-body a {
.product-grid-item-body p a {
color: var(--AV_Primary_Orange, #FA5B30);
text-align: center;
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 700 !important;
line-height: 14px; /* 100% */
letter-spacing: -0.28px;

display: inline-block;
border-radius: 4px;
margin-top: 0.5rem;

background: rgb(250, 91, 48, 0.2);
padding-left: 1rem;
padding-right: 1rem;
Expand Down
27 changes: 26 additions & 1 deletion _assets/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
@font-face {
font-family: Inter;
src: url("/_assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf");
}

@font-face {
font-family: JetBrains Mono;
src: url("/_assets/fonts/JetBrainsMono[wght].ttf");
}

.callout {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
Expand Down Expand Up @@ -151,6 +161,7 @@
display: none;
}


.hagrid-item {
color: black !important;
text-decoration: none !important;
Expand Down Expand Up @@ -204,6 +215,10 @@
text-decoration: none !important;
}

.dark .hagrid-item-title a, .dark .hagrid-item-subtitle a {
color: white !important;
}

.link-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
Expand Down Expand Up @@ -311,4 +326,14 @@
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
grid-gap: 2rem;
}
}


.content-markdown {
padding-left: 0 !important;
padding-right: 0 !important;
max-width: 100% !important;
padding-left: 80px !important;
font-family: "Inter" !important;
}

16 changes: 0 additions & 16 deletions _partials/player-analytics-product-grid-item.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

</div>
<div class="product-grid-item-body">

{{ live-stream-description }}
<div class="product-grid-item-body-description">{{ description }}</div>

[Learn More]({{ link }})

Expand Down
16 changes: 0 additions & 16 deletions _partials/vod-product-grid-item.md

This file was deleted.

0 comments on commit 4ff7d8a

Please sign in to comment.