Giter Club home page Giter Club logo

m3-the-memes's Introduction

This repo contains a website displaying The Memes collection.

Structure

datamanipulator.py        # Script to generate the data files
/raw                      # Directory for raw json files (downloaded from an API etc.)
│
/site/                    # Website root...this is what needs to be published
│
├── index.html            # Main HTML file
├── css/
│   └── styles.css
│
├── fonts/                
│   └── ...
│
├── images/               # Directory for images (empty)
│   ├── /ui               # Images for UI elements
│        └── ...
│
├── js/
│   └── script.js

Generating the data files

The listing is generated from json files stored in /data. The json data files are custom generated to reduce file size. To generate the optimised json files, place a set of raw project json files in /raw and run the datamanipulator.py script. Once this script has been run successfully, the /site/data directory will contain the optimised json files and the /raw directory can be deleted.

Images

Two different types of images are used on the website; thumbnails and full-res images. The full-res images are only shown for projects where the description is really long (> 140 chars). In that case, a "more" button appears which on clicking presents a modal. In the modal the full-res image is shown.

The thumbnail images are lazy loaded (only requested when scrolled into view).

Both sets of images are hosted on external CDNs, the urls of which are sourced from the json files.

UI images are stored in /site/images/ui note that small svg files are inlined in the /js/script.js file to reduce network requests.

HiroP

m3-the-memes's People

Contributors

docherty avatar

Watchers

 avatar

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.