From 0a35f6c84096d48866953c6c099f9b7d20b003eb Mon Sep 17 00:00:00 2001 From: hedy Date: Sat, 13 Jan 2024 19:46:17 +0800 Subject: Dark: Use link color of better contrast --- pydis_site/static/css/resources/resources.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pydis_site/static/css/resources') diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index 96d06111..ee5954da 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -154,11 +154,15 @@ i.is-primary { } /* When hovering title anchors, just make the color a lighter primary, not black. */ -.resource-box a:hover { +[data-theme="light"] .resource-box a:hover { filter: brightness(120%); color: #7289DA; } +[data-theme="dark"] .resource-box a:hover { + color: white; +} + /* Set default display to inline-flex, for centering. */ span.filter-box-tag { display: none; -- cgit v1.2.3 From a89848b80696e9e8d654b78e26954b2bb2ae6b84 Mon Sep 17 00:00:00 2001 From: hedy Date: Tue, 16 Jan 2024 20:21:16 +0800 Subject: Dark: Fix the filter box on resources page --- .../resources/automate_the_boring_stuff_book.yaml | 2 +- .../resources/awesome_programming_discord.yaml | 2 +- .../apps/resources/resources/byte_of_python.yaml | 4 ++-- pydis_site/apps/resources/resources/code_combat.yaml | 2 +- .../resources/data_science_from_scratch.yaml | 4 ++-- .../apps/resources/resources/effective_python.yaml | 4 ++-- pydis_site/apps/resources/resources/exercism.yaml | 2 +- .../resources/resources/flask_web_development.yaml | 4 ++-- .../apps/resources/resources/fluent_python.yaml | 4 ++-- .../resources/hitchhikers_guide_to_python.yaml | 2 +- pydis_site/apps/resources/resources/kivy.yaml | 2 +- .../apps/resources/resources/mission_python.yaml | 2 +- .../neural_networks_from_scratch_in_python.yaml | 2 +- .../apps/resources/resources/python_cookbook.yaml | 4 ++-- .../resources/resources/python_crash_course.yaml | 4 ++-- .../resources/resources/python_graph_gallery.yaml | 2 +- .../apps/resources/resources/python_tricks.yaml | 2 +- .../resources/resources/simple_guide_to_git.yaml | 2 +- .../resources/software_design_by_example.yaml | 4 ++-- .../apps/resources/resources/think_python.yaml | 4 ++-- .../resources/resources/two_scoops_of_django.yaml | 4 ++-- pydis_site/settings.py | 9 +++++---- pydis_site/static/css/resources/resources.css | 20 ++++++++++++-------- pydis_site/templates/resources/resources.html | 8 ++++---- 24 files changed, 52 insertions(+), 47 deletions(-) (limited to 'pydis_site/static/css/resources') diff --git a/pydis_site/apps/resources/resources/automate_the_boring_stuff_book.yaml b/pydis_site/apps/resources/resources/automate_the_boring_stuff_book.yaml index 63f63193..f3b862d2 100644 --- a/pydis_site/apps/resources/resources/automate_the_boring_stuff_book.yaml +++ b/pydis_site/apps/resources/resources/automate_the_boring_stuff_book.yaml @@ -8,7 +8,7 @@ title_url: https://automatetheboringstuff.com/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/22514127-automate-the-boring-stuff-with-python - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/awesome_programming_discord.yaml b/pydis_site/apps/resources/resources/awesome_programming_discord.yaml index 0ef7aefc..7079062b 100644 --- a/pydis_site/apps/resources/resources/awesome_programming_discord.yaml +++ b/pydis_site/apps/resources/resources/awesome_programming_discord.yaml @@ -3,7 +3,7 @@ description: We have listed our favourite communities, An awesome list collating the best programming related Discord servers is available on GitHub and has all sorts of topics from blockchain to virtual reality! title_icon: branding/github -title_icon_color: black +title_icon_color: dark title_url: https://github.com/mhxion/awesome-programming-discord name: awesome-programming-discord tags: diff --git a/pydis_site/apps/resources/resources/byte_of_python.yaml b/pydis_site/apps/resources/resources/byte_of_python.yaml index c2f6ab84..e4d44369 100644 --- a/pydis_site/apps/resources/resources/byte_of_python.yaml +++ b/pydis_site/apps/resources/resources/byte_of_python.yaml @@ -6,10 +6,10 @@ title_url: https://python.swaroopch.com/ urls: - icon: regular/book url: https://www.lulu.com/shop/swaroop-c-h/a-byte-of-python/paperback/product-21142968.html - color: black + color: dark - icon: branding/goodreads url: https://www.goodreads.com/book/show/6762544-a-byte-of-python - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/code_combat.yaml b/pydis_site/apps/resources/resources/code_combat.yaml index 84597c4d..0e308ddc 100644 --- a/pydis_site/apps/resources/resources/code_combat.yaml +++ b/pydis_site/apps/resources/resources/code_combat.yaml @@ -5,7 +5,7 @@ title_url: https://codecombat.com/ urls: - icon: branding/github url: https://github.com/codecombat/codecombat - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/data_science_from_scratch.yaml b/pydis_site/apps/resources/resources/data_science_from_scratch.yaml index 86955fdb..755e5867 100644 --- a/pydis_site/apps/resources/resources/data_science_from_scratch.yaml +++ b/pydis_site/apps/resources/resources/data_science_from_scratch.yaml @@ -7,10 +7,10 @@ title_url: https://www.oreilly.com/library/view/data-science-from/9781492041122/ urls: - icon: branding/goodreads url: https://www.goodreads.com/en/book/show/52059715-data-science-from-scratch - color: black + color: dark - icon: branding/github url: https://github.com/joelgrus/data-science-from-scratch - color: black + color: dark tags: topics: - data science diff --git a/pydis_site/apps/resources/resources/effective_python.yaml b/pydis_site/apps/resources/resources/effective_python.yaml index b82fa0c3..2293ee84 100644 --- a/pydis_site/apps/resources/resources/effective_python.yaml +++ b/pydis_site/apps/resources/resources/effective_python.yaml @@ -5,10 +5,10 @@ title_url: https://effectivepython.com/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/48566725-effective-python - color: black + color: dark - icon: branding/github url: https://github.com/bslatkin/effectivepython - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/exercism.yaml b/pydis_site/apps/resources/resources/exercism.yaml index c623db2d..fba5bce4 100644 --- a/pydis_site/apps/resources/resources/exercism.yaml +++ b/pydis_site/apps/resources/resources/exercism.yaml @@ -7,7 +7,7 @@ title_url: https://exercism.org/ urls: - icon: branding/github url: https://github.com/exercism/python - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/flask_web_development.yaml b/pydis_site/apps/resources/resources/flask_web_development.yaml index 6905b2b4..9263efdd 100644 --- a/pydis_site/apps/resources/resources/flask_web_development.yaml +++ b/pydis_site/apps/resources/resources/flask_web_development.yaml @@ -5,10 +5,10 @@ title_url: http://shop.oreilly.com/product/0636920031116.do urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/18774655-flask-web-development - color: black + color: dark - icon: branding/github url: https://github.com/miguelgrinberg/flasky - color: black + color: dark tags: topics: - web development diff --git a/pydis_site/apps/resources/resources/fluent_python.yaml b/pydis_site/apps/resources/resources/fluent_python.yaml index c22fd388..0d9466e1 100644 --- a/pydis_site/apps/resources/resources/fluent_python.yaml +++ b/pydis_site/apps/resources/resources/fluent_python.yaml @@ -5,10 +5,10 @@ title_url: https://www.oreilly.com/library/view/fluent-python/9781491946237/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/22800567-fluent-python - color: black + color: dark - icon: branding/github url: https://github.com/fluentpython - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/hitchhikers_guide_to_python.yaml b/pydis_site/apps/resources/resources/hitchhikers_guide_to_python.yaml index e48e5717..a96386d2 100644 --- a/pydis_site/apps/resources/resources/hitchhikers_guide_to_python.yaml +++ b/pydis_site/apps/resources/resources/hitchhikers_guide_to_python.yaml @@ -5,7 +5,7 @@ title_url: https://python-guide.org/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/28321007-the-hitchhiker-s-guide-to-python - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/kivy.yaml b/pydis_site/apps/resources/resources/kivy.yaml index f49c33fb..d0529c48 100644 --- a/pydis_site/apps/resources/resources/kivy.yaml +++ b/pydis_site/apps/resources/resources/kivy.yaml @@ -12,7 +12,7 @@ urls: color: blurple - icon: branding/github url: https://github.com/kivy - color: black + color: dark tags: topics: - user interface diff --git a/pydis_site/apps/resources/resources/mission_python.yaml b/pydis_site/apps/resources/resources/mission_python.yaml index 391a2983..ca686952 100644 --- a/pydis_site/apps/resources/resources/mission_python.yaml +++ b/pydis_site/apps/resources/resources/mission_python.yaml @@ -7,7 +7,7 @@ title_url: https://www.sean.co.uk/books/mission-python/index.shtm urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/35545850-mission-python - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/neural_networks_from_scratch_in_python.yaml b/pydis_site/apps/resources/resources/neural_networks_from_scratch_in_python.yaml index 26e88cb9..5e7ee63f 100644 --- a/pydis_site/apps/resources/resources/neural_networks_from_scratch_in_python.yaml +++ b/pydis_site/apps/resources/resources/neural_networks_from_scratch_in_python.yaml @@ -7,7 +7,7 @@ title_url: https://nnfs.io/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/55927899-neural-networks-from-scratch-in-python - color: black + color: dark tags: topics: - data science diff --git a/pydis_site/apps/resources/resources/python_cookbook.yaml b/pydis_site/apps/resources/resources/python_cookbook.yaml index bc05d743..751edf09 100644 --- a/pydis_site/apps/resources/resources/python_cookbook.yaml +++ b/pydis_site/apps/resources/resources/python_cookbook.yaml @@ -5,10 +5,10 @@ title_url: http://shop.oreilly.com/product/0636920027072.do urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/17152735-python-cookbook - color: black + color: dark - icon: branding/github url: https://github.com/dabeaz/python-cookbook - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/python_crash_course.yaml b/pydis_site/apps/resources/resources/python_crash_course.yaml index d916075e..e8356491 100644 --- a/pydis_site/apps/resources/resources/python_crash_course.yaml +++ b/pydis_site/apps/resources/resources/python_crash_course.yaml @@ -11,10 +11,10 @@ title_url: https://nostarch.com/pythoncrashcourse2e urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/23241059-python-crash-course - color: black + color: dark - icon: branding/github url: https://ehmatthes.github.io/pcc/ - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/python_graph_gallery.yaml b/pydis_site/apps/resources/resources/python_graph_gallery.yaml index b8aaeb4d..59aebc12 100644 --- a/pydis_site/apps/resources/resources/python_graph_gallery.yaml +++ b/pydis_site/apps/resources/resources/python_graph_gallery.yaml @@ -4,7 +4,7 @@ title_url: https://www.python-graph-gallery.com/ urls: - icon: branding/github url: https://github.com/holtzy/The-Python-Graph-Gallery - color: black + color: dark tags: topics: - data science diff --git a/pydis_site/apps/resources/resources/python_tricks.yaml b/pydis_site/apps/resources/resources/python_tricks.yaml index aa1b2fcd..17c71107 100644 --- a/pydis_site/apps/resources/resources/python_tricks.yaml +++ b/pydis_site/apps/resources/resources/python_tricks.yaml @@ -6,7 +6,7 @@ title_url: https://realpython.com/products/python-tricks-book/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/36990732-python-tricks - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/simple_guide_to_git.yaml b/pydis_site/apps/resources/resources/simple_guide_to_git.yaml index 3bb46e6d..bf461b0a 100644 --- a/pydis_site/apps/resources/resources/simple_guide_to_git.yaml +++ b/pydis_site/apps/resources/resources/simple_guide_to_git.yaml @@ -2,7 +2,7 @@ description: A simple, no-nonsense guide to the basics of using Git. name: A Simple Guide to Git title_url: https://rogerdudler.github.io/git-guide/ title_icon: branding/github -title_icon_color: black +title_icon_color: dark tags: topics: - tooling diff --git a/pydis_site/apps/resources/resources/software_design_by_example.yaml b/pydis_site/apps/resources/resources/software_design_by_example.yaml index 8cdfd625..82d1c646 100644 --- a/pydis_site/apps/resources/resources/software_design_by_example.yaml +++ b/pydis_site/apps/resources/resources/software_design_by_example.yaml @@ -9,10 +9,10 @@ title_url: https://third-bit.com/sdxpy/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/199430059-software-design-by-example - color: black + color: dark - icon: branding/github url: https://github.com/gvwilson/sdxpy - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/think_python.yaml b/pydis_site/apps/resources/resources/think_python.yaml index 7099afd8..f8b17761 100644 --- a/pydis_site/apps/resources/resources/think_python.yaml +++ b/pydis_site/apps/resources/resources/think_python.yaml @@ -8,10 +8,10 @@ title_url: https://greenteapress.com/wp/think-python-2e/ urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/14514306-think-python - color: black + color: dark - icon: branding/github url: https://github.com/AllenDowney/ThinkPython2 - color: black + color: dark tags: topics: - general diff --git a/pydis_site/apps/resources/resources/two_scoops_of_django.yaml b/pydis_site/apps/resources/resources/two_scoops_of_django.yaml index f372d35d..1ddb70e5 100644 --- a/pydis_site/apps/resources/resources/two_scoops_of_django.yaml +++ b/pydis_site/apps/resources/resources/two_scoops_of_django.yaml @@ -5,10 +5,10 @@ title_url: https://www.feldroy.com/books/two-scoops-of-django-3-x urls: - icon: branding/goodreads url: https://www.goodreads.com/book/show/55822151-two-scoops-of-django-3-x - color: black + color: dark - icon: branding/github url: https://github.com/twoscoops/two-scoops-of-django-2.0-code-examples - color: black + color: dark tags: topics: - web development diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 28161e64..3c4bbdb8 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -320,13 +320,13 @@ BULMA_SETTINGS = { "warning": "#4B4636", "warning-invert": "#FFFFFF", "primary-dark": "#EFF1FB", # Bulma's primary-light - "primary-light": "#3C497A", + "primary-light": "#2B3660", "success-dark": "#EFFAF5", # Bulma's success-light - "success-light": "#205D42", + "success-light": "#214133", "danger-dark": "#FEECF0", # Bulma's danger-light - "danger-light": "#642431", + "danger-light": "#4C1822", "info-dark": "#EFF5FB", # Bulma's info-light - "info-light": "#295477", + "info-light": "#254056", "white": "#2C2F33", "white-bis": "#23272A ", @@ -353,6 +353,7 @@ BULMA_SETTINGS = { # Same as bulma, adjusted for dark mode "shadow": "0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02)", "border": "#4E4F51", + "border-light": "#313233", # Use the same sizes "dimensions": "16 24 32 48 64 96 128 256 512", diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index ee5954da..582d96e4 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -199,22 +199,26 @@ button.delete { } /* Colors for delete button x's */ -button.delete.is-primary::before, -button.delete.is-primary::after { +[data-theme="light"] button.delete.is-primary::before, +[data-theme="light"] button.delete.is-primary::after { background-color: #2a45a2; } -button.delete.is-success::before, -button.delete.is-success::after { +[data-theme="light"] button.delete.is-success::before, +[data-theme="light"] button.delete.is-success::after { background-color: #2c9659; } -button.delete.is-danger::before, -button.delete.is-danger::after { +[data-theme="light"] button.delete.is-danger::before, +[data-theme="light"] button.delete.is-danger::after { background-color: #c32841; } -button.delete.is-info::before, -button.delete.is-info::after { +[data-theme="light"] button.delete.is-info::before, +[data-theme="light"] button.delete.is-info::after { background-color: #237fbd; } +[data-theme="dark"] button.delete::before, +[data-theme="dark"] button.delete::after { + background-color: #FFFFFF; +} /* Give outlines to active tags */ span.filter-box-tag, diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html index 410bdb4c..8f3d6a33 100644 --- a/pydis_site/templates/resources/resources.html +++ b/pydis_site/templates/resources/resources.html @@ -59,7 +59,7 @@ {% for filter_item in filter_data.filters %} {% if filter_name == "Difficulty" %} @@ -70,7 +70,7 @@ {% endif %} {% if filter_name == "Type" %} @@ -81,7 +81,7 @@ {% endif %} {% if filter_name == "Payment tiers" %} @@ -92,7 +92,7 @@ {% endif %} {% if filter_name == "Topics" %} -- cgit v1.2.3 From b72705b228b02f8c5f40030215d75d45d195c87d Mon Sep 17 00:00:00 2001 From: hedy Date: Sun, 28 Jan 2024 19:25:24 +0800 Subject: Dark: Use alternate images for homepage, resources, events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to lemon for editting all the images. Co-authored-by: Leon Sandøy --- pydis_site/apps/resources/resources/adafruit.yaml | 1 + .../apps/resources/resources/corey_schafer.yaml | 1 + pydis_site/apps/resources/resources/kivy.yaml | 1 + pydis_site/apps/resources/resources/microsoft.yaml | 1 + pydis_site/apps/resources/resources/pallets.yaml | 1 + pydis_site/apps/resources/resources/panda3d.yaml | 1 + .../resources/resources/people_postgres_data.yaml | 1 + pydis_site/apps/resources/resources/pyglet.yaml | 1 + .../apps/resources/resources/python_org.yaml | 1 + pydis_site/apps/resources/resources/sentdex.yaml | 1 + pydis_site/static/css/base/base.css | 8 ++++++ pydis_site/static/css/events/base.css | 4 --- pydis_site/static/css/home/index.css | 8 ------ pydis_site/static/css/resources/resources.css | 2 +- .../static/images/events/DO_Logo_Vertical_Blue.png | Bin 7156 -> 0 bytes pydis_site/static/images/events/Replit.png | Bin 12114 -> 0 bytes pydis_site/static/images/events/Tabnine.png | Bin 10534 -> 0 bytes .../images/events/logos/DO_Logo_Vertical_Blue.png | Bin 0 -> 7156 bytes pydis_site/static/images/events/logos/Replit.png | Bin 0 -> 2692 bytes pydis_site/static/images/events/logos/Tabnine.png | Bin 0 -> 10534 bytes .../events/logos_dark/DO_Logo_Vertical_White.png | Bin 0 -> 6928 bytes .../static/images/events/logos_dark/Replit.png | Bin 0 -> 2732 bytes .../static/images/events/logos_dark/django.png | Bin 0 -> 9332 bytes pydis_site/static/images/resources/adafruit.png | Bin 60987 -> 52184 bytes pydis_site/static/images/resources/kivy.png | Bin 88954 -> 54787 bytes .../static/images/resources_dark/adafruit.png | Bin 0 -> 13434 bytes .../static/images/resources_dark/coreyschafer.png | Bin 0 -> 17525 bytes pydis_site/static/images/resources_dark/kivy.png | Bin 0 -> 50889 bytes .../static/images/resources_dark/microsoft.png | Bin 0 -> 9521 bytes .../static/images/resources_dark/pallets.png | Bin 0 -> 48189 bytes .../static/images/resources_dark/panda3d.png | Bin 0 -> 49453 bytes .../images/resources_dark/people_postgres_data.png | Bin 0 -> 44499 bytes pydis_site/static/images/resources_dark/pyglet.png | Bin 0 -> 11866 bytes pydis_site/static/images/resources_dark/python.png | Bin 0 -> 10603 bytes .../static/images/resources_dark/sentdex.png | Bin 0 -> 19367 bytes .../static/images/sponsors_dark/cloudflare.png | Bin 0 -> 7851 bytes .../static/images/sponsors_dark/jetbrains.png | Bin 0 -> 125428 bytes pydis_site/static/images/sponsors_dark/linode.png | Bin 0 -> 17219 bytes pydis_site/static/images/sponsors_dark/netcup.png | Bin 0 -> 3130 bytes pydis_site/static/images/sponsors_dark/netlify.png | Bin 0 -> 110151 bytes pydis_site/static/images/sponsors_dark/notion.png | Bin 0 -> 51849 bytes pydis_site/static/images/sponsors_dark/sentry.png | Bin 0 -> 18102 bytes .../events/pages/code-jams/10/_index.html | 5 +++- .../templates/events/pages/code-jams/8/_index.html | 8 +++--- .../templates/events/pages/code-jams/9/_index.html | 9 ++++--- .../templates/events/sidebar/code-jams/6.html | 10 +++++-- .../templates/events/sidebar/code-jams/7.html | 6 +++-- .../templates/events/sidebar/code-jams/8.html | 8 +++--- .../templates/events/sidebar/code-jams/9.html | 9 ++++--- pydis_site/templates/home/index.html | 24 +++++++++++------ .../templates/resources/resource_box_header.html | 29 +++++++++++++++++---- 51 files changed, 97 insertions(+), 43 deletions(-) delete mode 100644 pydis_site/static/images/events/DO_Logo_Vertical_Blue.png delete mode 100644 pydis_site/static/images/events/Replit.png delete mode 100644 pydis_site/static/images/events/Tabnine.png create mode 100644 pydis_site/static/images/events/logos/DO_Logo_Vertical_Blue.png create mode 100644 pydis_site/static/images/events/logos/Replit.png create mode 100644 pydis_site/static/images/events/logos/Tabnine.png create mode 100644 pydis_site/static/images/events/logos_dark/DO_Logo_Vertical_White.png create mode 100644 pydis_site/static/images/events/logos_dark/Replit.png create mode 100644 pydis_site/static/images/events/logos_dark/django.png create mode 100644 pydis_site/static/images/resources_dark/adafruit.png create mode 100644 pydis_site/static/images/resources_dark/coreyschafer.png create mode 100644 pydis_site/static/images/resources_dark/kivy.png create mode 100644 pydis_site/static/images/resources_dark/microsoft.png create mode 100644 pydis_site/static/images/resources_dark/pallets.png create mode 100644 pydis_site/static/images/resources_dark/panda3d.png create mode 100644 pydis_site/static/images/resources_dark/people_postgres_data.png create mode 100644 pydis_site/static/images/resources_dark/pyglet.png create mode 100644 pydis_site/static/images/resources_dark/python.png create mode 100644 pydis_site/static/images/resources_dark/sentdex.png create mode 100644 pydis_site/static/images/sponsors_dark/cloudflare.png create mode 100644 pydis_site/static/images/sponsors_dark/jetbrains.png create mode 100644 pydis_site/static/images/sponsors_dark/linode.png create mode 100644 pydis_site/static/images/sponsors_dark/netcup.png create mode 100644 pydis_site/static/images/sponsors_dark/netlify.png create mode 100644 pydis_site/static/images/sponsors_dark/notion.png create mode 100644 pydis_site/static/images/sponsors_dark/sentry.png (limited to 'pydis_site/static/css/resources') diff --git a/pydis_site/apps/resources/resources/adafruit.yaml b/pydis_site/apps/resources/resources/adafruit.yaml index 957223c9..bedbf16a 100644 --- a/pydis_site/apps/resources/resources/adafruit.yaml +++ b/pydis_site/apps/resources/resources/adafruit.yaml @@ -5,6 +5,7 @@ description: Adafruit is an open-source electronics manufacturer provide help with your projects, and the Adafruit devs do all the CircuitPython Development right out in the open. title_image: /static/images/resources/adafruit.png +title_image_dark: /static/images/resources_dark/adafruit.png title_url: https://adafruit.com/ urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/corey_schafer.yaml b/pydis_site/apps/resources/resources/corey_schafer.yaml index d66ea004..91abeb52 100644 --- a/pydis_site/apps/resources/resources/corey_schafer.yaml +++ b/pydis_site/apps/resources/resources/corey_schafer.yaml @@ -10,6 +10,7 @@ description: 'Corey has a number of exceptionally high quality tutorial series Check out his channel for more video series! ' title_image: https://i.imgur.com/KIfWw3b.png +title_image_dark: /static/images/resources_dark/coreyschafer.png title_url: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g urls: - icon: solid/external-link-alt diff --git a/pydis_site/apps/resources/resources/kivy.yaml b/pydis_site/apps/resources/resources/kivy.yaml index dcced022..742fa274 100644 --- a/pydis_site/apps/resources/resources/kivy.yaml +++ b/pydis_site/apps/resources/resources/kivy.yaml @@ -3,6 +3,7 @@ description: The Kivy project, through the Kivy framework and its sister project aims to provide all the tools to create desktop and mobile applications in Python. Allowing rapid development of multitouch applications with custom and exciting user interfaces. title_image: /static/images/resources/kivy.png +title_image_dark: /static/images/resources_dark/kivy.png title_url: https://kivy.org/ urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/microsoft.yaml b/pydis_site/apps/resources/resources/microsoft.yaml index 290283cc..8b31020c 100644 --- a/pydis_site/apps/resources/resources/microsoft.yaml +++ b/pydis_site/apps/resources/resources/microsoft.yaml @@ -2,6 +2,7 @@ name: Microsoft Python description: Microsoft Python is a Discord server for discussing all things relating to using Python with Microsoft products, they have channels for Azure, VS Code, IoT, Data Science and much more! title_image: https://1000logos.net/wp-content/uploads/2017/04/Microsoft-Logo.png +title_image_dark: /static/images/resources_dark/microsoft.png title_url: https://www.microsoft.com/en-us/boards/pycon2020.aspx urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/pallets.yaml b/pydis_site/apps/resources/resources/pallets.yaml index a330b756..453c263f 100644 --- a/pydis_site/apps/resources/resources/pallets.yaml +++ b/pydis_site/apps/resources/resources/pallets.yaml @@ -3,6 +3,7 @@ description: The Pallets Projects develop Python libraries such as the Flask web the Jinja templating library, and the Click command line toolkit. Join to discuss and get help from the Pallets community. title_image: https://i.imgur.com/sV9Ypdf.png +title_image_dark: /static/images/resources_dark/pallets.png title_url: https://www.palletsprojects.com/ urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/panda3d.yaml b/pydis_site/apps/resources/resources/panda3d.yaml index c05a35ca..dd200519 100644 --- a/pydis_site/apps/resources/resources/panda3d.yaml +++ b/pydis_site/apps/resources/resources/panda3d.yaml @@ -2,6 +2,7 @@ name: Panda3D description: Panda3D is a Python-focused 3-D framework for rapid development of games, visualizations, and simulations, written in C++ with an emphasis on performance and flexibility. title_image: /static/images/resources/panda3d.png +title_image_dark: /static/images/resources_dark/panda3d.png title_url: https://www.panda3d.org/ position: 9 urls: diff --git a/pydis_site/apps/resources/resources/people_postgres_data.yaml b/pydis_site/apps/resources/resources/people_postgres_data.yaml index 212eed89..ce5ad4a8 100644 --- a/pydis_site/apps/resources/resources/people_postgres_data.yaml +++ b/pydis_site/apps/resources/resources/people_postgres_data.yaml @@ -5,6 +5,7 @@ description: People, Postgres, Data specializes in building users of Postgres They take a holistic approach to their community inviting not only technical topics but Professional Development and Life in general including movies, games, books and travel. title_image: https://media.discordapp.net/attachments/748954447857844318/750519488268730377/people_postgres_data.png +title_image_dark: /static/images/resources_dark/people_postgres_data.png title_url: https://postgresconf.org/ urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/pyglet.yaml b/pydis_site/apps/resources/resources/pyglet.yaml index bdfb84cf..73f99bde 100644 --- a/pydis_site/apps/resources/resources/pyglet.yaml +++ b/pydis_site/apps/resources/resources/pyglet.yaml @@ -5,6 +5,7 @@ description: Pyglet is a powerful, loading images and videos, and playing sounds and music. All of this with a friendly Pythonic API, that's simple to learn and doesn't get in your way. title_image: https://i.imgur.com/LfQwXUe.png +title_image_dark: /static/images/resources_dark/pyglet.png title_url: http://pyglet.org/ urls: - icon: branding/discord diff --git a/pydis_site/apps/resources/resources/python_org.yaml b/pydis_site/apps/resources/resources/python_org.yaml index ece954dd..e7a9e806 100644 --- a/pydis_site/apps/resources/resources/python_org.yaml +++ b/pydis_site/apps/resources/resources/python_org.yaml @@ -1,6 +1,7 @@ name: The Python Tutorial description: The official Python tutorial by Python.org title_image: https://www.python.org/static/community_logos/python-logo-master-v3-TM.png +title_image_dark: /static/images/resources_dark/python.png title_url: https://docs.python.org/3/tutorial/ tags: topics: diff --git a/pydis_site/apps/resources/resources/sentdex.yaml b/pydis_site/apps/resources/resources/sentdex.yaml index 7cb0a8a4..baf42163 100644 --- a/pydis_site/apps/resources/resources/sentdex.yaml +++ b/pydis_site/apps/resources/resources/sentdex.yaml @@ -10,6 +10,7 @@ description: 'An enormous amount of Python content for all skill levels Check out his channel for more video series! ' title_image: https://i.imgur.com/kJgWZIu.png +title_image_dark: /static/images/resources_dark/sentdex.png title_url: https://www.youtube.com/user/sentdex urls: - icon: solid/external-link-alt diff --git a/pydis_site/static/css/base/base.css b/pydis_site/static/css/base/base.css index bd448695..150c0287 100644 --- a/pydis_site/static/css/base/base.css +++ b/pydis_site/static/css/base/base.css @@ -194,3 +194,11 @@ button.is-size-navbar-menu, a.is-size-navbar-menu { [data-theme="dark"] .button.is-link:hover, .button.is-link.is-hovered { background-color: #6276BC; } + +[data-theme="dark"] .light-image { + display: none; +} + +[data-theme="light"] .dark-image { + display: none; +} diff --git a/pydis_site/static/css/events/base.css b/pydis_site/static/css/events/base.css index dc6183d7..cd7ab5ae 100644 --- a/pydis_site/static/css/events/base.css +++ b/pydis_site/static/css/events/base.css @@ -32,7 +32,3 @@ pre { .box .sponsor { margin-bottom: 1rem; } - -[data-theme="dark"] .sponsor { - background-color: #EDEDED; -} diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index 13a19d38..f21263db 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -266,10 +266,6 @@ h1 { text-align: center; } -[data-theme="dark"] #sponsors { - background-color: #2C2F33 !important; -} - #sponsors .container { max-width: 70%; } @@ -284,10 +280,6 @@ h1 { max-height: 4rem; } -[data-theme="dark"] #sponsors a { - background-color: #EDEDED; -} - @media (min-width: 800px) { #sponsors a.column.is-one-third:first-child { margin-left: -.8rem; diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css index 582d96e4..3bf5ade4 100644 --- a/pydis_site/static/css/resources/resources.css +++ b/pydis_site/static/css/resources/resources.css @@ -37,7 +37,7 @@ i.has-icon-padding { display: none; } #tab-content p.is-active { -display: block; + display: block; } /* Disable highlighting for all text in the filters. */ diff --git a/pydis_site/static/images/events/DO_Logo_Vertical_Blue.png b/pydis_site/static/images/events/DO_Logo_Vertical_Blue.png deleted file mode 100644 index ad528652..00000000 Binary files a/pydis_site/static/images/events/DO_Logo_Vertical_Blue.png and /dev/null differ diff --git a/pydis_site/static/images/events/Replit.png b/pydis_site/static/images/events/Replit.png deleted file mode 100644 index a8202641..00000000 Binary files a/pydis_site/static/images/events/Replit.png and /dev/null differ diff --git a/pydis_site/static/images/events/Tabnine.png b/pydis_site/static/images/events/Tabnine.png deleted file mode 100644 index eee42a5e..00000000 Binary files a/pydis_site/static/images/events/Tabnine.png and /dev/null differ diff --git a/pydis_site/static/images/events/logos/DO_Logo_Vertical_Blue.png b/pydis_site/static/images/events/logos/DO_Logo_Vertical_Blue.png new file mode 100644 index 00000000..ad528652 Binary files /dev/null and b/pydis_site/static/images/events/logos/DO_Logo_Vertical_Blue.png differ diff --git a/pydis_site/static/images/events/logos/Replit.png b/pydis_site/static/images/events/logos/Replit.png new file mode 100644 index 00000000..08033134 Binary files /dev/null and b/pydis_site/static/images/events/logos/Replit.png differ diff --git a/pydis_site/static/images/events/logos/Tabnine.png b/pydis_site/static/images/events/logos/Tabnine.png new file mode 100644 index 00000000..eee42a5e Binary files /dev/null and b/pydis_site/static/images/events/logos/Tabnine.png differ diff --git a/pydis_site/static/images/events/logos_dark/DO_Logo_Vertical_White.png b/pydis_site/static/images/events/logos_dark/DO_Logo_Vertical_White.png new file mode 100644 index 00000000..d71b0714 Binary files /dev/null and b/pydis_site/static/images/events/logos_dark/DO_Logo_Vertical_White.png differ diff --git a/pydis_site/static/images/events/logos_dark/Replit.png b/pydis_site/static/images/events/logos_dark/Replit.png new file mode 100644 index 00000000..c362df72 Binary files /dev/null and b/pydis_site/static/images/events/logos_dark/Replit.png differ diff --git a/pydis_site/static/images/events/logos_dark/django.png b/pydis_site/static/images/events/logos_dark/django.png new file mode 100644 index 00000000..3d0bf011 Binary files /dev/null and b/pydis_site/static/images/events/logos_dark/django.png differ diff --git a/pydis_site/static/images/resources/adafruit.png b/pydis_site/static/images/resources/adafruit.png index 82cd45ac..652dbaeb 100644 Binary files a/pydis_site/static/images/resources/adafruit.png and b/pydis_site/static/images/resources/adafruit.png differ diff --git a/pydis_site/static/images/resources/kivy.png b/pydis_site/static/images/resources/kivy.png index 693b1834..025d0020 100644 Binary files a/pydis_site/static/images/resources/kivy.png and b/pydis_site/static/images/resources/kivy.png differ diff --git a/pydis_site/static/images/resources_dark/adafruit.png b/pydis_site/static/images/resources_dark/adafruit.png new file mode 100644 index 00000000..063f06ad Binary files /dev/null and b/pydis_site/static/images/resources_dark/adafruit.png differ diff --git a/pydis_site/static/images/resources_dark/coreyschafer.png b/pydis_site/static/images/resources_dark/coreyschafer.png new file mode 100644 index 00000000..12ad14c9 Binary files /dev/null and b/pydis_site/static/images/resources_dark/coreyschafer.png differ diff --git a/pydis_site/static/images/resources_dark/kivy.png b/pydis_site/static/images/resources_dark/kivy.png new file mode 100644 index 00000000..ec124706 Binary files /dev/null and b/pydis_site/static/images/resources_dark/kivy.png differ diff --git a/pydis_site/static/images/resources_dark/microsoft.png b/pydis_site/static/images/resources_dark/microsoft.png new file mode 100644 index 00000000..75197bbf Binary files /dev/null and b/pydis_site/static/images/resources_dark/microsoft.png differ diff --git a/pydis_site/static/images/resources_dark/pallets.png b/pydis_site/static/images/resources_dark/pallets.png new file mode 100644 index 00000000..e3ef3e05 Binary files /dev/null and b/pydis_site/static/images/resources_dark/pallets.png differ diff --git a/pydis_site/static/images/resources_dark/panda3d.png b/pydis_site/static/images/resources_dark/panda3d.png new file mode 100644 index 00000000..ed8878e3 Binary files /dev/null and b/pydis_site/static/images/resources_dark/panda3d.png differ diff --git a/pydis_site/static/images/resources_dark/people_postgres_data.png b/pydis_site/static/images/resources_dark/people_postgres_data.png new file mode 100644 index 00000000..8e207a62 Binary files /dev/null and b/pydis_site/static/images/resources_dark/people_postgres_data.png differ diff --git a/pydis_site/static/images/resources_dark/pyglet.png b/pydis_site/static/images/resources_dark/pyglet.png new file mode 100644 index 00000000..6e1a38ad Binary files /dev/null and b/pydis_site/static/images/resources_dark/pyglet.png differ diff --git a/pydis_site/static/images/resources_dark/python.png b/pydis_site/static/images/resources_dark/python.png new file mode 100644 index 00000000..154cede4 Binary files /dev/null and b/pydis_site/static/images/resources_dark/python.png differ diff --git a/pydis_site/static/images/resources_dark/sentdex.png b/pydis_site/static/images/resources_dark/sentdex.png new file mode 100644 index 00000000..b264d82c Binary files /dev/null and b/pydis_site/static/images/resources_dark/sentdex.png differ diff --git a/pydis_site/static/images/sponsors_dark/cloudflare.png b/pydis_site/static/images/sponsors_dark/cloudflare.png new file mode 100644 index 00000000..dd31a33a Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/cloudflare.png differ diff --git a/pydis_site/static/images/sponsors_dark/jetbrains.png b/pydis_site/static/images/sponsors_dark/jetbrains.png new file mode 100644 index 00000000..00726b33 Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/jetbrains.png differ diff --git a/pydis_site/static/images/sponsors_dark/linode.png b/pydis_site/static/images/sponsors_dark/linode.png new file mode 100644 index 00000000..d2b7baa4 Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/linode.png differ diff --git a/pydis_site/static/images/sponsors_dark/netcup.png b/pydis_site/static/images/sponsors_dark/netcup.png new file mode 100644 index 00000000..4921b495 Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/netcup.png differ diff --git a/pydis_site/static/images/sponsors_dark/netlify.png b/pydis_site/static/images/sponsors_dark/netlify.png new file mode 100644 index 00000000..3738f3fb Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/netlify.png differ diff --git a/pydis_site/static/images/sponsors_dark/notion.png b/pydis_site/static/images/sponsors_dark/notion.png new file mode 100644 index 00000000..f386320e Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/notion.png differ diff --git a/pydis_site/static/images/sponsors_dark/sentry.png b/pydis_site/static/images/sponsors_dark/sentry.png new file mode 100644 index 00000000..029c9e6f Binary files /dev/null and b/pydis_site/static/images/sponsors_dark/sentry.png differ diff --git a/pydis_site/templates/events/pages/code-jams/10/_index.html b/pydis_site/templates/events/pages/code-jams/10/_index.html index 9adaffa8..372aa805 100644 --- a/pydis_site/templates/events/pages/code-jams/10/_index.html +++ b/pydis_site/templates/events/pages/code-jams/10/_index.html @@ -93,9 +93,12 @@
-