Giter VIP home page Giter VIP logo

david.rodgers-html-css-port.proj's Introduction

Mind and Body Maintenance

Mind and Body Maintenance is a site that I created to share some of my favourite sources on the topics of sleep, exercise and mindfulness. These sources will range from articles, journals, YouTube videos and websites from various experts and content creators. There is also an opportunity for users of the site to suggest their own content and suggestions for the site's function and appearance.

home-page

Features

Below is a list of features that I have on this site which I will detail individually - there is a nav menu for each page, and there are five pages in total - Home, Sleep, Exercise, Mindfulness and a Suggestions page. The home page has an aside which also loads up a YouTube video for each section. Within the Sleep, Exercise and Mindfulness pages, there is an iframe, table and list items which link to various external sources. There is a form for the Suggestions page to record data entered by users of the site. There is also a footer which links the user to social media pages and a link which brings users back to the top of the page if they have scrolled down to the bottom.

Each Feature Explained

  • Navigation Bar

    • The Nav Menu bar is located on all pages and allows for seamless flow for the user to access all the content on the site

nav-menu

  • Social Media and Back to Top

    • There are links to the website Social Media pages as located in the footer. These open in a new tab.
    • There is also a back to top link which can be clicked to return to Nav menu bar at any time

back-socialmedia

  • Title Links

    • You can click on the the Mind and Body Maintenance title and and it will take you to the home page at any time, you can also click on the title for Ideas for healthy minds and bodies, and this will take you directly to the Suggestions Page, these title links appear on all pages.

title-links

  • Home Page Content

    • The content on the home page includes some introduction info and links within each section to take you directly to the page they relate to
    • There is also a video that loads up automatically that you can choose to unmute. Each video gives a good insight into what the correlating page is about

home-page-content

  • Sleep, Exercise and Mindfulness Pages

    • Each section will follow the same layout. Below, the Sleep page of the site is shown as an example
    • Below the short paragraph at the top of page (not included in screenshot), an iframe will load in addition to a table of sources sectioned off in different categories: Source, Video and Article - these table cells can be clicked and the user is taken to a new tab containing the information source
    • There is also a list of more detailed studies and journals for a more in depth study which also links to new tabs
    • This section can also be updated by way of newly suggested content from myself or other users on the Suggestions page

sleep-exercise-mindfulness-content

  • Suggestions Page

    • This page will allow the user to enter some basic info on the form - drop down for age group, text input for name and email address. There will be some radio button questions in there as well. All in all, it takes no time to complete and all these questions are required to be able to submit the form
    • There is a text box area for the user to enter suggestions and additional content for the site, which I can implement and give credit to the person suggesting it, if they want me to do so.

suggestions-form

  • Suggestions Page Validation
  • There is validation as shown below to ensure that the user is entering all the required data, be it text: text and email format, and a requirement for the radio button options to also be clicked to submit the data on the form. An error message is displayed to the user 'Please fill out this field'.

suggestions-validation

Testing and Lighthouse

lighthouse

I have included the following errors and warnings I received from Validation testing and how and if they needed fixing:

  • Errors

  • The frameborder attribute on the iframe element is obsolete. Use CSS instead.

    • I have removed the obsolete attribute from all instances of this element
  • Bad value assets/images/woman meditating 2.jpg for attribute src on element img: Illegal character in path segment: space is not allowed.

    • This has now been changed to the proper format
  • Warnings

  • The name attribute is obsolete (for the back to top function). Consider putting an id attribute on the nearest container instead.

    • Removed name as suggested and feature still works
  • Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.

    • I have used flex with CCS on my section which contains the image, paragraph, aside and Youtube Video. A header for these sections didn't fit with my plan for layout
  • Value Error : padding-left Too many values or values are not recognized: 0 10px 0 10px

    • Have changed to 0 10px and removed obsolete values

Validator Testing

  • HTML
    • No errors were returned when passing through the official W3C validator
  • CSS

Unfixed Bugs

A very small, but noticeable difference in the size of the sleeping woman image and the 2 images below (two people exercising and woman meditating) This is likely due to the content being ina a flex layout. I have tried everything I know, looked at resources online and there seems to be no error or difference in the html or CSS controlling them.

I then had to create the code below, which takes the first image and it's container to be unique - I changed the width of the viewport to 36 as opposed to 30 for the two images below it. Not ideal, but it does fix the issue.

#circle-images-sleep { position: relative; width: 36vw; height: 22vw; overflow: hidden; margin-left: 30px; }

#sleep-circle { height: 300px; width: 300px; border-radius: 50%; border: navy solid 5px; width: 90%; height: 60%; object-fit: cover; }

Deployment

  • The site was deployed to GitHub pages. The steps to deploy are as follows:
    • In the GitHub repository, navigate to the Settings tab
    • From the source section drop-down menu, select the Master Branch
    • Once the master branch has been selected, the page will be automatically refreshed with a detailed ribbon display to indicate the successful deployment.

The live link can be found here - https://david-maura-rodgers.github.io/David.Rodgers-html-css-Port.Proj./

Credits for all Content

Media

david.rodgers-html-css-port.proj's People

Contributors

david-maura-rodgers 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.