aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/home/index.html
blob: 24806399b7539e4cb627bfafd6ec1720234c9289 (plain) (blame)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{% extends 'base/base.html' %}
{% load static %}

{% block title %}Home{% endblock %}
{% block head %}
  <link rel="stylesheet" href="{% static "css/home/index.css" %}">
{% endblock %}

{% block content %}
  {% include "base/navbar.html" %}

  <article class="message is-primary is-hidden-tablet notice">
    <div class="message-header">
      <p>100K Member Milestone!</p>
    </div>
    <div class="message-body">
      Thanks to all our members for helping us create this friendly and helpful community!
      <br><br>
      As a nice treat, we've created a <a href="{% url 'timeline' %}">Timeline page</a> for people
      to discover the events that made our community what it is today. Be sure to check it out!
    </div>
  </article>
  <section class="section main-head is-hidden-mobile">
      <div class="container is-spaced above-waves">
        <div class="columns">
          <div class="column is-half">
            <div class="aspect-wrapper">
              <iframe
              class="welcome-video aspect-content"
              src="https://www.youtube.com/embed/ZH26PuX3re0"
              srcdoc="<style>*{padding:0;margin:0;overflow:hidden}html,body{height:100%}img,span{position:absolute;width:100%;top:0;bottom:0;margin:auto}span{height:1.5em;text-align:center;font:68px/1.5 sans-serif;color:#FFFFFFEE;text-shadow:0 0 0.1em #00000020}</style><a href=https://www.youtube.com/embed/ZH26PuX3re0?autoplay=1><img src=https://i.ytimg.com/vi/ZH26PuX3re0/maxresdefault.jpg alt='Welcome to Python Discord'><span>▶</span></a>"
              frameborder="0"
              allow="autoplay; accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
              allowfullscreen
              ></iframe>
            </div>
          </div>

          <div class="column is-half hero-card has-text-right">
              <img src="{% static "images/events/100k.png" %}" alt="100K members!">
          </div>

        </div>

      </div>

    <div class="wave"></div>
    <div class="wave"></div>
    <div class="bottom-wave"></div>

  </section>
  <section class="section">

    {# Who are we? #}
    <div class="container is-spaced">
      <h1 class="is-size-1">Who are we?</h1>
      <br>
      <div class="columns is-desktop">
        <div class="column is-half-desktop content">
          <p>
            We're a large community focused around the Python programming language.
            We believe anyone can learn to code, and are very dedicated to helping
            novice developers take their first steps into the world of programming. We also
            attract a lot of expert developers who are seeking friendships, collaborators,
            and who wish to hone their craft by teaching and getting involved in the community.
          </p>
          <p>
            We organise regular community events such as code jams, open-source hackathons,
            seasonal events, and community challenges. Through our sponsorships and donations,
            many of our events even have prizes to win!
          </p>
          <p>
            You can find help with most Python-related problems in one of our help channels.
            Our staff of over 50 dedicated expert Helpers are available around the clock
            in every timezone. Whether you're looking to learn the language or working on a
            complex project, we've got someone who can help you if you get stuck.
          </p>
        </div>

        {# Right column container #}
        <div class="column is-half-desktop showcase has-text-centered">
          <div class="box">
            <p class="title">
              New Timeline!
            </p>
            <div class="mini-timeline">
              <i class="fa fa-asterisk mtl-item"></i>
              <i class="fa fa-code mtl-item"></i>
              <i class="fab fa-python mtl-item"></i>
              <i class="fa fa-alien-monster mtl-item"></i>
              <i class="fa fa-duck mtl-item"></i>
              <i class="fa fa-bug mtl-item"></i>
            </div>
            <p class="subtitle">
              Start from our humble beginnings to discover the events that made our community what it is today.
            </p>
            <div class="buttons are-large is-centered">
              <a href="{% url 'timeline' %}">
                <button class="button is-primary">
                  <span>Check it out!</span>
                  <span class="icon">
                    <i class="fas fa-arrow-right"></i>
                  </span>
                </button>
              </a>
            </div>
          </div>
        </div>
      </div>

      {# Projects #}
      <h1 class="is-size-1">Projects</h1>
      <br>
      <div class="columns is-multiline is-tablet">

        {# Display projects from HomeView.repos #}
        {% for repo in repo_data %}
          <div class="column is-one-third-desktop is-half-tablet">
            <div class="card has-equal-height github-card">
              <div class="card-content">
                <div class="repo-headline">
                  <i class="fab fa-github"></i>
                  <a href="https://github.com/{{ repo.repo_name }}"> <strong>{{ repo.repo_name }}</strong></a>
                </div>
                <div>
                  {{ repo.description }}
                  <br><br>
                  </span><span class="repo-language-dot {{ repo.language | lower }}"></span> {{ repo.language }}
                  <span id="repo-footer-item"><i class="fas fa-star"></i> {{ repo.stargazers }}</span>
                  <span id="repo-footer-item"><i class="fas fa-code-branch"></i> {{ repo.forks }}</span>
                </div>
              </div>
            </div>
          </div>
        {% endfor %}

      </div>
    </div>
  </section>

  {# Sponsors #}
  <section class="section-sp hero is-light">
    <div id="sponsors-hero" class="hero-body">
      <div class="container">
        <h1 class="title is-6 has-text-grey">
          Sponsors
        </h1>
        <div class="columns is-mobile is-multiline">
          <a href="https://linode.com" class="column is-narrow">
            <img src="{% static "images/sponsors/linode.png" %}" alt="Linode"/>
          </a>
          <a href="https://jetbrains.com" class="column is-narrow">
            <img src="{% static "images/sponsors/jetbrains.png" %}" alt="JetBrains"/>
          </a>
          <a href="https://adafruit.com" class="column is-narrow">
            <img src="{% static "images/sponsors/adafruit.png" %}" alt="Adafruit"/>
          </a>
          <a href="https://sentry.io" class="column is-narrow">
            <img src="{% static "images/sponsors/sentry.png" %}" alt="Sentry"/>
          </a>
        </div>
      </div>
    </div>
  </section>

{% endblock %}