Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Athenaeum #165

Merged
merged 5 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added corpus/athenaeum/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions corpus/athenaeum/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions corpus/athenaeum/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AthenaeumConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'athenaeum'
Empty file.
3 changes: 3 additions & 0 deletions corpus/athenaeum/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions corpus/athenaeum/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
7 changes: 7 additions & 0 deletions corpus/athenaeum/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path
from athenaeum import views

urlpatterns = [
path("", views.home, name="athenaeum_home"),

]
6 changes: 6 additions & 0 deletions corpus/athenaeum/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.shortcuts import render

# Create your views here.

def home(request):
return render(request, 'athenaeum/home.html',)
1 change: 1 addition & 0 deletions corpus/corpus/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
path("robotrix/", include("robotrix.urls")),
path("farewell/", include("farewell.urls")),
path("virtual_expo/", include("virtual_expo.urls")),
path("athenaeum/", include("athenaeum.urls")),
]

if settings.DEBUG:
Expand Down
24 changes: 24 additions & 0 deletions corpus/templates/athenaeum/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% extends 'base.html' %}

{% block title %}
| Athenaeum
{% endblock %}

{% block script %}
<script>
document.addEventListener("DOMContentLoaded", function () {
const theme = "synthwave";
const currTheme = localStorage.getItem("corpusTheme");
const themeButton = document.getElementById("dark-mode-button");
themeButton.remove();
localStorage.setItem("corpusThemeArchive", currTheme);
localStorage.setItem("corpusTheme", theme);
document.documentElement.setAttribute("data-theme", theme);
});

window.addEventListener("beforeunload", function (event) {
const oldTheme = localStorage.getItem("corpusThemeArchive");
localStorage.setItem("corpusTheme", oldTheme);
})
</script>
{% endblock %}
347 changes: 347 additions & 0 deletions corpus/templates/athenaeum/home.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions corpus/templates/components/navbar_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
Embedathon
</a>
</li>
<li>
<a href="{% url 'athenaeum_home' %}">
Athenaeum
</a>
</li>
<li>
<a href="{% url 'impulse_home' %}">
Impulse
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading