Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globals footer #5

Open
wants to merge 8 commits into
base: feature/setup-development-environment
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ wp-content/mu-plugins/wpe-wp-sign-on-plugin*
/wp-admin
/wp-includes
/wp-content/themes/*
!/wp-content/themes/academyAfrica
!/wp-content/themes/hello-elementor
/wp-content/plugins/*
!/wp-content/plugins/index.php
/wp-content/mu-plugins
.htaccess
apple-touch-icon-precomposed.png
Expand All @@ -74,6 +71,7 @@ favicon.ico
wpe-deploy-status-academyafrica
robots.txt
wordpress
node_modules

# large/disallowed file types
# a CDN should be used for these
Expand Down Expand Up @@ -111,3 +109,8 @@ wordpress
*.avi

.env

!/wp-content/themes/academyAfrica
!/wp-content/themes/hello-elementor
!/wp-content/plugins/index.php
!/wp-content/plugins/academy-africa
1 change: 1 addition & 0 deletions contrib/docker-compose/php/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow_url_fopen: 1
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ services:
- ./wp-content/themes:/var/www/html/wp-content/themes
- ./wp-content/plugins:/var/www/html/wp-content/plugins
- ./contrib/docker-compose/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./contrib/docker-compose/php/php.ini:/usr/local/etc/php/php.ini

44 changes: 44 additions & 0 deletions wp-content/plugins/academy-africa/academy-africa.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

/**
* Plugin Name: Academy Africa
* Description: This plugin provides custom widgets for the Academy Africa website.
* Version: 1.0.0
* Author: Code for Africa
* Author URI: github.com/CodeForAfrica
* Text Domain: academy-africa
*/


if (!defined('ABSPATH')) exit; // Exit if accessed directly


// Define Academy Africa Plugin Constants

if (!defined('ACADEMY_AFRICA_PLUGIN_VERSION')) {
define('ACADEMY_AFRICA_PLUGIN_VERSION', '1.0.0');
}

if (!defined('ACADEMY_AFRICA_PLUGIN_DIR')) {
define('ACADEMY_AFRICA_PLUGIN_DIR', dirname(__FILE__));
}

/**
* Main Elementor Test Extension Class
*
* The main class that initiates and runs the plugin.
*
* @since 1.0.0
*/



function academy_africa_plugin($widgets_manager)
{

require_once(__DIR__ . '/includes/plugin.php');

// Run the plugin
\Academy_Africa\Plugin::instance();
}
add_action('plugins_loaded', 'academy_africa_plugin');
Empty file.
273 changes: 273 additions & 0 deletions wp-content/plugins/academy-africa/includes/assets/css/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@

.body1,
.root .links .primary,
.root .embed #mc_embed_signup,
.root .embed #mc_embed_signup input[type="text"],
.root .embed #mc_embed_signup input[type="email"] {
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 14px;
font-style: italic;
font-weight: 400;
line-height: 23px;
/* 164.286% */
}

.subtitle1,
.root .embed #mc_embed_signup input[type="submit"] {
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 24px;
/* 133.333% */
text-decoration-line: underline;
}

.root {
box-sizing: border-box;
display: flex;
width: 100%;
padding: 100px 0;
justify-content: center;
background: var(--primary-700, #0c1a81);
}

.root .item {
box-sizing: border-box;
flex: 1 1 33.33%;
width: 33.33%;
display: flex;
margin-bottom: 60px;
}

.root .item:nth-child(1) {
justify-content: flex-end;
padding-left: 100px;
}

.root .item:nth-child(2) {
justify-content: flex-end;
}

.root .item:nth-child(3) {
justify-content: center;
}

@media only screen and (max-width: 768px) {
.root .item {
padding: 0 80px;
flex: 1 1 100%;
width: 100%;
}
}

@media only screen and (max-width: 768px) {
.root {
flex: 1;
flex-direction: column;
align-items: center;
}

.root .item:nth-child(1) {
order: 2;
/* Display item 1 as the third item */
}

.root .item:nth-child(2) {
justify-content: center;
order: 3;
/* Display item 2 as the first item */
}

.root .item:nth-child(3) {
order: 1;
/* Display item 3 as the second item */
}
}

.root .site-description {
display: flex;
flex-direction: column;
justify-content: space-between;
align-self: stretch;
}

@media only screen and (max-width: 768px) {
.root .site-description {
padding: 0;
text-align: center;
align-items: center;
}
}

.root .site-description .description {
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 14px;
/* 116.667% */
letter-spacing: 0.24px;
margin-top: 52px;
}

.root .site-description .connect {
display: flex;
align-items: center;
gap: 33px;
color: var(--shades-white, #fff);
margin-top: 33px;
font-family: Open Sans;
font-size: 10px;
font-style: normal;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
}

@media only screen and (max-width: 768px) {
.root .site-description .connect {
display: block;
text-align: center;
width: 100%;
}
}

.root .links {
width: 200px;
justify-self: end;
padding: 0 40px;
box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
.root .links {
padding: 0 40px;
}
}

.root .links .primary {
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 23px;
font-style: normal;
font-weight: 700;
line-height: 28px;
/* 121.739% */
text-transform: none;
margin-top: 10px;
text-decoration: none;
display: inline-block;
}

@media only screen and (max-width: 768px) {
.root .links .primary {
text-align: center;
}
}

.root .links .icon {
color: var(--shades-white, #fff);
}

.root .links>.secondary~.secondary {
margin-top: 10px;
}

.root .links .secondary {
margin-top: 30px;
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 16px;
font-style: normal;
font-weight: 800;
line-height: 19px;
display: inline-block;
}

.root .links .secondary~ {
margin-top: 10px;
}

@media only screen and (max-width: 768px) {
.root .links .secondary {
text-align: center;
}
}

.root .embed {
color: var(--shades-white, #fff);
max-width: 240px;
}

@media only screen and (max-width: 768px) {
.root .embed {
max-width: 100%;
text-align: center;
}
}

.root .embed .title {
color: var(--shades-white, #fff);
font-family: Open Sans;
font-size: 23px;
font-style: normal;
font-weight: 300;
line-height: 28px;
/* 121.739% */
margin-bottom: 30px;
}

.root .embed #mc_embed_signup {
font-weight: 400;
color: inherit;
background-color: unset;
width: 100%;
text-align: left;
}

.root .embed #mc_embed_signup input[type="text"],
.root .embed #mc_embed_signup input[type="email"] {
box-sizing: border-box;
font-weight: 400;
border: 1px solid #d0cbcb;
border-radius: 0;
display: flex;
height: 36px;
margin-bottom: 30px;
outline: none;
padding: 0 12px;
width: 100%;
}

.root .embed #mc_embed_signup input::placeholder {
color: #d0cbcb;
opacity: 1;
-webkit-text-fill-color: #d0cbcb;
}

.root .embed #mc_embed_signup input:focus,
.root .embed #mc_embed_signup textarea:focus {
border: 1px solid var(--primary-700, #0c1a81);
/* Replace with your actual primary color */
}

.root .embed #mc_embed_signup input:active,
.root .embed #mc_embed_signup textarea:active {
border: 1px solid var(--primary-700, #0c1a81);
/* Replace with your actual highlight color */
}

.root .embed #mc_embed_signup input[type="submit"] {
font-size: 1.25rem;
line-height: 1.6;
font-weight: 600;
background: none;
border: none;
color: inherit;
padding: 0;
text-decoration: underline;
}
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading