forked from hltj/kotlin-web-site-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (60 loc) · 3.2 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
{% set restyled="v2" %}
{% extends 'base.html' %}
{% set headerDropdownTheme = "dark" %}
{% set metaDescription = "Kotlin is a programming language that makes coding concise, cross-platform, and fun. It is Google’s preferred language for Android app development." %}
{% block head_preload %}
<link rel="preload" href="/assets/fonts/Inter/Inter-Regular.woff2" as="font">
<link rel="preload" href="/assets/fonts/Inter/Inter-Bold.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Regular.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Bold.woff2" as="font">
<link rel="preload" href="/assets/fonts/JetBrainsMono/JetBrainsMono-Italic.woff2" as="font">
{% endblock %}
{% block body_class %}page__index-new{% endblock %}
{% block page_outer_content %}
{% include 'inc/pages/index/intro.html' %}
<section class="kotlin-banner-section kto-overview-section kto-overview-section_mode_dark kotlin-banner-section_first" data-test="index-page-banner">
<div class="g-layout">
{% include 'inc/pages/index/latest-news.html' %}
</div>
</section>
{% include 'inc/pages/index/code-examples.html' %}
{% include 'inc/pages/index/kotlin-values.html' %}
{% include 'inc/pages/index/why-section.html' %}
<section id="usage-highlights" class="kto-overview-section kotlin-highlights-section">
<div class="g-layout">
<h2 class="kotlin-highlights-section__title kto-heading kto-heading_size_hero">
<a class="kto-anchor-link kto-anchor-link--hover-white" href="#usage-highlights">Kotlin 用途集锦</a>
</h2>
<div class="kto-highlights">
{% for testimonial in data.testimonials %}
<a class="kto-highlights-item kto-highlights-item_company_{{ testimonial.company.lower() | safe }}"
href="{{ testimonial.url | safe }}" target="_blank">
<h3 class="kto-highlights-item__header">{{ testimonial.company | safe }}</h3>
<div class="kto-highlights-item__text">{{ testimonial.text | safe }}</div>
</a>
{% endfor %}
</div>
</div>
</section>
<section id="get-started" class="kto-overview-section kotlin-get-started-section">
<div class="g-layout">
<p class="kto-text kto-text_size_s">Want to give it a try?</p>
<h2 class="kto-heading kto-heading_size_hero kotlin-get-started-section__title">
<a class="kto-anchor-link" href="#get-started">
立即开始使用 Kotlin!<br>
在喜欢的 IDE 中构建你的第一个应用
</a>
</h2>
<a
class="kto-button kto-button_size_m kto-button_mode_contrast smooth-anchor"
href="/docs/getting-started.html"
>入门</a>
</div>
</section>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ url_for('static', filename='index.css')|autoversion }}">
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='index.js')|autoversion }}"></script>
{% endblock %}