forked from srobo/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (102 loc) · 3.5 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
---
layout: home
---
<div class="main home-main">
<div class="card">
<div class="fixed-width">
<div class="row">
<ul class="side-navigation">
<li class="column l-4-12">
<a href="/ide/">
<p class="link-icon"><i class="fa fa-fw fa-2x fa-cogs"></i></p>
<p>
<span class="link-title">IDE</span>
<span class="link-description">Develop and deploy code to your robot.</span>
</p>
</a>
</li>
<li class="column l-4-12">
<a href="/docs/">
<p class="link-icon"><i class="fa fa-fw fa-2x fa-book"></i></p>
<p>
<span class="link-title">Documentation</span>
<span class="link-description">Learn how to use the kit.</span>
</p>
</a>
</li>
<li class="column l-4-12">
<a href="/forum/">
<p class="link-icon"><i class="fa fa-fw fa-2x fa-users"></i></p>
<p>
<span class="link-title">Forums</span>
<span class="link-description">Stuck? Ask questions and help others.</span>
</p>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="fixed-width">
<div class="row">
<div class="sidebar column m-4-12">
<div class="card">
<h3 class="card-heading">Upcoming Events</h3>
{% assign any_events = false %}
{% for event in site.events %}
{% if event.date > site.time %}
{% assign any_events = true %}
{% endif %}
{% endfor %}
{% if any_events %}
<ul class="event-list">
{% for event in site.events %}
{% if event.date > site.time %}
<li class="event">
<p class="event-name"><a href="{{ event.url | prepend: site.baseurl }}">{{ event.title }}</a></p>
<p class="event-details">
{{ event.date | date: "%e %B, %Y" }}
•
<span class="event-location">{{ event.location }}</span>
</p>
</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
<p>There are no upcoming events.</p>
{% endif %}
<a href="{{ '/events/' | prepend: site.baseurl }}">Past events</a>
</div>
<div class="card">
<h3 class="card-heading">Sponsors</h3>
<ul class="sponsor-list">
{% for sponsor in site.sponsors %}
<li>
<a href="{{ sponsor.link }}">
<img src="{{ sponsor.image | prepend: site.baseurl }}" alt="{{ sponsor.name }}"/>
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="column m-8-12">
{% assign post = site.posts.first %}
<div class="card">
<h3 class="card-heading">Latest News</h3>
<div class="article article-preview">
<div class="article-header">
<h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p class="article-info">Published {{ post.date | date: "%e %B, %Y" }}</p>
</div>
<div class="article-content">
{{ post.content }}
</div>
</div>
<a class="button button-expand" href="{{ '/news' | prepend: site.baseurl }}">View more news</a>
</div>
</div>
</div>
</div>
</div>