Skip to content

Commit

Permalink
2024 (#389)
Browse files Browse the repository at this point in the history
* Preparing 2024

* Move to HK Grotesk font

* To black font color

* Upgrade favicon

* Add iframe top menu

* update colors

* update form

* Update banner

* Test new events

* Move ok-panel

* Update python, node and lektor

* "

* Update ODD logo

* intro text and images

* svg this year and links

* Who text

* Final changes

* Update content/events/2024/contents+es_es.lr

Co-authored-by: Adrià Mercader <[email protected]>

---------

Co-authored-by: Adrià Mercader <[email protected]>
  • Loading branch information
avdata99 and amercader authored Oct 25, 2023
1 parent 9229339 commit 5086d62
Show file tree
Hide file tree
Showing 45 changed files with 3,877 additions and 2,211 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.10"

- name: Set up Node.js 12
- name: Set up Node.js 16
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Install python dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Update Data
run: |
python ./etl/2023.py
python ./etl/2024.py
git config user.name "opendataday[bot]"
git config user.email "[email protected]"
git add -A
Expand Down
3 changes: 3 additions & 0 deletions Datasets/Events 2024.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
event_date,event_name,event_photo_url,event_purpose,event_report_url,event_tweet_url,event_video_url,has_event_report,latitude,longitude,online_event_url,organisers,place,slug,url,world_region_code,world_region_text
,Some test 2024 ODD event,,,,,,False,33.91,63.0,,Open data cordoba,Cordoba,some-test-2024-odd-event,,,
,Third event,,Some purpose,,,,False,-33.901,-64.81,,OKFN Cordoba,Cordoba,third-event,https://okfn.org,,
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ These will need to be resolved by editing the input spreadsheet.

There are three bits of setup we need to do each year:

Before we start, we will need a Google Form and a Google Sheet to collect the event data.
This is the 2023 form: https://docs.google.com/forms/d/e/1FAIpQLSc5wiXeUur8GHMKmi1TQIMxwk107eMJVN6UVoibIfUwGZfc7A/viewform
The Google Sheet identificators must be added to the `/etl/202x.py` file.
This script will attempt to read the data from the Google Sheet so you need to ensure this sheet is public.

- **1. Create a new import job:**
- Create `./etl/202x.py` based on a previous year's file
Expand Down
Binary file modified assets/favicon.ico
Binary file not shown.
10 changes: 10 additions & 0 deletions assets/images/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/logo-odd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions assets/js/map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var url = 'https://raw.githubusercontent.com/okfn/opendataday/master/databags/events-2023.json';
var url = 'https://raw.githubusercontent.com/okfn/opendataday/master/databags/events-2024.json';
mapboxgl.accessToken = 'pk.eyJ1Ijoib2tmbiIsImEiOiJjaXlrOW5yczgwMDEzMnlwaWd2ZzF6MDQ3In0.2UJlkR69zbu4-3YRJJgN5w';

var clusterRadius = 50,
Expand Down Expand Up @@ -150,9 +150,9 @@ map.on('load', function () {
"circle-color": [
"step",
["get", "point_count"],
'#0086FF', // blue
10, '#FF4900', // red from count 10 up
20, '#FFB900' // yellow from count 20 up
'#00d1ff', // blue
10, '#e077ff', // red from count 10 up
20, '#e4ff36' // yellow from count 20 up
],
"circle-radius": 18
}
Expand Down
3 changes: 3 additions & 0 deletions assets/scss/_colours.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ $yellow: #E4FF36;
$blue: #00D1FF;
$secblue: #9ab201;
$purple: #E077FF;
$fancy-green: #e4ff36;
$red: #FF80DB;
$green: #AEFFEC;
$orange: #FF6200;
$dark-grey: #2D2D2D;
$white: #FFFFFF;
58 changes: 38 additions & 20 deletions assets/scss/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ body {
background-color: $yellow;
width: 100%;
display: table;
background-image: url("../images/banner.png");
background-image: url("../images/banner.svg");
background-size: cover;
background-position: center;
@media only screen and (-webkit-min-device-pixel-ratio: 1.3) and (min-width: 720px),
Expand All @@ -27,16 +27,13 @@ body {
line-height: 1.5;

span {
background-color: $black;
@include rev-text;
position: relative;
z-index: 1;
display: inline-block;

&:after {
content: "\00a0";
display: block;
background-color: $black;
position: absolute;
left: 100%;
top: 0;
Expand All @@ -51,6 +48,11 @@ body {
&.l2 {
top: -0.3em;
}

&.l3 {
top: -0.3em;
font-weight: normal;
}
}
}

Expand Down Expand Up @@ -126,6 +128,9 @@ body {
@media (min-width: $max-screen) {
max-width: 500px;
}
& svg{
width: 450px;
}
}
}

Expand All @@ -134,7 +139,7 @@ body {
padding: $gutter $gutter $gutter/2 $gutter;

h2 {
color: $blue;
color: $black;
}

@media (min-width: $max-screen) {
Expand All @@ -158,8 +163,7 @@ body {
}
}
.this-year {
background-color: $purple;
@include rev-text;
background-color: $white;
position: relative;

@media (min-width: $large-screen) {
Expand All @@ -173,18 +177,12 @@ body {
bottom: 0;
left: 100%;
width: 50vw;
background-color: $purple;
background-color: $white;
}
}

header {
padding: $gutter $gutter 0 $gutter;

@media (min-width: $max-screen) {
padding-right: 0;
text-align: right;
float: right;
}
}

.theme {
Expand Down Expand Up @@ -278,7 +276,6 @@ body {

&#who {
background-color: $blue;
@include rev-text;
@media (min-width: $max-screen) {
position: relative;
padding-bottom: 50px;
Expand Down Expand Up @@ -332,7 +329,7 @@ body {

span {
display: inline-block;
background-color: #fff;
background-color: $black;
padding: 1.2em;
border-radius: 50%;

Expand All @@ -357,7 +354,7 @@ body {
padding-right: $gutter;

h2 {
color: $blue;
color: $black;
}

svg {
Expand Down Expand Up @@ -457,8 +454,7 @@ body {
}

&#support {
background-color: $purple;
@include rev-text;
background-color: $fancy-green;

& > div {
padding-bottom: $gutter;
Expand All @@ -467,7 +463,7 @@ body {
padding: $gutter $gutter 0;

& + a {
@include button(#fff, $purple);
@include button($black, $white);
margin: $gutter;
}
}
Expand Down Expand Up @@ -539,3 +535,25 @@ body {
}
}
}

.intro2-box {
padding: 25px;
font-size: small;
border: 3px solid $black;
}

.oddbtn {
background-color: $black;
color: $white;
padding: 20px 45px;
margin-top: 25px;
margin-bottom: 25px;
text-decoration: none;
display: block;
border-radius: 12px;
font-weight: bold;
text-align: center;
width: 250px;
margin-left: auto;
margin-right: auto;
}
14 changes: 14 additions & 0 deletions assets/scss/_ok-ribbon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ok-panel {
border-color: $dark-grey;
}

#ok-panel-wrapper {
float: right;
}

#ok-panel-wrapper:not([data-breakpoint*='px'])>.ok-ribbon {
margin-top: 0;
background-color: $dark-grey;
margin-bottom: 1.5em;
background-color: transparent;
}
2 changes: 1 addition & 1 deletion assets/scss/_type.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$base-font-family: 'Noto Sans', sans-serif;
$base-font-family: 'HK Grotesk', sans-serif;
$base-font-size: 1em;
$base-line-height: 1.5;
$heading-line-height: 1.2;
Expand Down
1 change: 1 addition & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "colours";
@import "type";
@import 'ok-ribbon';
@import "sizes";
@import "mixins";
@import "description_list";
Expand Down
Loading

0 comments on commit 5086d62

Please sign in to comment.