Skip to content

Commit da2dfc6

Browse files
authored
Merge pull request #1 from haselkern/master
Prettier website
2 parents dbe033f + adfa838 commit da2dfc6

1 file changed

Lines changed: 78 additions & 5 deletions

File tree

index.html

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,82 @@
1-
<img src="book/images/logo/rhai-logo-transparent-colour-black.svg" width="500px" />
1+
<!DOCTYPE HTML>
2+
<html lang="en">
3+
<head>
4+
<title>Rhai &ndash; Embedded Scripting for Rust</title>
25

3-
<h1>Rhai &ndash; Embedded scripting language and engine for Rust</h1>
6+
<meta charset="UTF-8">
7+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
8+
<meta name="description" content="Embedded scripting language and engine for Rust. A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.">
9+
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
<meta name="theme-color" content="#ffd675">
11+
12+
<link rel="shortcut icon" href="https://rhai.rs/book/favicon.png">
413

5-
<h2>Home Repo on GitHub: <a href="https://github.com/rhaiscript">https://github.com/rhaiscript</a></h2>
14+
<style>
15+
* {
16+
margin: 0;
17+
padding: 0;
18+
box-sizing: border-box;
19+
font-family: sans-serif;
20+
}
21+
body {
22+
/* Gradient from logo */
23+
background: #f67501;
24+
background: linear-gradient(180deg, #ffd675 0%, #f67501 100%);
25+
}
26+
.center {
27+
margin: 1rem;
28+
min-height: calc(100vh - 2rem);
29+
display: flex;
30+
justify-content: center;
31+
align-items: center;
32+
}
33+
main {
34+
max-width: 42rem;
35+
padding: 1rem;
36+
background: white;
37+
border-radius: 0.5rem;
38+
line-height: 1.5rem;
39+
}
40+
.space-lg {
41+
margin-top: 2rem;
42+
}
43+
.space-sm {
44+
margin-top: 1rem;
45+
}
46+
.logo {
47+
display: block;
48+
max-width: 50%;
49+
margin: 0 auto;
50+
}
51+
h1 {
52+
font-size: 1.3rem;
53+
text-align: center;
54+
}
55+
</style>
56+
</head>
57+
<body>
58+
<div class="center">
59+
<main>
60+
<img class="logo" alt="Rhai logo" src="https://rhai.rs/book/images/logo/rhai-logo-transparent-colour-black.svg" />
61+
62+
<h1 class="space-lg">Embedded scripting language and engine for Rust</h1>
663

7-
<h2>Read <i>The Rhai Book</i> <a href="book">here</a>.</h2>
64+
<p class="space-lg">
65+
A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.
66+
</p>
867

9-
<h2>Try it out at the <i>Online Playground</i> <a href="playground">here</a>.</h2>
68+
<p class="space-sm">
69+
Home Repo on GitHub: <a href="https://github.com/rhaiscript">https://github.com/rhaiscript</a>
70+
</p>
71+
72+
<p>
73+
Read <a href="book"><i>The Rhai Book</i> here</a>.
74+
</p>
75+
76+
<p>
77+
Try it out at the <a href="playground"><i>Online Playground</i> here</a>.
78+
</p>
79+
</main>
80+
</div>
81+
</body>
82+
</html>

0 commit comments

Comments
 (0)