Skip to content

Commit

Permalink
Merge pull request #265 from OCHA-DAP/dev
Browse files Browse the repository at this point in the history
dev into prod
  • Loading branch information
ccataalin authored May 23, 2024
2 parents 5c386d3 + dcc4418 commit 9a6d62b
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/blank-pages.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/blank-pages.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/js/humdata-blankpage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/js/humdata-blankpage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions build/page-templates/blank.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
<link rel="icon" href="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png" sizes="192x192">
<link rel="apple-touch-icon" href="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png">
<meta name="msapplication-TileImage" content="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri().'/blank-pages.css?v=3'; ?>"/>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri().'/blank-pages.css?v=7'; ?>"/>
</head>
<body>

Expand All @@ -61,7 +62,7 @@
mpTrack.pageView(document.title, '<?php echo get_post($pageID)->post_name; ?>');
}
</script>
<script src="<?php echo get_stylesheet_directory_uri().'/js/humdata-blankpages.js'; ?>"></script>
<script src="<?php echo get_stylesheet_directory_uri().'/js/humdata-blankpage.js?v=2'; ?>"></script>

</body>
</html>
6 changes: 3 additions & 3 deletions gulpconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
footer: ['footer'],
//header: ['header'],
//pageloader: ['pageloader', 'footer']
blankpages: ['blankpages'],
blankpage: ['blankpage'],
mixpanel: ['mixpanel'],
},
chunks: { // Chunks are arrays of paths or globs matching a set of source files; this way you can organize a bunch of scripts that go together into pieces that can then be bundled (above)
Expand Down Expand Up @@ -85,8 +85,8 @@ module.exports = {
mixpanel: [
src+'scripts/humdata-mixpanel.js',
],
blankpages: [
src+'scripts/humdata-blankpages.js',
blankpage: [
src+'scripts/humdata-blankpage.js',
]
},
dest: build+'js/', // Where the scripts end up in your theme
Expand Down
5 changes: 3 additions & 2 deletions src/page-templates/blank.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
<link rel="icon" href="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png" sizes="192x192">
<link rel="apple-touch-icon" href="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png">
<meta name="msapplication-TileImage" content="https://centre.humdata.org/wp-content/uploads/2018/07/favicon_32x32.png">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri().'/blank-pages.css?v=3'; ?>"/>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri().'/blank-pages.css?v=7'; ?>"/>
</head>
<body>

Expand All @@ -61,7 +62,7 @@
mpTrack.pageView(document.title, '<?php echo get_post($pageID)->post_name; ?>');
}
</script>
<script src="<?php echo get_stylesheet_directory_uri().'/js/humdata-blankpages.js'; ?>"></script>
<script src="<?php echo get_stylesheet_directory_uri().'/js/humdata-blankpage.js?v=2'; ?>"></script>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
(function ($) {

$(document).ready(function () {
var $registrationContainer = $('#hdf2024 #register').first();
var $registrationAnchor = $('#hdf2024 #registration-anchor').first();
var $registrationForm = $('#hdf2024 #registration-form').first();
var $submitBtn = $registrationForm.find('.btn');
var $submitSpinner = $registrationForm.find('.spinner');
Expand Down Expand Up @@ -35,6 +37,11 @@
}
});
});

if(window.location.href.indexOf('register=true') > -1) {
$registrationContainer.removeClass('d-none');
$registrationAnchor.removeClass('d-none');
}
});

})(jQuery);
92 changes: 91 additions & 1 deletion src/scss/blank-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ $malibu-color: #5EB1E4;

h2 {
color: #000;
font-size: 24px;
font-size: 22px;
font-weight: 300;
line-height: 26px;
a {
color: $red-color;
text-decoration: none;
}
}

h4 {
Expand Down Expand Up @@ -151,6 +155,7 @@ $malibu-color: #5EB1E4;
font-size: 22px;
border-left: 1px solid $green-color;
font-weight: 300;
line-height: 26px;
}

.feature {
Expand All @@ -170,6 +175,91 @@ $malibu-color: #5EB1E4;
}
}

#programme {
font-size: 22px;
font-weight: 300;
color: #000;
line-height: 26px;
.wrapper {
border-top: 1px solid $green-color;
a {
color: $red-color;
text-decoration: none;
}
.nav {
&.nav-pills {
.nav-item {
.nav-link {
color: $green-color;
font-weight: 300;
border-radius: 0;
border: 1px solid $green-color;
&.active {
color: #fff;
background-color: $green-color;
}
}
}
}
}
.tab-content {
.tab-pane {
.day {
font-size: 22px;
font-weight: 500;
color: $red-color;
margin-top: 2rem;
margin-bottom: 2rem;
}
.event {
margin-bottom: 1rem;
border-bottom: 1px solid $green-color;
.time {
font-size: 20px;
font-weight: 500;
margin-bottom: 0;
}
.name {
font-size: 20px;
font-weight: 500;
margin-bottom: 1rem;
}
.description {
font-size: 20px;
font-weight: 300;
margin-bottom: 0;
&:last-child {
margin-bottom: 1rem;
}
}
.highlight {
color: $green-color;
}
}
.subevents {
margin-bottom: 1rem;
.sub-event {
padding-left: 2rem;
margin-bottom: 1rem;
border-bottom: 0;
&:last-child {
border-bottom: 1px solid $green-color;
}
.name {
margin-bottom: 0;
}
}
hr {
margin-left: 2rem;
border-top-color: $green-color;
opacity: .25;
}
}
}
}
}
}

.footer {
a {
color: #fff;
Expand Down

0 comments on commit 9a6d62b

Please sign in to comment.