-
Notifications
You must be signed in to change notification settings - Fork 54
/
index.html
119 lines (118 loc) · 5.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
layout: default
title: "Index"
css: index
regenerate: true
---
<div class="bg-erlang-grey">
<div class="container banner px-0 px-md-2">
<div class="slogan text-center">
<h4 class="px-4 pt-4 text-light">
Practical functional programming<br /> for a parallel world
</h4>
<!-- <h4 class="px-4 pt-4 text-light">
Build massively scalable soft real-time systems
</h4> -->
</div>
<div class="download text-center">
<!-- We hide the download button on small screens as most likely it is a mobile
and no one want to workload Erlang on a mobile -->
<div class="btn-group">
{% assign majorReleases = site.releases | reverse | first %}
<a href="{{ '/downloads' | relative_url }}"
class="btn btn-success d-inline-flex align-items-center gap-1">
Get Erlang/OTP {{ majorReleases.release }}
{% include svg-symbol.html symbol="download" width="20" height="20" %}
</a>
</div>
</div>
<!-- We have two different examples that are shown
depending on the size of the viewport -->
<div class="example">
{% assign sizes = "large,small" | split: "," %}
{% for size in sizes %}
<div class="{{ size }}">
<div id="{{ size }}-example-carousel" class="h-100 carousel slide" data-bs-ride="carousel">
<div class="carousel-inner h-100">
{% assign active="active" %}
{% for example in site.examples %}
{% if example.display == nil or example.display == size %}
<div class="h-100 carousel-item {{ active }}" data-bs-interval="10000">
<div class="h-100 d-flex flex-column">
<div class="flex-grow-1 mx-auto">
{{ example.content | markdownify }}
</div>
<div class="text-light text-center">
<p>{{ example.description }}</p>
</div>
</div>
</div>
{% assign active = "" %}
{% endif %}
{% endfor %}
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#{{ size }}-example-carousel"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#{{ size }}-example-carousel"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<main class="content container">
<div class="what-is-erlang">
<h4>What is Erlang?</h4>
<p class="ps-3">Erlang is a programming language used to build massively scalable soft real-time
systems with requirements on high availability. Some of its uses are in telecoms, banking,
e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in
support for concurrency, distribution and fault tolerance.</p>
<a href="{{ '/doc/getting_started/intro.html' | relative_url }}" role="button"
class="btn btn-primary float-end d-inline-flex align-items-center">
Erlang Quickstart
{% include svg-symbol.html symbol="arrow-right" width="24" height="24" %}
</a>
</div>
<div class="what-is-otp">
<h4>What is OTP?</h4>
<p class="ps-3">OTP is set of Erlang libraries and design principles providing middle-ware to
develop these systems. It includes its own distributed database, applications to interface
towards other languages, debugging and release handling tools.</p>
<a href="{{ '/doc/design_principles/des_princ.html' | relative_url }}" role="button"
class="btn btn-primary float-end d-inline-flex align-items-center">
Getting Started with OTP
{% include svg-symbol.html symbol="arrow-right" width="24" height="24" %}
</a>
</div>
<div class="news">
<h4>News</h4>
<dl class="ps-3">
{% assign all_news = site.news | concat: site.posts | sort: "date" | reverse %}
{% for news in all_news limit:3 %}
<dt>
<h5><a href="{{ news.url | relative_url }}">{{ news.title }}</a></h5>
<small class="ps-2">{{ news.date | date: "%B %d, %Y" }} by {{ news.author }}</small>
</dt>
<dd class="px-3 py-1">
{{ news.lead | default: news.excerpt | strip_html | truncate: 250 }}
</dd>
{% endfor %}
</dl>
</div>
<div class="participate">
<h4>Participate</h4>
<p class="ps-3">
<a href="https://erlef.org"><img alt="Join the Erlang Ecosystem Foundation"
src="{{ '/assets/img/eef.png' | relative_url }}" class="img-fluid" width="174"></a>
</p>
</div>
</main>
<script src="{{'/assets/js/prismjs/prism.js' | prepend: site.baseurl }}"></script>
<script src="{{'/assets/js/prismjs/components/prism-erlang.js' | prepend: site.baseurl }}"></script>