aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/home/index.html
blob: cb2f71adff36c90a44763617ed7b8b8ef20f9814 (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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{% 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" %}

  <!-- Mobile-only Code Jam Banner -->
  <section id="mobile-notice" class="is-primary is-hidden-tablet">
    <a href="/events/code-jams/12/">
      <img src="{% static "images/events/summer_code_jam_2025/banner_with_dates.png" %}" alt="Code Jam 2025">
    </a>
  </section>

  <!-- Wave Hero -->
  <section id="wave-hero" class="section is-hidden-mobile">

      <div class="container">
        <div class="columns is-variable is-8 is-centered">

          {# Embedded Welcome video #}
          <div id="wave-hero-left" class="column is-half ">
            <div class="force-aspect-container">
              <iframe
              class="force-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='{% static "images/frontpage/welcome.jpg" %}' alt='Welcome to Python Discord'>
                <span>▶</span>
              </a>"
              allow="autoplay; accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
              allowfullscreen
              ></iframe>
            </div>
          </div>

          {# Code Jam Banner #}
          <div id="wave-hero-right" class="column is-half">
            <a href="/events/code-jams/12/">
              <img src="{% static "images/events/summer_code_jam_2025/banner_with_dates.png" %}" alt="Code Jam 2025">
            </a>
          </div>
        </div>

      </div>

    {# Animated wave elements #}
    <span id="front-wave" class="wave"></span>
    <span id="back-wave" class="wave"></span>
    <span id="bottom-wave" class="wave"></span>

  </section>

  <!-- Main Body -->
  <section id="body" class="section">

    <div class="container">
      <h1 class="is-size-1">Who are we?</h1>

      <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 100 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>

        {# Showcase box #}
        <section id="showcase" class="column is-half-desktop has-text-centered">
          <article class="box has-background-white">

            <header class="title">Interactive timeline</header>

            <div class="mini-timeline">
              <i class="fa fa-asterisk"></i>
              <i class="fa fa-code"></i>
              <i class="fab fa-lg fa-python"></i>
              <i class="fab fa-discord"></i>
              <i class="fa fa-sm fa-terminal"></i>
              <i class="fa fa-bug"></i>
            </div>

            <p class="subtitle">
              Discover the history of our community, and learn about the events that made our community what it is today.
            </p>

            <div class="buttons are-large is-centered">
              <a href="{% url 'timeline:index' %}" class="button is-primary">
                <span>Check it out!</span>
                <span class="icon">
                  <i class="fas fa-arrow-right"></i>
                </span>
              </a>
            </div>

          </article>
        </section>

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

  <!-- Projects -->
  {%  if repo_data %}
    <section id="projects" class="section">
      <div class="container">
        <h1 class="is-size-1">Projects</h1>

        <div class="columns is-multiline is-tablet">

          {# Generate project data from HomeView.repos #}
          {% for repo in repo_data %}
            <div class="column is-one-third-desktop is-half-tablet">

              <a href="https://github.com/{{ repo.repo_name }}">
                <article class="card has-background-white">

                  <header class="card-header is-white">
                    <span class="card-header-icon">
                      <span class="icon"><i class="fab fa-github"></i></span>
                    </span>
                    <div class="card-header-title">
                      {{ repo.repo_name|cut:"python-discord/" }}
                    </div>
                  </header>

                  <p class="card-content">
                    {{ repo.description }}
                  </p>

                  <footer class="card-footer">
                    <div class="card-footer-item">
                      <i class="repo-language-dot {{ repo.language | lower }}"></i>
                      {{ repo.language }}
                    </div>
                    <div class="card-footer-item">
                      <i class="fas fa-star"></i>
                      {{ repo.stargazers }}
                    </div>
                    <div class="card-footer-item">
                      <i class="fas fa-code-branch"></i>
                      {{ repo.forks }}
                    </div>
                  </footer>

                </article>
              </a>

            </div>
          {% endfor %}

        </div>

      </div>
    </section>
  {% endif %}

  <!-- Sponsors -->
  <section id="sponsors" class="hero has-background-white-ter">
    <div class="hero-body">
      <div class="container">
        <h1 class="title is-6 has-text-grey">
          Sponsors
        </h1>
        <div class="columns is-vcentered">
          <a href="https://www.netcup.com/?ref=177518" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/netcup.png" %}" alt="netcup" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/netcup.png" %}" alt="netcup" loading="lazy"/>
          </a>
          <a href="https://www.linode.com/?r=3bc18ce876ff43ea31f201b91e8e119c9753f085" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/linode.png" %}" alt="Linode" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/linode.png" %}" alt="Linode" loading="lazy"/>
          </a>
          <a href="https://jetbrains.com" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/jetbrains.png" %}" alt="JetBrains" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/jetbrains.png" %}" alt="JetBrains" loading="lazy"/>
          </a>
        </div>
        <div class="columns is-vcentered">
          <a href="https://sentry.io" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/sentry.png" %}" alt="Sentry" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/sentry.png" %}" alt="Sentry" loading="lazy"/>
          </a>
          <a href="https://notion.so" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/notion.png" %}" alt="Notion" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/notion.png" %}" alt="Notion" loading="lazy"/>
          </a>
          <a href="https://streamyard.com" class="column is-one-third">
            <img class="light-image" src="{% static "images/sponsors/streamyard.png" %}" alt="StreamYard" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors/streamyard.png" %}" alt="StreamYard" loading="lazy"/>
          </a>
        </div>
        <div class="columns is-vcentered">
          <a href="https://www.netlify.com/" class="column is-half">
            <img class="light-image" src="{% static "images/sponsors/netlify.png" %}" alt="Netlify" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/netlify.png" %}" alt="Netlify" loading="lazy"/>
          </a>
          <a href="https://www.cloudflare.com/" class="column is-half">
            <img class="light-image" src="{% static "images/sponsors/cloudflare.png" %}" alt="Cloudflare" loading="lazy"/>
            <img class="dark-image" src="{% static "images/sponsors_dark/cloudflare.png" %}" alt="Cloudflare" loading="lazy"/>
          </a>
        </div>
      </div>
    </div>
  </section>

{% endblock %}