Coder Social home page Coder Social logo

frontend-mentor-bookmark-landing-page's Introduction

Frontend Mentor - Bookmark landing page solution

This is a solution to the Bookmark landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Receive an error message when the newsletter form is submitted if:
    • The input field is empty
    • The email address is not formatted correctly

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • javascript

What I learned

i learnt how to implement sliders and a drop down menu, i tried building it without relying on google. the slider was quite difficult to implement, i am not quite satisfied with how it works. i had to create a function that creates an animation for each case scenerio of the slider. currently the slider is quite static, what i mean is if i were to add a new slide i will have to create a new animation class for the slide.

the fuction for moving the slide

function intToClass(previous,current){
    let str = ''
   switch (previous) {
    case 1:
         str = 'one'
        break;
    case 2:
        str = 'two'
        break;
    case 3:
        str = 'three'
        break;
    default:
        break;
   }

   switch (current) {
    case 1:
         str = `${str}-to-one`
        break;
    case 2:
        str = `${str}-to-two`
        break;
    case 3:
        str = `${str}-to-three`
        break;
    default:
        break;
   }
   return str;
}

Continued development

i will continue to focus my attention more on how to build better slide menus and drop down menus

Useful resources

Author

Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.

frontend-mentor-bookmark-landing-page's People

Contributors

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