Giter Site home page Giter Site logo

palowenstein / code-refactor-horiseon-social-media Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.36 MB

HTML/CSS Code provided by the social media company horiSEOn. Code has been refactored from the ground up, both in terms of HTML/CSS and in terms of compression for all media assets provided (JPEG).

Home Page: https://palowenstein.github.io/code-refactor-horiseon-social-media/

CSS 33.03% HTML 66.97%
html-css-javascript code-refactor file-compression good-practices

code-refactor-horiseon-social-media's Introduction

#1-horiseon-social-solution-services

HoriSEOn Marketing - Refactored Code, Optimized HTML / CSS / Media Assets.

Github Repository Page: https://github.com/palowenstein/code-refactor-horiseon-social-media

Github Deployment Page: https://palowenstein.github.io/code-refactor-horiseon-social-media/

HoriSEOn Marketing (Screenshot)

HTML Optimizations

  1. Initial declaration: Added Left to Right direction for text, developer name
  2. Head section: Added compelling title for the page. title tag comes first, css comes second then added a bunch of meta intel for Google and SEO at large.
  3. Header section in : Header section: Company Name + Menu Bar - Combined the li and the href on single lines. Added titles to href. I added a <title> to h1 so that it would read when the mouse hovers
  4. I replaced the CSS BG IMG with a true IMG for the reasons that follow: Hero Image. I ended up using a true img instead of css bg img as I wanted a <title> and a for the browser to read. The picture behaves very closely to the original element. Note: the original IMG was sized down and compressed to load faster.
  5. Content section: I added the missing
    : div id=search engine optimization. Note: all images below have been sized down and compressed for faster loading / render time
  6. Benefits section: Added title + alt to all items below + used a < /> self-closing img tag instead of a separate closing img tag on "Cost Management"
  7. Footer section: Changed 2019 to 2020 + added aria label to the heart symbol so that speech reader would read properly. Note: I did not use ♥ as the speech reader misread it, "heart" instead of "love".

CSS Optimizations

  1. .header: I re-organized and added position relative, z-index: 1 to stay above the new hero-img tag
  2. .header div ul li: I deleted <.header div ul> and applied to <.header div ul li>
  3. .hero: I created separate classes for the <.hero div> and a new one for <.hero-img> so that I could have a picture in html vs a bg image which won't take a title.
  4. .hero-img: Position Relative and Z-Index 0 to stay below header + margin top negative
  5. All 3 respectives instances of the classes below have been combined into one single declaration:
    • .benefit-lead, .benefit-brand, .benefit-cost
    • .benefit-lead h3, .benefit-brand h3, .benefit-cost h3
    • .benefit-lead img, .benefit-brand img, .benefit-cost img
    • .search-engine-optimization, .online-reputation-management, .social-media-marketing
    • .search-engine-optimization img, .online-reputation-management img, .social-media-marketing img
    • .search-engine-optimization h2, .online-reputation-management h2, .social-media-marketing h2

JPG Optimizations

  • Original "digital-marketing-meeting.jpg" 14,2MB -> New half sized version: 329Ko
  • Original "search-engine-optimization.jpg" 14,9MB -> New half sized version: 525Ko
  • Original "online-reputation-management.jpg" 6,7 MB -> New half sized version: 397Ko
  • Original "social-media-marketing.jpg" 14,2MB -> New half sized version: 568Ko

License

MIT License | Copyright © [2020] Pierre André Lowenstein

Contact

[www] pierreandrelowenstein.com  |  Send me a 'courriel'

code-refactor-horiseon-social-media's People

Contributors

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