Code Monkey home page Code Monkey logo

campaign-website's People

Contributors

adamfranco avatar imcbride avatar poojagunturu96 avatar

Watchers

 avatar

campaign-website's Issues

Provide styles for the video component title

The video component has a show/hide title checkbox which controls whether that text is shown. The video on the homepage has it's title hidden ("Why Middlebury? Why Now?" is text embedded in the image. However, the other videos in the design proof have their titles shown (ex. "Faculty Talk About Their Students" on the Access page).

Currently, the video component's title is hard-coded to be visually hidden and does not have styles to match how it is shown in the design.

Create a generic "Image" component

This is not shown on any of the top level pages, currently, but there is an example in the design for the lower level pages where a generic image with a caption and alignment options is shown in the content body.

I know that we're focusing on the top level pages now, but this is the only component that exists in the site currently for editors to use without a corresponding template.

No "deploy" command in gulp

This may be an issue with the gulp-config project and not localized to just the campaign website, but our other frontend projects provide a "deploy" command (see https://github.com/middlebury/midd-frontend/blob/master/gulpfile.js#L369) which does two things:

  1. Changes the image paths in the build files to be the type of paths which Drupal expects.
  2. Copies the build assets to a new directory, usually one of our Drupal test sites.

This is typically run with:

npm run deploy -- --themeDir=$LOCAL_PATH/web/themes/custom/middlebury_theme --imagesDir=$DEV_BASE_PATH/themes/custom/middlebury_theme/images/

Where $LOCAL_PATH will be something like /home/username/private_html/drupal9 and $DEV_BASE_PATH will be /~username/drupal9

Changes to the h2 lead text and pullquote

Just to provide a write-up of what we discussed this afternoon:

The lead h2 on the homepage will change from {% include 'paragraphs/lead.twig' %} to

          {% include 'paragraphs/text.twig' with {
            content: '<h2>Empower young people in one of the most rigorous, immersive, globally engaged experiences in the liberal arts and sciences.</h2>'
          } %}

And the final text component on the home page will change to a new "quote" component, modeled on this one https://github.com/middlebury/midd-frontend/blob/master/src/templates/paragraphs/quote.twig. The quote--marks class is optional and adds the quotation marks around the text. The quote__cite line is also optional.

Add CI build process

The midd-frontend project has a build process which generates a static version of the assets with the correct image paths and puts it on a new branch https://github.com/middlebury/midd-frontend/tree/master-dist

I think there used to be a travis config file in the project, but I can't find that any more. There is a travis webhook https://github.com/middlebury/midd-frontend/settings/hooks/60124993. I'm not entirely sure how this branch is created in the project, but it's needed for our production deployment workflow.

This might also be a good opportunity to rename the branches in the campaign-website project to main and main-dist.

Add a "section header" partial and consider making the tri-story__title class more general

The tri story component has a header section with a title, but it should also allow for a text blurb below the title and above the three columns.

This header is currently only being used for the tri story component, but it could be more generally used for headings of video groups or other components we add later, so it might make sense to have the class applied to the title and blurb be generic, rather than specific to the tri-story feature.

Add a pager to the story list

This is not a high priority since we only have one story, but when we get 10+ in a single category it might be needed.

Fix video group spacing

The video tiles in the video group component seem to have extra padding/margin around them which needs to be fixed to match the design.

Text in the Mega CTA component is provided by the WYSIWYG, styles will need to inherit

The text in the Mega CTA component is provided by the editor via a single WYSIWYG field, so none of the elements will have classes on them. For this component, the styles being provided by .mega-cta__content-subheading will have to switch to .mega-cta__content h3, and so on for the other custom classes within the div.mega-cta__content element, including the p, h3, ul, and li element styles.

Components will share markup between Top Level and Basic Content/Story presentations

Because each of the components can be used on both Top Level and Basic Content pages, their markup will be the same for both and will need to be agnostic of which page they are on. Here we can see that the text component inherits some styles from how text is displayed in various components: tri column, mega cta, and regular text, on the top level page to center it.

image

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.