Skip to content

dailypenn/projects.underthebutton.com

Repository files navigation

Under the Button Projects

Getting Started

Save each project in its own folder with an index.html file to show up at http://projects.underthebutton.com/folder-name. We standardized this by year and month, so make sure that you're creating pages in the correct folders for when they'll be published. (For example, the Joke Issue should go in [year]/03/joke-issue).

Development Checklist

This must all be done before your page can be considered complete! Check with the Director of Web Development if you have any questions about these steps or if you need any help completing them.

Metadata

  1. Viewport: make sure all pages contain this so they will scale on mobile
<meta name="viewport" content="width=device-width, initial-scale=1">
  1. Title: the page title should almost always indicate that this is a UTB page
<title>Page Title | Under the Button</title>
  1. Facebook Open Graph information: make sure this is all included, and test it to be sure that it looks like you expect!
<meta property="og:title" content="[same as page title]">
<meta property="og:image" content="[this should generally be a link from our CMS]">
<meta property="og:description" content="[description]">
<meta property="og:type" content="article">
<meta property="og:url" content="https://projects.underthebutton.com/[year]/[month]/[project-name]">
  1. Twitter card information: make sure this is all included, and test it to be sure that it looks like you expect!
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="[same as page title]">
<meta name="twitter:image" content="[this should generally be a link from our CMS]">
<meta name="twitter:description" content="[description, less than 200 characters]">
<meta name="twitter:url" content="https://projects.underthebutton.com/[year]/[month]/[project-name]">
<meta name="twitter:site" content="@underthebutton">

HTML

  1. Make sure the Google Analytics script is at the very top of the <body>.
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-631054-4"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-631054-4');
</script>
  1. Check with the Director of Web Development if this page should have ads. In most cases, the answer is yes. You will need their help to get the ad code to embed from Google Tag Manager.
  2. Make sure all links are set to target="_blank".

CSS

  1. Is the page mobile-friendly? Test it out both using your browser of choice (Chrome's tends to be most friendly for developer tools) and on multiple real phones. There should be no horizontal scrolling, and everything should be readable and clickable, even on older and/or smaller phones.
  2. Check with multiple browsers (Chrome, Safari, Firefox, etc.) to make sure everything behaves as you would expect.

JavaScript

  1. Make your page as lightweight as possible. Only use libraries if you definitely need them, and don't leave any unused <script src> calls in.

Images

  1. If you need logos for any of our brands, they can be found in the dailypenn-logos repo.
  2. If possible, use images that have already been uploaded to our CMS, and simply reference them with the links.
  3. If you need to add extra images, make an img folder in your project folder.
  4. Make sure to optimize your images. ImageOptim is a good way to do this.
  5. Make sure to set the alt property for all <img> tags! This should briefly visually describe the image.

Projects Main Page

  1. All project pages should be linked on our main projects page. To do this, edit the projects.json file at the root of this repo.
  2. Projects are organized in reverse chronological order, so add the new page to the top of the "featured" section. Make sure to fill out every section properly, and to credit all the developers and designers involved.
  3. If you're at all confused or unsure of how this works or should be done, let the Director of Web Development know, and they will be happy to help out!

Submodules

You might notice that the utbiden folder in this repo looks different than all of the other folders. That's because it actually lives in a separate repo, and it is a submodule of this repo.

Updating UTBiden

If any updates are pushed to the utbiden repo, you'll notice that the page where it's hosted does not update automatically. This is a feature of submodules, and makes them a lot more secure. Thankfully, it's super easy to update a submodule.

To do so, cd into the utbiden folder in this repo. Run git pull to get all of the latest changes from the utbiden repo. Then run cd ../ (which will take you back to the root of this repo), and run git status. You'll notice that it will indicate that there are new changes to utbiden. Just add, commit, and push as usual, and the page will be updated!

About

Projects and interactives for Under the Button dot com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published