Skip to content

Commit

Permalink
Merge branch 'main' into blog
Browse files Browse the repository at this point in the history
  • Loading branch information
yukitya-1811 authored Oct 19, 2024
2 parents 70143c2 + c2f96d9 commit 64e793c
Show file tree
Hide file tree
Showing 21 changed files with 448 additions and 0 deletions.
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 @@ -45,6 +45,7 @@
path("farewell/", include("farewell.urls")),
path("virtual_expo/", include("virtual_expo.urls")),
path("blog/", include("blog.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 %}
390 changes: 390 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.

0 comments on commit 64e793c

Please sign in to comment.