Skip to content

Commit f9685b9

Browse files
committed
Start implementation of landing page
1 parent 865b6f7 commit f9685b9

31 files changed

+3307
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ erl_crash.dump
66
Thumbs.db
77
src/sketch/styles
88
styles/
9+
node_modules/
10+
.yarn

landing_page/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

landing_page/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# landing_page
2+
3+
[![Package Version](https://img.shields.io/hexpm/v/landing_page)](https://hex.pm/packages/landing_page)
4+
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/landing_page/)
5+
6+
```sh
7+
gleam add landing_page@1
8+
```
9+
```gleam
10+
import landing_page
11+
12+
pub fn main() {
13+
// TODO: An example of the project in use
14+
}
15+
```
16+
17+
Further documentation can be found at <https://hexdocs.pm/landing_page>.
18+
19+
## Development
20+
21+
```sh
22+
gleam run # Run the project
23+
gleam test # Run the tests
24+
```

landing_page/gleam.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name = "landing_page"
2+
version = "1.0.0"
3+
target = "javascript"
4+
5+
# Fill out these fields if you intend to generate HTML documentation or publish
6+
# your project to the Hex package manager.
7+
#
8+
# description = ""
9+
# licences = ["Apache-2.0"]
10+
# repository = { type = "github", user = "", repo = "" }
11+
# links = [{ title = "Website", href = "" }]
12+
#
13+
# For a full reference of all the available options, you can have a look at
14+
# https://gleam.run/writing-gleam/gleam-toml/.
15+
16+
[dependencies]
17+
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
18+
redraw = ">= 1.1.0 and < 2.0.0"
19+
redraw_dom = ">= 1.1.0 and < 2.0.0"
20+
sketch = ">= 3.1.0 and < 4.0.0"
21+
sketch_redraw = ">= 1.0.0 and < 2.0.0"
22+
23+
[dev-dependencies]
24+
gleeunit = ">= 1.0.0 and < 2.0.0"

landing_page/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Sketch</title>
8+
<link href="/reset.css" rel="stylesheet" />
9+
<link href="/base.css" rel="stylesheet" />
10+
<link href="/atom.css" rel="stylesheet" />
11+
</head>
12+
<body>
13+
<div id="app"></div>
14+
<script type="module" src="/src/landing_page.mjs"></script>
15+
</body>
16+
</html>

landing_page/manifest.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file was generated by Gleam
2+
# You typically do not need to edit this file
3+
4+
packages = [
5+
{ name = "gleam_erlang", version = "0.28.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "BE551521F708DCE5CB954AFBBDF08519C1C44986521FD40753608825F48FFA9E" },
6+
{ name = "gleam_javascript", version = "0.13.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_javascript", source = "hex", outer_checksum = "F98328FCF573DA6F3A35D7F6CB3F9FF19FD5224CCBA9151FCBEAA0B983AF2F58" },
7+
{ name = "gleam_otp", version = "0.12.1", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "BFACC1513410DF5A1617169A9CD7EA334973AC71D860A17574BA7B2EADD89A6F" },
8+
{ name = "gleam_stdlib", version = "0.40.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "86606B75A600BBD05E539EB59FABC6E307EEEA7B1E5865AFB6D980A93BCB2181" },
9+
{ name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" },
10+
{ name = "redraw", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_javascript", "gleam_stdlib"], otp_app = "redraw", source = "hex", outer_checksum = "4E6F55F965FD7A4B0514E269AC61BF8EF5EE421DCC19333BF80F4874250FDFB6" },
11+
{ name = "redraw_dom", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "redraw"], otp_app = "redraw_dom", source = "hex", outer_checksum = "0FFAAA6FFA52B88C1506EB6908E07479DA51B9F55F875A596E0B48E30FCE5DCE" },
12+
{ name = "sketch", version = "3.1.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_otp", "gleam_stdlib"], otp_app = "sketch", source = "hex", outer_checksum = "F162070BCCF8BEF28C9520E80501565403E681D9E3F80844EC5ED307A2E4ADDF" },
13+
{ name = "sketch_redraw", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "redraw", "sketch"], otp_app = "sketch_redraw", source = "hex", outer_checksum = "5AB2158228C93C0AAEC24E863EE9110D871F04D76B70206FD24D208E13325BFC" },
14+
]
15+
16+
[requirements]
17+
gleam_stdlib = { version = ">= 0.34.0 and < 2.0.0" }
18+
gleeunit = { version = ">= 1.0.0 and < 2.0.0" }
19+
redraw = { version = ">= 1.1.0 and < 2.0.0" }
20+
redraw_dom = { version = ">= 1.1.0 and < 2.0.0" }
21+
sketch = { version = ">= 3.1.0 and < 4.0.0" }
22+
sketch_redraw = { version = ">= 1.0.0 and < 2.0.0" }

landing_page/package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "landing_page",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"devDependencies": {
12+
"@chouqueth/gleam": "^1.5.0",
13+
"@vitejs/plugin-react-swc": "^3.7.1",
14+
"vite": "^5.4.8",
15+
"vite-gleam": "^0.4.3"
16+
},
17+
"packageManager": "yarn@4.5.0",
18+
"dependencies": {
19+
"@gleam-lang/highlight.js-gleam": "^1.5.0",
20+
"highlight.js": "^11.10.0",
21+
"react": "^18.3.1",
22+
"react-dom": "^18.3.1"
23+
}
24+
}

landing_page/public/FiraCode.ttf

280 KB
Binary file not shown.

landing_page/public/Lexend.ttf

235 KB
Binary file not shown.

landing_page/public/atom.css

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
.hljs {
2+
display: block;
3+
overflow-x: auto;
4+
padding: 0.5em;
5+
6+
color: #24292e;
7+
background: #ffffff;
8+
}
9+
10+
.hljs-comment,
11+
.hljs-punctuation {
12+
color: #6a737d;
13+
}
14+
15+
.hljs-attr,
16+
.hljs-attribute,
17+
.hljs-meta,
18+
.hljs-selector-attr,
19+
.hljs-selector-class,
20+
.hljs-selector-id {
21+
color: #005cc5;
22+
}
23+
24+
.hljs-variable,
25+
.hljs-literal,
26+
.hljs-number,
27+
.hljs-doctag {
28+
color: #e36209;
29+
}
30+
31+
.hljs-params {
32+
}
33+
34+
.hljs-function {
35+
color: #6f42c1;
36+
}
37+
38+
.hljs-class,
39+
.hljs-tag,
40+
.hljs-title,
41+
.hljs-built_in {
42+
color: #22863a;
43+
color: #005cc5;
44+
}
45+
46+
.hljs-keyword,
47+
.hljs-type,
48+
.hljs-builtin-name,
49+
.hljs-meta-keyword,
50+
.hljs-template-tag,
51+
.hljs-template-variable {
52+
color: #d73a49;
53+
}
54+
55+
.hljs-string,
56+
.hljs-undefined {
57+
color: #032f62;
58+
color: #22863a;
59+
}
60+
61+
.hljs-regexp {
62+
color: #032f62;
63+
}
64+
65+
.hljs-symbol {
66+
color: #005cc5;
67+
}
68+
69+
.hljs-bullet {
70+
color: #e36209;
71+
}
72+
73+
.hljs-section {
74+
color: #005cc5;
75+
font-weight: bold;
76+
}
77+
78+
.hljs-quote,
79+
.hljs-name,
80+
.hljs-selector-tag,
81+
.hljs-selector-pseudo {
82+
color: #22863a;
83+
}
84+
85+
.hljs-emphasis {
86+
color: #e36209;
87+
font-style: italic;
88+
}
89+
90+
.hljs-strong {
91+
color: #e36209;
92+
font-weight: bold;
93+
}
94+
95+
.hljs-deletion {
96+
color: #b31d28;
97+
background-color: #ffeef0;
98+
}
99+
100+
.hljs-addition {
101+
color: #22863a;
102+
background-color: #f0fff4;
103+
}
104+
105+
.hljs-link {
106+
color: #032f62;
107+
font-style: underline;
108+
}

0 commit comments

Comments
 (0)