From 383b03ef62fabacf654b724b8ca32f6d68138a57 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Thu, 3 Mar 2016 11:55:26 +0800 Subject: [PATCH 001/103] Add analytics --- common/templates/base.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/templates/base.html b/common/templates/base.html index 3ad8b5b..e204945 100644 --- a/common/templates/base.html +++ b/common/templates/base.html @@ -16,6 +16,14 @@ {% endcompress %} {% endblock %} +
{% block content %}{% endblock %}
From 64b30093b65d05b4a603aa0c1ce33dd88b6333d9 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Thu, 3 Mar 2016 11:57:48 +0800 Subject: [PATCH 002/103] Prioritize sponsored posts --- jobs/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/api.py b/jobs/api.py index cbecae4..cecf96e 100644 --- a/jobs/api.py +++ b/jobs/api.py @@ -47,7 +47,7 @@ def build_filters(self, filters=None): return super(JobResource, self).build_filters(filters) def apply_sorting(self, obj_list, options=None): - return obj_list.order_by('-updated_at') + return obj_list.order_by('is_sponsored', '-updated_at') def obj_create(self, bundle, **kwargs): return super(JobResource, self).obj_create( From c907159e4349c8ac8653be22067829ee1c5dc133 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Thu, 3 Mar 2016 12:14:27 +0800 Subject: [PATCH 003/103] Fix order of is_sponsored --- jobs/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/api.py b/jobs/api.py index cecf96e..67d98aa 100644 --- a/jobs/api.py +++ b/jobs/api.py @@ -47,7 +47,7 @@ def build_filters(self, filters=None): return super(JobResource, self).build_filters(filters) def apply_sorting(self, obj_list, options=None): - return obj_list.order_by('is_sponsored', '-updated_at') + return obj_list.order_by('-is_sponsored', '-updated_at') def obj_create(self, bundle, **kwargs): return super(JobResource, self).obj_create( From 1ab6c136dec1e4b70f42ee4e469f7bf1be5a1810 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Thu, 3 Mar 2016 12:23:32 +0800 Subject: [PATCH 004/103] Sort by create date rather than update date --- jobs/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/api.py b/jobs/api.py index 67d98aa..e5612b2 100644 --- a/jobs/api.py +++ b/jobs/api.py @@ -47,7 +47,7 @@ def build_filters(self, filters=None): return super(JobResource, self).build_filters(filters) def apply_sorting(self, obj_list, options=None): - return obj_list.order_by('-is_sponsored', '-updated_at') + return obj_list.order_by('-is_sponsored', '-created_at') def obj_create(self, bundle, **kwargs): return super(JobResource, self).obj_create( From f7a446cfa001ecbad8db9af2ed492c8be56d8c63 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Sat, 19 Mar 2016 15:12:25 +0800 Subject: [PATCH 005/103] Add mobile styles --- .dockerignore | 4 +-- .gitignore | 4 +-- bin/devmanage | 3 +++ landing/static/landing/scss/landing.scss | 32 ++++++++++++++++++------ landing/templates/landing/index.html | 29 +++++++++++---------- 5 files changed, 46 insertions(+), 26 deletions(-) create mode 100755 bin/devmanage diff --git a/.dockerignore b/.dockerignore index 24d2824..afb70b7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,12 +8,10 @@ __pycache__ # npm ./npm-debug.log -# django -./local_settings.py - # volumes ./venv ./static +./media ./bower_components ./node_modules diff --git a/.gitignore b/.gitignore index 82c1c6c..92319cc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,12 +6,10 @@ __pycache__/ # npm npm-debug.log -# django -local_settings.py - # volumes /venv/* /static/* +/media/* /bower_components/* /node_modules/* diff --git a/bin/devmanage b/bin/devmanage new file mode 100755 index 0000000..b175c3d --- /dev/null +++ b/bin/devmanage @@ -0,0 +1,3 @@ +#!/bin/bash +export $(cat dev.env | xargs) +venv/bin/python manage.py $@ diff --git a/landing/static/landing/scss/landing.scss b/landing/static/landing/scss/landing.scss index 2e2b34d..85274ee 100644 --- a/landing/static/landing/scss/landing.scss +++ b/landing/static/landing/scss/landing.scss @@ -1,6 +1,6 @@ body { background: rgb(0, 16, 64); - font-family: Cabin, sans-serif; + font: 20px/1.5 Cabin, sans-serif; } h1, h2, h3, h4, h5 { @@ -12,6 +12,10 @@ address { white-space: pre-line; } +a { + text-decoration: none; +} + h1 { & { line-height: 1; @@ -31,19 +35,13 @@ h1 { } } -.container { - width: 40rem; -} - .landing { background: url(../images/svi.jpg) no-repeat center center; background-size: cover; min-height: 100vh; - align-content: center; } .overlay { - position: absolute; top: 0; left: 0; right: 0; @@ -66,3 +64,23 @@ h1 { background: rgba(0, 16, 64, 0.9); } +/* Mobile */ + +@media (max-width: 52em) { + header { + text-align: center; + } + header ul { + width: 100%; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + } +} + +@media (min-width: 64em) { + header ul { + text-align: right; + } +} + diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html index c0793ed..a522523 100644 --- a/landing/templates/landing/index.html +++ b/landing/templates/landing/index.html @@ -9,7 +9,10 @@ Python Philippines - + + + + {% compress css %} @@ -17,27 +20,27 @@ -
-
-
-
-
-

+
+
+
+
+
+

Python Philippines

- -
+
+

We are PythonPH, a community in the Philippines for enthusiasts and users of the Python programming language. Our aim is to show that Python has something for everyone: from hobbyists, to educators, to @@ -52,7 +55,7 @@

is about and you're in the Philippines or a Filipino, you're much welcome to join this community!

Contact us at info@python.ph.

-

+

From b585d8747e633e12326467d215c2c782fda0e73a Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Sat, 19 Mar 2016 15:33:00 +0800 Subject: [PATCH 006/103] Add team list --- landing/templates/landing/index.html | 46 ++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html index a522523..6e27720 100644 --- a/landing/templates/landing/index.html +++ b/landing/templates/landing/index.html @@ -12,7 +12,6 @@ - {% compress css %} @@ -40,7 +39,7 @@

-
+

We are PythonPH, a community in the Philippines for enthusiasts and users of the Python programming language. Our aim is to show that Python has something for everyone: from hobbyists, to educators, to @@ -52,10 +51,51 @@

Today, we hold monthly meet-ups for knowledge sharing and some pizza. Whether you're new to programming, an experienced practitioner, or just plain curious what this Python programming language - is about and you're in the Philippines or a Filipino, you're much welcome + is about, you're much welcome to join this community!

Contact us at info@python.ph.

+
+

Our Team

+
+
+

Ray Diño

+ Trustee +
+
+

Matt Lebrun

+ Trustee +
+
+

Josef Monje

+ Trustee +
+
+

Micaela Reyes

+ Trustee +
+
+

Jerry Tieng

+ Trustee +
+
+

Sony Valdez

+ Trustee +
+
+

Mark Steve Samson

+ President +
+
+

Dian Leithon Isidro

+ Secretary +
+
+

Nadine Jamila

+ Treasurer +
+
+
From 441f477b65fc3d53c89df103fb25abdf17366a88 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Mon, 11 Apr 2016 20:57:43 +0800 Subject: [PATCH 007/103] Add members --- landing/templates/landing/index.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html index 6e27720..0f3e30f 100644 --- a/landing/templates/landing/index.html +++ b/landing/templates/landing/index.html @@ -55,9 +55,25 @@

to join this community!

Contact us at info@python.ph.

-
-

Our Team

+
+

Our Team

+
+

Allan Barredo

+ Member +
+
+

Rodolfo Duldulao

+ Member +
+
+

Clarke Plumo

+ Member +
+
+

Clau Yagyagan

+ Member +

Ray Diño

Trustee From 65bb20995c0e50071d79644b982dc4c468a86986 Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Mon, 11 Apr 2016 22:23:55 +0800 Subject: [PATCH 008/103] Update jobs layout --- common/static/common/scss/main.scss | 5 ++++- jobs/static/jobs/scss/main.scss | 18 ++++++++---------- jobs/templates/jobs/base.html | 5 ++++- .../static/registration/scss/main.scss | 7 ++----- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/common/static/common/scss/main.scss b/common/static/common/scss/main.scss index 037b5e7..b628e3b 100644 --- a/common/static/common/scss/main.scss +++ b/common/static/common/scss/main.scss @@ -5,7 +5,6 @@ } body { - background: $text-color; padding: 0; margin: 0; font-family: Roboto, serif; @@ -17,12 +16,16 @@ h1 { font-family: Raleway; text-transform: uppercase; margin: 0; + line-height: 0.8; } a { border: none; color: inherit; text-decoration: none; } + small { + letter-spacing: 0.1em; + } } h2, h3, h4 { diff --git a/jobs/static/jobs/scss/main.scss b/jobs/static/jobs/scss/main.scss index 6620c26..1607760 100644 --- a/jobs/static/jobs/scss/main.scss +++ b/jobs/static/jobs/scss/main.scss @@ -1,22 +1,20 @@ @import "common/scss/variables"; -.container { - max-width: 80em; - margin: 3rem auto; - background: white; -} - .header { & { background: $primary-color; padding: 1rem 2rem; display: flex; } - .title { - flex: 1; + .title h1, .ghbtns { + display: inline-block; + vertical-align: middle; + } + .title h1 { + margin-right: 1em; } .ghbtns { - line-height: 1.5rem; + line-height: 1; } .links { display: flex; @@ -29,12 +27,12 @@ text-align: center; } .links li { - width: 25%; margin: 0 0.5rem; } .links li a { border: 0; width: 100%; + padding: 0 1rem; display: inline-block; background: lighten($primary-color, 10); color: inherit; diff --git a/jobs/templates/jobs/base.html b/jobs/templates/jobs/base.html index 9aaffad..a6a033b 100644 --- a/jobs/templates/jobs/base.html +++ b/jobs/templates/jobs/base.html @@ -15,7 +15,10 @@ {% block content %}
-

Python.PH Jobs Board

+

+ Python.PH
+ Jobs Board +

+
From efacb0bb46d7ab88329606901206679c5dfc36dc Mon Sep 17 00:00:00 2001 From: Zorex Date: Tue, 8 Mar 2022 09:44:30 +0800 Subject: [PATCH 083/103] Apply uniform image class to the WFH Pythonista Banner --- landing/templates/landing/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html index 3ddf684..e79edd6 100644 --- a/landing/templates/landing/index.html +++ b/landing/templates/landing/index.html @@ -590,7 +590,10 @@

data-aos-duration="1000" data-aos-offset="300" > - +