Coder Social home page Coder Social logo

personal_portfolio's Introduction

Personal Portoflio

It is a simple portfolio website using HTML and CSS and hosted on github

It is for learning purposes but will keep improving it

Some website features :-

  • Sementic HTML for SEO Purposes
  • Reusable clean code with meaningful class names as it used in more than a section in the website
  • Responsive CSS to work on all screens
  • Used Google Poppins font
  • Some animations when hovering over elements

Website Link

Website Demo :

Website Navigation :-

Alt Text

Body

  • The font used in the website is 'Poppins' and is imported in the css file
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
  • also used for the scroll-behavior to be smooth for smooth scrolling
body{
    font-family: 'Poppins','sans-serif';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*This makes scrolling behaviour smooth on the webpage*/
    scroll-behavior: smooth;
}

Header

  • made it fixed by setting value of position to fixed
  • gave z-index a high value to make it the only thing appearing while scrolling
header{
    background-color: #f0f0f0;
    width: 100%; 
    /*it will make the header fixed when scrolling*/
    position: fixed;
    z-index: 999;/*high value make it the only thing appearing when scrolling*/
    display: flex;  
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px; /* top&bottom , right&left*/
}
  • for the logo and navigation used em in font-size to be a relative font-size where each 1em=16px
  • hovering over any element in the navigation bar turns the element to purple
.logo{
    text-decoration: none; /* will remove the line for hre*/
    color: #3a6cf3;  
    text-transform: uppercase;  
    font-weight: 700;
    font-size: 1.8em; /* em relative to what is defined in the body & browser default 16px */
}
.navigation a {
   color: #3a6cf3;
   text-decoration: none;
   font-size: 1.1em;
   font-weight: 400;
   padding-left: 30px;
}
.navigation a:hover {
  color: purple; 
}

Education,Projects & Contact Sections

  • made a shadow for the card and when hovering over it , it is scaled by 1.1
  • made a border-radius for the card to be round from the edges
  • used transition and gave it time of 500ms for transition and using of ease to be more smooth during the transition
.card{
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
}
.card:hover{
    transform: scale(1.1);
    transition: 500ms ease-in-out;
}

Making the website responsive

tried to make it for all kind of screens handling three main widths

  • less than 1023px , less than 641px , less than 300px
@media (max-width:1023px){
    header{
        padding: 12px 20px;
    }
    .navigation{
        padding-left: 10px;
    }
    .title{
        font-size: 1.8em;
    }
    section{
        padding: 80px 20px;
    }
    .main h2{
        font-size: 1em;
    }
    .main h3{
        font-size: 1.6em;
    }
    .content{
        flex-direction: column;
        align-items: center ;
    }
}

@media (max-width:641px){
    body{
        font-size: 12px;
    }
    .main h2{
        font-size: 0.8em;
    }
}
@media (max-width:300px){
    body{
        /*1 em = 10px*/
        font-size: 10px;
    }
    .main h2{
        font-size: 0.8em;
    }
}

personal_portfolio's People

Contributors

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