Code Monkey home page Code Monkey logo

udacity_ud036-startercode's Introduction

ud036_StarterCode


Source code for a Movie Trailer website.

Instructions to run program


This guide assumes you have saved all files to your computer and have Python IDLE installed.

  • Open entertainment_center.py in Python IDLE
  • Goto Run > Run Module

Changes to original code


I've tried very hard to get the website looking as nice as possible by adding additional features I thought would complement the website whilst adhering to the project specification. I've noted some of the changes to the original requirements for the project below.

Classes

class Movie(Shared):

  • Added length of movie
  • Added year of production
  • Class is now a child of Shared

class Shared():

  • Added this new parent class with reusable attributes for Movies. It can be used in the future to easily add future classes (for example TV series)

House keeping

New files and folders have been added for assets. References to the locations of these files have been changed in the fresh_tomatoes.py file. A new parent class has been created and references within the child class changed. A new stylesheet has been created to give the website a refined look.

fresh_tomatoes.py

  • Added main.css and referenced links to css folder
  • Added local images and referenced links to img folder
  • Added logo and spin styles
  • Added Lato font (Google font link in fresh_tomatoes.py and changed text styles for body, headings and span classes)
  • Added #bootstrap-override to body tag to over-ride font-family styles in the bootstrap stylesheet (priority now higher - here's an interesting article on Stack Overflow about Bootstrap prioritisation)
  • Changed poster image sizes for better display
  • Moved Javascript to js folder
  • Moved links in fresh_tomatoes.py to load after body (inserted just before closing body tag)
  • Moved main.css link in fresh_tomatoes.py to load after bootstrap stylesheets
  • Removed references to YouTube in case of future use of a service other than YouTube

udacity_ud036-startercode's People

Contributors

mattbingham avatar

Stargazers

 avatar

Watchers

 avatar  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.