mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00

The old video still use the old syntax and the name SixtyFPS. Used the video that creates a small calculator for Rust
513 lines
15 KiB
HTML
513 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- cSpell: ignore Termina liga -->
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="author" content="SixtyFPS GmbH" />
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
<!-- fonts-->
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: "Overpass";
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url("/fonts/Overpass/Overpass-Bold.woff2");
|
|
}
|
|
@font-face {
|
|
font-family: "Overpass";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url("/fonts/Overpass/Overpass-Regular.woff2");
|
|
}
|
|
@font-face {
|
|
font-family: "Termina";
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url("/fonts/Termina/Termina-Bold.woff2");
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
:root {
|
|
--SLINT_blue: #0025ff;
|
|
--SLINT_black: #000000;
|
|
--SLINT_white: white;
|
|
--SLINT_fond_bright: #fbfdff;
|
|
--SLINT_fond_dark: #e7e9f4;
|
|
--Gradient_Radial_DARK: radial-gradient(
|
|
166.77% 121.81% at 72.08% 71.04%,
|
|
#2c2f36 10%,
|
|
#202328 33%,
|
|
#040708 94%
|
|
);
|
|
--SLINT_Dark_Grey1: #2c2f36;
|
|
--LINK_Yellow_Green: #dbff00;
|
|
--section-width: 46rem;
|
|
|
|
font-size: 24px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
font-family: "Overpass", sans-serif;
|
|
font-style: normal;
|
|
font-feature-settings: "liga" off;
|
|
padding-top: 80px; /* for the nav */
|
|
|
|
background: white;
|
|
}
|
|
|
|
:target::before {
|
|
/* for the nav */
|
|
content: "";
|
|
display: block;
|
|
height: 80px;
|
|
margin: -80px 0 0 0;
|
|
}
|
|
|
|
section:target::before {
|
|
/* It's better to have a bigger gap between sections than putting the wrong background */
|
|
margin-top: -30px;
|
|
margin-bottom: -30px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--SLINT_blue);
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-weight: bold;
|
|
font-family: "Termina", sans-serif;
|
|
padding: 0;
|
|
line-height: 110%;
|
|
}
|
|
|
|
img {
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
/* Desktop */
|
|
nav#Nav {
|
|
top: 0;
|
|
position: fixed;
|
|
width: 100vw;
|
|
height: 80px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: var(--SLINT_black);
|
|
color: var(--SLINT_white);
|
|
|
|
z-index: 10000;
|
|
white-space: nowrap;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
nav#Nav > a#main_logo {
|
|
height: 85%;
|
|
padding: 6.5px 0px 6.5px 24px;
|
|
}
|
|
|
|
nav#Nav img {
|
|
height: 100%;
|
|
}
|
|
|
|
nav#Nav ul {
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
padding: 16px;
|
|
margin: 0;
|
|
|
|
font-weight: bold;
|
|
color: var(--SLINT_white);
|
|
font-size: 16px;
|
|
}
|
|
|
|
nav#Nav li {
|
|
align-self: center;
|
|
margin: 0px 0px;
|
|
padding: 16px;
|
|
list-style-type: none;
|
|
}
|
|
|
|
nav#Nav a {
|
|
color: inherit;
|
|
}
|
|
|
|
nav#Nav #Hamburger {
|
|
display: none;
|
|
}
|
|
|
|
#Header {
|
|
padding: 0px;
|
|
margin: 0px;
|
|
width: 100%;
|
|
background: var(--SLINT_black);
|
|
background-image: url("https://slint-ui.com/new_images/Header.svg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
color: var(--SLINT_white);
|
|
padding: 4rem 5.3rem 3rem 5.3rem;
|
|
}
|
|
|
|
#Header h2,
|
|
#Header h1 {
|
|
font-size: 88px;
|
|
line-height: 110%;
|
|
max-width: var(--section-width);
|
|
margin: auto;
|
|
}
|
|
#Header small {
|
|
display: block;
|
|
max-width: var(--section-width);
|
|
margin: auto;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#Footer {
|
|
color: var(--SLINT_white);
|
|
background: radial-gradient(
|
|
165.83% 121.13% at 86.81% -12.61%,
|
|
#2c2f36 0%,
|
|
#040708 53.92%
|
|
);
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 4vw;
|
|
clear: both;
|
|
}
|
|
|
|
#Footer > div {
|
|
font-size: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: start;
|
|
}
|
|
|
|
#Footer h6 {
|
|
font-size: inherit;
|
|
padding: 0;
|
|
margin: 0 0 1.5ex 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#Footer a {
|
|
color: white;
|
|
margin: 0 0 1ex 0;
|
|
}
|
|
|
|
body > section {
|
|
background: radial-gradient(
|
|
94.58% 219.72% at 25.28% -66.56%,
|
|
#2c2f36 8.15%,
|
|
#040708 59%
|
|
);
|
|
padding: 0 0 3em 0;
|
|
color: var(--SLINT_white);
|
|
margin: 0;
|
|
}
|
|
body > section a {
|
|
color: var(--LINK_Yellow_Green);
|
|
}
|
|
body > section > h2,
|
|
body > section > h1 {
|
|
font-weight: bold;
|
|
font-size: 56px;
|
|
line-height: 61px;
|
|
padding: 42px max(42px, (100vw - var(--section-width))/2 + 42px);
|
|
max-width: none;
|
|
margin: 0px;
|
|
}
|
|
body > section > h3:first-child {
|
|
padding: 1ex max(42px, (100vw - var(--section-width))/2 + 42px);
|
|
max-width: none;
|
|
margin: 0px;
|
|
}
|
|
|
|
body > section > :first-child {
|
|
padding-top: 2ex;
|
|
margin-top: 0;
|
|
}
|
|
|
|
body > section > * {
|
|
padding: 0px 84px;
|
|
max-width: var(--section-width);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
@media (max-width: 800px) {
|
|
:root {
|
|
font-size: 18px;
|
|
}
|
|
|
|
nav#Nav #Hamburger {
|
|
display: block;
|
|
flex-grow: 1;
|
|
text-align: right;
|
|
padding-right: 24px;
|
|
}
|
|
|
|
nav#Nav:not(:target) ul {
|
|
height: 0;
|
|
}
|
|
|
|
nav#Nav:target a.hamburger-close {
|
|
float: right;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 50%;
|
|
height: 100%;
|
|
}
|
|
|
|
nav#Nav ul {
|
|
position: fixed;
|
|
top: 80px;
|
|
background: black;
|
|
flex-direction: column;
|
|
width: 100vw;
|
|
height: calc(100vh - 80px);
|
|
padding: 0;
|
|
font-size: 37px;
|
|
font-family: "Termina";
|
|
justify-content: center;
|
|
transition: height 150ms ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#Header {
|
|
padding: 64px 26vw 76px 6vw;
|
|
}
|
|
|
|
#Header h2,
|
|
#Header h1 {
|
|
line-height: 110%;
|
|
font-size: 24px;
|
|
}
|
|
|
|
#Footer {
|
|
background: radial-gradient(
|
|
94.58% 219.72% at 25.28% -66.56%,
|
|
#2c2f36 8.15%,
|
|
#040708 59%
|
|
);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
align-items: start;
|
|
padding: 40px;
|
|
gap: 60px;
|
|
}
|
|
|
|
body > section {
|
|
background: radial-gradient(
|
|
94.58% 219.72% at 25.28% -66.56%,
|
|
#2c2f36 8.15%,
|
|
#040708 59%
|
|
);
|
|
padding: 0 0 3em 0;
|
|
}
|
|
|
|
body > section > h2 {
|
|
font-weight: bold;
|
|
font-size: 30px;
|
|
padding: 34px 3vw;
|
|
}
|
|
|
|
body > section > * {
|
|
padding: 0px 3vw;
|
|
}
|
|
|
|
@media (max-height: 700px) {
|
|
nav#Nav ul {
|
|
font-size: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
nav#Nav il {
|
|
padding: 0.75ex;
|
|
}
|
|
}
|
|
}
|
|
|
|
a.btn {
|
|
background: var(--LINK_Yellow_Green);
|
|
color: black;
|
|
border-radius: 1000px;
|
|
padding: 2ex 4ex;
|
|
text-align: center;
|
|
|
|
font-weight: bold;
|
|
font-size: 0.55rem;
|
|
text-align: center;
|
|
letter-spacing: -0.02em;
|
|
margin: 1ex 0;
|
|
}
|
|
|
|
</style>
|
|
|
|
<meta name="description" content="Slint Toolkit" />
|
|
<title>Slint Documentation</title>
|
|
</head>
|
|
|
|
<body>
|
|
<!-- Nav -->
|
|
<nav id="Nav">
|
|
<a href="https://slint-ui.com/" id="main_logo"
|
|
><img src="https://slint-ui.com/new_images/slint_logo_neg_RGB.svg" alt="Slint logo"
|
|
/></a>
|
|
</nav>
|
|
|
|
<div id="Header">
|
|
<h2>Slint - The fast and easy UI Toolkit</h2>
|
|
</div>
|
|
|
|
<style>
|
|
#docs {
|
|
background: #2c2f36;
|
|
}
|
|
#docs ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: stretch;
|
|
align-items: start;
|
|
}
|
|
#docs li {
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-rows: 1fr .5fr auto;
|
|
justify-content: center;
|
|
margin: 0px;
|
|
padding: 0px 5px;
|
|
list-style-type: none;
|
|
text-align: center;
|
|
font-size: 24px;
|
|
}
|
|
|
|
#docs li img {
|
|
object-fit: contain;
|
|
border: none;
|
|
width: 130px;
|
|
height: 130px;
|
|
margin: 44px auto;
|
|
}
|
|
|
|
#docs li strong {
|
|
padding-bottom: 2ex;
|
|
}
|
|
|
|
#docs li a {
|
|
display: block;
|
|
align-self: end;
|
|
justify-self: center;
|
|
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
#docs ul {
|
|
flex-wrap: wrap;
|
|
row-gap: 24px;
|
|
}
|
|
#docs li {
|
|
width: 400px;
|
|
}
|
|
#docs li:nth-child(2n) {
|
|
border-right: none;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<section id="docs">
|
|
<h2>Documentation</h2>
|
|
|
|
<ul>
|
|
<li>
|
|
<img src="https://slint-ui.com/new_images/slint_logo_white.svg" alt="Slint" />
|
|
<strong>Slint Language</strong>
|
|
<a class="btn" href="slint/index.html">📖 Slint Language Documentation</a>
|
|
</li>
|
|
<li>
|
|
<img
|
|
src="https://slint-ui.com/new_images/rust_logo_white.svg"
|
|
alt="Rust Logo"
|
|
/>
|
|
<strong>Using Slint in a Rust Project</strong>
|
|
<a class="btn" href="rust/slint">📖 Rust Documentation</a>
|
|
<br />
|
|
<a class="btn" href="tutorial/rust">👨🏫 Rust Tutorial</a>
|
|
<br />
|
|
<a class="btn" href="https://youtu.be/WBcv4V-whHk" >🎬 Tutorial Video</a>
|
|
<br />
|
|
<a class="btn" href="https://github.com/slint-ui/slint-rust-template" >📝 Project Template</a >
|
|
</li>
|
|
<li>
|
|
<img src="https://slint-ui.com/new_images/cpp_logo_white.svg" alt="C++ Logo" />
|
|
<strong>Using Slint in a C++ Project</strong>
|
|
<a class="btn" href="cpp/">📖 C++ Documentation</a>
|
|
<br />
|
|
<a class="btn" href="tutorial/cpp">👨🏫 C++ Tutorial</a>
|
|
<br />
|
|
<a class="btn" href="https://github.com/slint-ui/slint-rust-template" >📝 Project Template</a >
|
|
</li>
|
|
<li>
|
|
<img src="https://slint-ui.com/new_images/node_logo_white.svg" alt="NodeJS Logo" />
|
|
<strong>Using Slint in a NodeJS Project (Beta)</strong>
|
|
<a class="btn" href="node">📖 NodeJS Documentation</a>
|
|
<br />
|
|
<a class="btn" href="tutorial/node">👨🏫 NodeJS Tutorial</a>
|
|
<br />
|
|
<a class="btn" href="https://github.com/slint-ui/slint-nodejs-template" >📝 Project Template</a >
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<div id="Footer">
|
|
<div>
|
|
<a href="https://slint-ui.com/" id="main_logo">
|
|
<img src="https://slint-ui.com/new_images/slint_logo_neg_RGB.svg" alt="Slint logo" />
|
|
</a>
|
|
<address>Copyright © 2023 SixtyFPS GmbH</address>
|
|
</div>
|
|
|
|
<div>
|
|
<h6>Company</h6>
|
|
<a href="https://github.com/slint-ui/slint">GitHub</a>
|
|
<a href="https://slint-ui.com/imprint.html">Imprint</a>
|
|
<a href="https://slint-ui.com/imprint.html#privacy">Privacy Policy</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|