From 01deafa5bf5b68784d434d6f361c21d72cf89069 Mon Sep 17 00:00:00 2001 From: GDWR Date: Tue, 8 Feb 2022 00:43:03 +0000 Subject: Add initial dark theme --- pydis_site/static/css/base/navbar.css | 83 +++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 pydis_site/static/css/base/navbar.css (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css new file mode 100644 index 00000000..95ca36b8 --- /dev/null +++ b/pydis_site/static/css/base/navbar.css @@ -0,0 +1,83 @@ +.switch { + position: relative; + height: 3.25em; + width: 6.5em; + cursor: pointer; +} + +.switch-outer { + position: absolute; + height: 100%; + width: 100%; + border-radius: 2em; + transition: background-color 0.3s ease-out; +} + +.switch.dark .switch-outer { + background-color: #22272E; +} + +.switch.light .switch-outer { + background-color: #3f61d9; +} + +.switch-inner { + width: 95%; + top: 50%; + border-radius: 2em; + transition: background-color 0.2s ease-out; +} + +.switch.light .switch-inner { + background-color: #7289da; +} +.switch.dark .switch-inner { + background-color: #1b2137; +} + +.knob { + position: absolute; + height: 75%; + width: 37.5%; + top: 50%; + transform: translate(0%, -65%); + border-radius: 10em; + transition: all 0.5s ease-out; +} + +.knob.dark { + background-color: #586282; + margin: 6% auto auto 8%; +} + +.knob.light { + background-color: #364c94; + margin: 6% auto auto 56%; +} + +.theme-icon { + position: absolute !important; + color: white; + --ggs: 1.25; + opacity: 100%; + transition: opacity 0.2s ease-out; + top: 33%; + bottom: auto; +} + +.theme-icon.light { + left: 18%; +} + +.theme-icon.dark { + right: 18%; + top: 35% +} + +.switch.dark .theme-icon.light { + opacity: 0; +} + +.switch.light .theme-icon.dark { + opacity: 0; +} \ No newline at end of file -- cgit v1.2.3 From 2f0fa9b82e32bb6c7febf5285d5d5461de2eed6b Mon Sep 17 00:00:00 2001 From: GDWR Date: Tue, 8 Feb 2022 08:44:20 +0000 Subject: Resize switch --- pydis_site/static/css/base/navbar.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css index 95ca36b8..497429c6 100644 --- a/pydis_site/static/css/base/navbar.css +++ b/pydis_site/static/css/base/navbar.css @@ -1,7 +1,7 @@ .switch { position: relative; - height: 3.25em; - width: 6.5em; + height: 2em; + width: 5em; cursor: pointer; } @@ -58,20 +58,20 @@ .theme-icon { position: absolute !important; color: white; - --ggs: 1.25; + --ggs: 1; opacity: 100%; - transition: opacity 0.2s ease-out; - top: 33%; + transition: opacity 0.3s ease-out; bottom: auto; } .theme-icon.light { - left: 18%; + left: 15%; + top: 20% } .theme-icon.dark { - right: 18%; - top: 35% + right: 15%; + top: 20% } .switch.dark .theme-icon.light { -- cgit v1.2.3 From ed32b893bf785a9b858073eddd213b67b22f0cda Mon Sep 17 00:00:00 2001 From: GDWR Date: Wed, 9 Feb 2022 00:33:28 +0000 Subject: Remove clashing css --- pydis_site/static/css/home/timeline.css | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css index 0a4dfbb6..f9963d00 100644 --- a/pydis_site/static/css/home/timeline.css +++ b/pydis_site/static/css/home/timeline.css @@ -1,8 +1,3 @@ -body { - background-color: hsl(0, 0%, 100%); - background-color: var(--color-bg, white) -} - h2 { font-size: 2em; } -- cgit v1.2.3 From 9c3a4b677e29598329a03a1c613bfc22dc1e232f Mon Sep 17 00:00:00 2001 From: GDWR Date: Wed, 9 Feb 2022 00:50:34 +0000 Subject: Resize theme switch --- pydis_site/static/css/base/navbar.css | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css index 497429c6..66744c99 100644 --- a/pydis_site/static/css/base/navbar.css +++ b/pydis_site/static/css/base/navbar.css @@ -1,7 +1,7 @@ .switch { position: relative; height: 2em; - width: 5em; + width: 4em; cursor: pointer; } @@ -21,56 +21,38 @@ background-color: #3f61d9; } -.switch-inner { - width: 95%; - top: 50%; - border-radius: 2em; - transition: background-color 0.2s ease-out; -} - -.switch.light .switch-inner { - background-color: #7289da; -} -.switch.dark .switch-inner { - background-color: #1b2137; -} - .knob { position: absolute; - height: 75%; + padding-top: 20%; + height: 70%; width: 37.5%; - top: 50%; - transform: translate(0%, -65%); border-radius: 10em; transition: all 0.5s ease-out; } .knob.dark { background-color: #586282; - margin: 6% auto auto 8%; + margin: 7% auto auto 8%; } .knob.light { background-color: #364c94; - margin: 6% auto auto 56%; + margin: 7% auto auto 56%; } .theme-icon { position: absolute !important; - color: white; --ggs: 1; - opacity: 100%; transition: opacity 0.3s ease-out; - bottom: auto; } .theme-icon.light { - left: 15%; - top: 20% + left: 10%; + top: 15% } .theme-icon.dark { - right: 15%; + right: 10%; top: 20% } -- cgit v1.2.3 From 00638be5e4dc6fdea0398b70301e5bb956c18a39 Mon Sep 17 00:00:00 2001 From: GDWR Date: Wed, 9 Feb 2022 00:51:35 +0000 Subject: Resize theme switch --- pydis_site/static/css/base/navbar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css index 66744c99..bf8913ab 100644 --- a/pydis_site/static/css/base/navbar.css +++ b/pydis_site/static/css/base/navbar.css @@ -42,7 +42,7 @@ .theme-icon { position: absolute !important; - --ggs: 1; + --ggs: 0.75; transition: opacity 0.3s ease-out; } -- cgit v1.2.3 From 1177f0d442a40e603b5d4d06dfe6590133724dbf Mon Sep 17 00:00:00 2001 From: hedy Date: Thu, 14 Dec 2023 20:29:27 +0800 Subject: Automatically fix lint --- pydis_site/static/css/base/navbar.css | 2 +- pydis_site/static/js/base/navbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css index bf8913ab..9d71e799 100644 --- a/pydis_site/static/css/base/navbar.css +++ b/pydis_site/static/css/base/navbar.css @@ -62,4 +62,4 @@ .switch.light .theme-icon.dark { opacity: 0; -} \ No newline at end of file +} diff --git a/pydis_site/static/js/base/navbar.js b/pydis_site/static/js/base/navbar.js index b49c86b1..a4b8a0aa 100644 --- a/pydis_site/static/js/base/navbar.js +++ b/pydis_site/static/js/base/navbar.js @@ -91,4 +91,4 @@ document.addEventListener("DOMContentLoaded", () => { displayThemedElements(); toggleThemeSwitch(); }); -}); \ No newline at end of file +}); -- cgit v1.2.3 From a258ba1675fc1ac989b7d75efa52ccbaaf14bb57 Mon Sep 17 00:00:00 2001 From: hedy Date: Thu, 14 Dec 2023 20:55:43 +0800 Subject: Dark: Fix most colors on timeline A LOT of colors are still hardcoded in the CSS --- pydis_site/static/css/home/timeline.css | 7 - pydis_site/templates/home/timeline.html | 310 ++++++++++++++++---------------- 2 files changed, 155 insertions(+), 162 deletions(-) (limited to 'pydis_site/static/css') diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css index f9963d00..2fd2357e 100644 --- a/pydis_site/static/css/home/timeline.css +++ b/pydis_site/static/css/home/timeline.css @@ -3547,8 +3547,6 @@ mark { position: relative; margin-left: 1.25em; margin-left: var(--space-md); - background: hsl(0, 0%, 100%); - background: var(--color-white); border-radius: 0.25em; border-radius: var(--radius-md); padding: 1.25em; @@ -3598,11 +3596,6 @@ mark { } } -.cd-timeline__date { - color: hsla(207, 10%, 55%, 0.7); - color: hsla(var(--cd-color-3-h), var(--cd-color-3-s), var(--cd-color-3-l), 0.7) -} - @media (min-width: 64rem) { .cd-timeline__date { position: absolute; diff --git a/pydis_site/templates/home/timeline.html b/pydis_site/templates/home/timeline.html index 10c91007..49de14b5 100644 --- a/pydis_site/templates/home/timeline.html +++ b/pydis_site/templates/home/timeline.html @@ -10,7 +10,7 @@ {% block content %} {% include "base/navbar.html" %} -
+
@@ -19,8 +19,8 @@
-

Switch to new paste service

-

+

Switch to new paste service

+

We migrate over to pinnwand as the service that powers our paste bin over at https://paste.pythondiscord.com/. @@ -29,7 +29,7 @@ Python!

- Jul 11th, 2023 + Jul 11th, 2023
@@ -40,8 +40,8 @@
-

Retirement of Joe and Sebastiaan

-

+

Retirement of Joe and Sebastiaan

+

Having been at the helm of Python Discord for over 5 and 3 years respectively, Joe and Sebastiaan retire and step down. They gain the @Founders role and continue as advisors to the @Directors, the new name of the original @Owners role. @@ -49,7 +49,7 @@ At the same time, Mina and Zig join Leon as co-directors.

- Jan 30th, 2023 + Jan 30th, 2023
@@ -60,14 +60,14 @@
-

Switch to forum-based help system

-

+

Switch to forum-based help system

+

We migrate our help system to use a forum channel, retiring our home-grown rotating help system after 3 years of service and nearly 500,000 help sessions. Forum channels offer a better experience as members can create their own dedicated thread in a discoverable place.

- Nov 25th, 2022 + Nov 25th, 2022
@@ -78,8 +78,8 @@
-

Python 3.11 Release Stream

-

+

Python 3.11 Release Stream

+

With the Python 3.10 Release Stream being such a success, we brought it back for the release of Python 3.11. Hosted by Leon, and CPython 3.11 Release Manager, Pablo Galindo, they were joined by other CPython Core Developers. Together, they discuss the specific @@ -93,7 +93,7 @@

- Oct 24th, 2022 + Oct 24th, 2022
@@ -104,8 +104,8 @@
-

Summer Code Jam 2022 (CJ9)

-

+

Summer Code Jam 2022 (CJ9)

+

We host the 9th Code Jam. This year, teams had to use websockets to create a project based on the theme, It's not a bug, it's a feature. In all, 24 teams submitted their projects. At the end, we held a livestream demoing the top 10 projects @@ -119,7 +119,7 @@

- July 21st, 2022 + July 21st, 2022
@@ -130,13 +130,13 @@
-

Partnership with pyqtgraph

-

+

Partnership with pyqtgraph

+

The #pyqtgraph channel is created for the Scientific Graphics and GUI library pyqtgraph, joining #black-formatter.

- May 19th, 2022 + May 19th, 2022
@@ -147,13 +147,13 @@
-

Addition of @Sir Robin

-

+

Addition of @Sir Robin

+

Our arsenal of bots grows! We add @Sir Robin to power and manage all of our future events and to support the Events Team.

- Feb 21st, 2022 + Feb 21st, 2022
@@ -164,14 +164,14 @@
-

Trivia Night

-

+

Trivia Night

+

How well do you know Python inside out? Members got to find out in a Trivia Night event. Contestants were given questions about Python's internals, its development, and more. To win, contestants had to get the most questions right while being fast to answer.

- Feb 12th, 2022 + Feb 12th, 2022
@@ -182,14 +182,14 @@
-

Creation of Events Team

-

+

Creation of Events Team

+

We form the Events Team to organise and run future events. Led by Kat and comprised by staff members, the goal of the team is to ultimately host more events in a more sustainable way.

- Feb 9th, 2022 + Feb 9th, 2022
@@ -201,8 +201,8 @@
-

Deployment of Smarter Resources

-

+

Deployment of Smarter Resources

+

We gave our resources pages some much needed love and reorganised them into a single page, @@ -210,7 +210,7 @@ ones that relate to your interests, experience, learning style, and ability to pay!

- Feb 2nd, 2022 + Feb 2nd, 2022
@@ -221,13 +221,13 @@
-

We hit 300 000 members!

-

+

We hit 300 000 members!

+

Thanks to an increasing growth rate, Python Discord's membership count doubled from 150,000 to 300,000 in less than a year!

- Jan 19, 2022 + Jan 19, 2022
@@ -238,8 +238,8 @@
-

We host the Python 3.10 Release Stream

-

+

We host the Python 3.10 Release Stream

+

Leon and Pablo Galindo, CPython Core Developer and Release Manager, host the Python 3.10 Release Stream, joined by other core devs Carol Willing, Irit Katriel, Łukasz Langa, and Brandt Bucher. They talked in-depth about the new features introduced in 3.10, the @@ -253,7 +253,7 @@

- Oct 4th, 2021 + Oct 4th, 2021
@@ -264,14 +264,14 @@
-

Partnership with Black

-

+

Partnership with Black

+

We partner with the uncompromising code formatter project, Black, who were looking for a new home for their real-time chat. Python Discord ended up being that home, resulting in the creation of the #black-formatter channel.

- May 24th, 2021 + May 24th, 2021
@@ -282,8 +282,8 @@
-

Summer Code Jam 2021 (CJ8)

-

+

Summer Code Jam 2021 (CJ8)

+

We host the 8th now-annual Code Jam. Teams had to create a program with an text-based user interface (TUI), all designed around the theme of “think inside the box.” Ultimately, 51 teams submitted projects. @@ -293,7 +293,7 @@

- July 9, 2021 + July 9, 2021
@@ -304,19 +304,19 @@
-

Inaugural run of Pixels

-

+

Inaugural run of Pixels

+

Inspired by the subreddit, r/place, Pixels was our collaborative canvas event held between May 25 to June 14, providing a beginner-friendly API to paint pixels on a virtual canvas.

-

+

Later, we released a blog post summarizing what happened, our motives, and some stories from during development.

- May 24, 2021 + May 24, 2021
@@ -327,8 +327,8 @@
-

Owners become PSF Fellows

-

Joe, Leon, and Sebastiaan +

Owners become PSF Fellows

+

Joe, Leon, and Sebastiaan are recognized as Python Software Foundation Fellows @@ -337,7 +337,7 @@

- April 23, 2021 + April 23, 2021
@@ -348,8 +348,8 @@
-

Summer Code Jam 2020 Highlights

-

+

Summer Code Jam 2020 Highlights

+

We release a new video to our YouTube showing the best projects from the Summer Code Jam 2020. Better late than never!

@@ -361,7 +361,7 @@
- Mar 21st, 2021 + Mar 21st, 2021
@@ -372,8 +372,8 @@
-

New feature: Weekly discussion channel

-

Every week (or two weeks), we'll be posting a new topic to discuss in a +

New feature: Weekly discussion channel

+

Every week (or two weeks), we'll be posting a new topic to discuss in a channel called #weekly-topic-discussion. Our inaugural topic is a PyCon talk by Anthony Shaw called Wily Python: Writing simpler and more maintainable Python..

@@ -385,7 +385,7 @@
- Mar 13th, 2021 + Mar 13th, 2021
@@ -396,8 +396,8 @@
-

We're on the Teaching Python podcast!

-

Leon joins Sean and Kelly on the Teaching Python podcast to discuss how the pandemic has +

We're on the Teaching Python podcast!

+

Leon joins Sean and Kelly on the Teaching Python podcast to discuss how the pandemic has changed the way we learn, and what role communities like Python Discord can play in this new world. You can find the episode at teachingpython.fm.

@@ -407,7 +407,7 @@ >
- Mar 13th, 2021 + Mar 13th, 2021
@@ -418,8 +418,8 @@
-

Leon Sandøy appears on Talk Python To Me

-

Leon goes on the Talk Python to Me podcast with Michael Kennedy +

Leon Sandøy appears on Talk Python To Me

+

Leon goes on the Talk Python to Me podcast with Michael Kennedy to discuss the history of Python Discord, the critical importance of culture, and how to run a massive community. You can find the episode at talkpython.fm.

@@ -429,7 +429,7 @@
- Mar 1st, 2021 + Mar 1st, 2021
@@ -440,11 +440,11 @@
-

We now have 150,000 members!

-

Our growth continues to accelerate.

+

We now have 150,000 members!

+

Our growth continues to accelerate.

- Feb 18th, 2021 + Feb 18th, 2021
@@ -455,8 +455,8 @@
-

We release The PEP 8 song

-

We release the PEP 8 song on our YouTube channel, which finds tens of +

We release The PEP 8 song

+

We release the PEP 8 song on our YouTube channel, which finds tens of thousands of listeners!

@@ -466,7 +466,7 @@
- February 8th, 2021 + February 8th, 2021
@@ -477,8 +477,8 @@
-

Advent of Code attracts hundreds of participants

-

+

Advent of Code attracts hundreds of participants

+

A total of 443 Python Discord members sign up to be part of Eric Wastl's excellent Advent of Code event. As always, we provide dedicated announcements, scoreboards, bot commands and channels for our members @@ -487,7 +487,7 @@

- December 1st - 25th, 2020 + December 1st - 25th, 2020
@@ -498,14 +498,14 @@
-

We migrate all our infrastructure to Kubernetes

-

As our tech stack grows, we decide to migrate all our services over to a +

We migrate all our infrastructure to Kubernetes

+

As our tech stack grows, we decide to migrate all our services over to a container orchestration paradigm via Kubernetes. This gives us better control and scalability. Joe Banks takes on the role as DevOps Lead.

- Nov 29th, 2020 + Nov 29th, 2020
@@ -516,13 +516,13 @@
-

Python Discord hits 100,000 members!

-

Only six months after hitting 40,000 users, we hit 100,000 users. A +

Python Discord hits 100,000 members!

+

Only six months after hitting 40,000 users, we hit 100,000 users. A monumental milestone, and one we're very proud of. To commemorate it, we create this timeline.

- Oct 22nd, 2020 + Oct 22nd, 2020
@@ -533,7 +533,7 @@
-

Python Discord hosts the 2020 CPython Core Developer Q&A

+

Python Discord hosts the 2020 CPython Core Developer Q&A

-
+

PyWeek

@@ -41,7 +41,7 @@
-
+

Advent of Code

@@ -69,7 +69,7 @@
-
+

Game Jam

diff --git a/pydis_site/templates/events/pages/code-jams/8/_index.html b/pydis_site/templates/events/pages/code-jams/8/_index.html index cc8de6b1..319d9ecb 100644 --- a/pydis_site/templates/events/pages/code-jams/8/_index.html +++ b/pydis_site/templates/events/pages/code-jams/8/_index.html @@ -108,7 +108,7 @@ to provide our prizes as well.

-
+
-
+
-
+