Code Monkey home page Code Monkey logo

deprecated-wikitongues-website's Introduction

theme structure

  • primary functions are stored in functions.php
  • secondary/plug-in functions are stored in /includes
  • recurring UI elements are stored as unique php files in /modules
  • css is broken down into separate files that correspond to php files
  • php files named by wp page/template type or module/element type with -- modifiers
  • ACF organized into groups by corresponding post type, page template, or global group, with post type or page template name as prefix

php style guidelines

to-do

code structure and styles

  • [] later - simplify if statement syntax ( a ? b : c); e.g. wp_nav_menu( array( 'theme_location' => is_user_logged_in() ? 'logged-in-menu' : 'logged-out-menu' ) );
  • [] clean up template/modules hierarchy on video single and language single
  • [] convert jquery to vanilla javascript

global

  • [] add alert banner and display only if user hasn't visited the site in a week
  • [] build captions post type
  • [] build single page template for partners post type
  • [] add: "about" drop down to header (footer only for launch)
  • [] backwards compatibility evaluation
  • [] ADA accessibility evaluation
  • [] blog integration
  • [] browser notifications opt-in

home

  • [] make homepage banner a carousel
  • [] make testimonial carousel a true carousel

search results

  • [] sort results by language first, then video, then lexicons, then resources - or, alternatively, divide results into sections with language videos, language pages, etc - to make it easier on the eyes

team member post type

  • [] add: historical interns, other secondary team data

languages single

  • [] inlcude more clarity for external resources
  • [] related languages carousel
  • [] add continent of origin

video single

  • [] toggle metadata view for for more than 1 language
  • [] toggle all metadata view on mobile
  • [] once captions post type is live, add download feature
  • [] figure out navigation path from single videos back to the language in question
  • [] figure out embeds for Dropbox files (not on YouTube)
  • [] related videos carousel

archive

  • [] language collection pages - probably page templates with customized for-loops baased on ACF fields (need to define what we want to sort by)

fellows single

  • [] micro-blogging feature
  • [] other fellows carousel

revitalization toolkit

  • [] toolkit newsletter propt
  • [] toolkit language prompt
  • [] toolkit donate prompt

deprecated-wikitongues-website's People

Contributors

bogreudell avatar fredericoandrade avatar robinmetral avatar smrohrer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deprecated-wikitongues-website's Issues

Populate the development site

To style the site as well as I can I'd love to see a more populated development version!

Concretely:

Images

  • Member images - Currently no member pictures are displaying (see for example the Supporters page)
  • Alert image - See the Front Page
  • Featured item images - See the Front Page
  • Featured news images - See the Front Page

Content

  • Footer - Currently only one line, whereas the footer in the mockups contains a logo, a nav, etc

Pages

  • About (nav.nav) doesn't exist, shows a default (404?) page with a sitemap, article archives, and article categories
  • Who We Are (nav.nav) doesn't link anywhere (but there are sub-links). See issue #2
  • Projects (nav.nav) is empty apart from a .page-intro
  • Volunteers (nav.calls-to-action) is empty
  • Partners (in the mockups) is on the site (shortlink /our_partners/) but doesn't appear in any nav

Change font

This is the Mockup's font:

capture du 2018-08-31 10-14-03

This is Noto Sans, which I started with because it supports many alphabets:

capture du 2018-08-31 10-34-14

I'm not convinced by Noto. It's less "rounded" than the Mockup's font and it's hard to work with because it comes in only two weights on Google Fonts: 400 and 700. 700 is too bold.

I think that Montserrat would be a better alternative:

capture du 2018-08-31 10-40-48

It's still not perfect (I can't find a font with a round "a") but improves it a lot, I think!

Working on it, will make a PR soon

How to style the nav sub-links?

I see that <?php main_nav(); ?> in header.php generates a list with a sub-links for secondary links (namely "Leadership", "Community" and "Supporters" under "Who We Are").

screenshot_2018-08-12 partners wikitongues org

However these do not appear in the Mockups. Are they displayed on hover?

If they are, how do you want them styled? A dropdown?

Breathe 🐳

Increase and homogenize white space in layouts

➡ Reponsive ⬅

Add media queries to properly display the site on smaller screens.

Styles cleanup

  • Split layouts.styl into different page-specific layouts
  • Check that styles overall are on the right sheets and properly commented out

Video Pages

Style individual pages for video post type

Nav: make sub-menu overflow parent

Make the nav dropdown overflow its parent element so that the scrollbar appears right below the nav.

Currently the scrollbar appears very low because of the dropdown:

capture du 2018-10-12 21-04-42

(any other dropdown solutions - we're using visibility: hidden at the moment - are welcome!)

Hide alert section details on mobile

@bogreudell how do we want the alert section to display on mobile?

On desktop there are roughly two columns: the image on the left, and a column with the text on the right.

On mobile, the text reduced to only 50% width could take almost a full screen's height:

capture du 2018-10-05 11-19-47

I think we can either:

  1. choose to place the image above the text
  2. choose to show only the text's heading on mobile, and hide the details:
    capture du 2018-10-05 11-21-02

X-overflow on Firefox

In wt-section, the ::before colored backgrounds overflow and create horizontal scrolling.

x-overflow

I couldn't figure out how to fix it yet. Any ideas?

Javascript dynamic nav text color

We need the navigation links text to be black on most pages, but to be white when the page starts with a .banner hero image.

We can unfortunately not so this in pure CSS (I tried but failed).

The layouts seem a bit tricky to tamper with because the nav is included as header.php and the (occasional) banner is on the specific page template (for example front-page.php). It's hard to relate the two of them (or maybe in PHP?)

One option I see remaining would be using Javascript. Do you know how to do something like this?

Use BEM Class Standard

In the future we will possibly have new volunteer developers contributing to the Wikitongues website, and we may also expand our website and adapt based on analytics. Adopting a CSS class standard will make these changes easier for us.

The BEM (block-element-modifier) methodology is one of the most popular and simplest standards. BEM defines a block as any fully reusable, independent component; an element as a part of a block that serves a single purpose as part of that block; and a modifier as a variation of a block or element. Key aspects of the BEM convention are:

  • Blocks, elements, and modules are designated by classes using the naming convention .block, .block__element, .block--modifier, and .block__element--modifier.
  • ID's are not used in CSS code.
  • Blocks can be nested inside of other blocks, but CSS rules should not be nested. This keeps the CSS code readable and its behavior predictable.
  • Elements should not be nested inside elements.

More info:

Considerations for us:

  • Refactoring would be a significant task--we have a lot of nested CSS. However, it could pay off by improving maintainability.
  • We'd have to come up with standards for dealing with pseudo-elements and media queries. Pseudo-elements (used for our background shapes) could mostly be placed using something similar to .block:nth-child(x), or in some specific cases using modifiers (e.g. .block--yellow-background-rect:after). Media queries could generally be defined individually for blocks (we should define variables for screen widths).
  • Stylus gives us an elegant way to write rules for a block and its elements and modifiers. The compiled CSS is non-nested.

Please share your thoughts, any other considerations, or any alternatives that you'd prefer.

Style video submission form page

  • Populate the form, the page heading and the resources on WP
  • Create page layout with form to the right of heading and resources (might have to change markup)
  • Style form elements

Airtable Integration

The goal here is to sync the Community Table in the Wikitongues CRM with the Members post-type, in order to automate updates to the community page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.