aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/base/navbar.html
blob: 4cc49dc64f8aa263ee0e207bccd643f0f92c6fb1 (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
{% load static %}

<nav class="navbar is-primary" role="navigation" aria-label="main navigation">
  <div class="navbar-brand">

    <a id="navbar-banner" class="navbar-item has-left-margin-1" href="/">
      <img src="{% static "images/navbar/pydis_banner_no_square.svg" %}" alt="Python Discord logo"/>
    </a>

    {# The navbar "burger" which appears when rendered on screens that can't fit the entire nav #}
    <a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbar_menu">
      <span aria-hidden="true"></span>
      <span aria-hidden="true"></span>
      <span aria-hidden="true"></span>
    </a>
  </div>

  {# Content on the right side of the navbar #}
  <div class="navbar-menu is-paddingless" id="navbar_menu">
    <div class="navbar-end">

      {# Burger-menu Discord #}
      <a class="navbar-item is-hidden-desktop" href="https://discord.gg/python">
        <span class="icon is-size-4 is-medium"><i class="fab fa-discord"></i></span>
        <span>&nbsp;Discord</span>
      </a>

      {# GitHub #}
      <a class="navbar-item" href="https://github.com/python-discord">
        <span class="icon is-size-4 is-medium"><i class="fab fa-github"></i></span>
        <span>&nbsp;GitHub</span>
      </a>

      {# Reddit #}
      <a class="navbar-item" href="https://reddit.com/r/python">
        <span class="icon is-size-4 is-medium"><i class="fab fa-reddit-alien"></i></span>
        <span>&nbsp;Reddit</span>
      </a>

      {# YouTube #}
      <a class="navbar-item" href="https://youtube.com/pythondiscord">
        <span class="icon is-size-4 is-medium"><i class="fab fa-youtube"></i></span>
        <span>&nbsp;YouTube</span>
      </a>

      {# Patreon #}
      <a class="navbar-item" href="http://patreon.com/python_discord">
        <span class="icon is-size-4 is-medium"><i class="fab fa-patreon"></i></span>
        <span>&nbsp;Patreon</span>
      </a>

      {# Merch #}
      <a class="navbar-item" href="https://www.redbubble.com/people/PythonDiscord/shop">
        <span class="icon is-size-4 is-medium"><i class="fas fa-tshirt"></i></span>
        <span>&nbsp;Merch</span>
      </a>

      {# More #}
      <div class="navbar-item has-dropdown is-hoverable">
        <a class="navbar-link is-hidden-touch">
          More
        </a>
        <a class="navbar-link is-arrowless is-hidden-desktop">
          More
        </a>
        <div class="navbar-dropdown">
          <a class="navbar-item" href="{% url "resources:index" %}">
            Resources
          </a>
          <a class="navbar-item" href="{% url "resources:resources" category="tools" %}">
            Tools
          </a>
          <a class="navbar-item" href="{% url "content:page_category" location="guides/pydis-guides/contributing"%}">
            Contributing
          </a>
          <a class="navbar-item" href="{% url "content:page_category" location="frequently-asked-questions" %}">
            FAQ
          </a>
          <a class="navbar-item" href="{% url 'timeline' %}">
            Timeline
          </a>
          <a class="navbar-item" href="{% url "content:page_category" location="rules" %}">
            Rules
          </a>
          <a class="navbar-item" href="{% url "content:page_category" location="code-of-conduct" %}">
            Code of Conduct
          </a>
          <a class="navbar-item" href="{% url "content:page_category" location="privacy" %}">
            Privacy
          </a>
          <hr class="navbar-divider">
          <div class="navbar-item">
            <strong>Events</strong>
          </div>
          <a class="navbar-item" href="{% url "events:page" path="code-jams/7" %}">
            Most Recent: Code Jam 7
          </a>
          <a class="navbar-item" href="{% url "events:index" %}">
            All events
          </a>
        </div>
      </div>

      {# Desktop Nav Discord  #}
      <div id="discord-btn" class="buttons is-hidden-touch">
        <a href="https://discord.gg/python" class="button is-large is-primary">Discord</a>
      </div>

    </div>

  </div>
</nav>