Coder Social home page Coder Social logo

portfolio's Introduction

Marjean Portfolio page

Table of contents

Overview

The challenge

Users should be able to:

  • View an overview of my projects and read my background story.

Screenshot

Links

My process

Built with

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

What I learned

I learned how to color font-awesome icons and hover states on nav iteams. also, i learned how to use position relative to move divs to a desired position. Javascrip on how to to use getBoundingClientRect and window scroll to use smooth scroll. How to use HTML (api) to make the contact form work

This Css below sets up the smooth scroll that is written javascript.

html {
  scroll-behavior: smooth;
}

This is below the code i used when you click on the nav links it will scroll to correct section

/*smooth scroll*/
const arrow = document.querySelectorAll('.scroll-link');
for (const arrows of arrow) {
  arrows.addEventListener('click', function (e) {
    e.preventDefault();
    const id = e.currentTarget.getAttribute('href');
    console.log(id);
    const element = document.getElementById(id);
    console.log(element);
    let position = element.offsetTop;
    console.log(position);
    window.scrollTo({
      left: 0,
      top: position,
    });
  });
}

This is also is the HTML form for submitting for email.

<form action="https://formsubmit.co/[email protected]" method="POST">
  <label for="fname"> Name</label>
  <input type="text" placeholder=" Name" name="name" id="name" />

  <label for="Email">Your Email</label>
  <input type="email" id="email" placeholder="Email" name="email" />

  <label for="message"> Message</label>
  <textarea
    placeholder="Your Message"
    name="message"
    id="message"
    cols="30"
    rows="10"
  ></textarea>

  <hr />
  <button type="submit" class="btn">submit</button>
</form>

Continued development

Plans i have are to create a transistion bottom border on top nav items Also, make this fully responsive for tablets and mobile devices. Create a blog that will connect to this portfolio.

Useful resources

  • MDN - This is a great source for people starting out. Also, helps with looking up solutions and reworking your code.

Author

portfolio's People

Contributors

marjeanm avatar

Watchers

James Cloos 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.