Day 18: Skills

Dan Esmail - 1/18/2023

Intro

The days are going by a lot faster than I can keep track of. We are already at day 18 and the site has come a long way. I still have a long way to go when you think about the 347 days left in the year. I finally took some time to make a skills page. This will help track my progress and track things that I learn on the way! Also In the background, I have been updating things about my website. I am starting to refactor my CSS code. I've split my code into different style sheets. One has been made for support classes, another is for the nav bar, and finally, I use a sheet that does anything specific to the page.

CSS Splits

Alright, let's quickly go over the way that I'm splitting this CSS. first things is first I use the navigation bar on every page. The nav bar is the same no matter what, so that's a perfect opportunity to move all the CSS into one file. You have seen the code before but I'll drop it in again.


CSS
Nav Bar CSS Code

                
                    
      
.main-nav{
  background-color: black;
  height: 3em;
  display: flex;
  justify-content: center;


}
header{
  text-align: center;
  width: 100%;
}
#header-title{
  text-decoration: none;
  color: black;
  font-family: sans-serif;
}
.nav-button{
  display: inline-block;
  list-style: none;
  font: 1em;
  margin: 0;
  color: white;
}
.nav-pipe{
  display: inline-block;
  list-style: none;
  font: 1em;
  margin: 0;
  color: white;
}
.nav-link{
  text-decoration: none;
  color: white;
}
.nav-link:hover{

  color: black;
}
.nav-button:hover{
  background-color: white;
}

ul{
  display: flex;
  justify-content: center;
  row-gap: 2em;
  height: 1em;
  margin: 1em 0;
  padding-left: 0;
}
li{
  padding: 0 0.5em;
}

            
      
                
            

Next the code for support classes. I'm starting to use classes that do one or two things that I keep reusing. Another opportunity to build once and use everywhere else. A big offender of this is the center class that I have been using to align text to the center. The only other thing in here is width properties to do a certain percentage.


CSS
Support Classes CSS

                
                    
      
.center{
  text-align: center;
}
.w0{
  width: 0%
}
.w10{
  width: 10%
}
.w20{
  width: 20%
}
.w30{
  width: 30%
}
.w40{
  width: 40%
}
.w50{
  width: 50%
}
.w60{
  width: 60%
}
.w70{
  width: 70%
}
.w80{
  width: 80%
}
.w90{
  width: 90%
}
.w100{
  width: 100%
}

            
      
                
            

Next the code for support classes. I'm starting to use classes that do one or two things that I keep reusing. Another opportunity to build once and use everywhere else. A big offender of this is the center class that I have been using to align text to the center. The only other thing in here is width properties to do a certain percentage.

Skills

Next the code for support classes. I'm starting to use classes that do one or two things that I keep reusing. Another opportunity to build once and use everywhere else. A big offender of this is the center class that I have been using to align text to the center. The only other thing in here is width properties to do a certain percentage.

Next the code for support classes. I'm starting to use classes that do one or two things that I keep reusing. Another opportunity to build once and use everywhere else. A big offender of this is the center class that I have been using to align text to the center. The only other thing in here is width properties to do a certain percentage.


CSS
Support Classes CSS

                
                    
      
.center{
  text-align: center;
}
.w0{
  width: 0%
}
.w10{
  width: 10%
}
.w20{
  width: 20%
}
.w30{
  width: 30%
}
.w40{
  width: 40%
}
.w50{
  width: 50%
}
.w60{
  width: 60%
}
.w70{
  width: 70%
}
.w80{
  width: 80%
}
.w90{
  width: 90%
}
.w100{
  width: 100%
}

            
      
                
            

CSS
Support Classes CSS

                
                    
      
.center{
  text-align: center;
}
.w0{
  width: 0%
}
.w10{
  width: 10%
}
.w20{
  width: 20%
}
.w30{
  width: 30%
}
.w40{
  width: 40%
}
.w50{
  width: 50%
}
.w60{
  width: 60%
}
.w70{
  width: 70%
}
.w80{
  width: 80%
}
.w90{
  width: 90%
}
.w100{
  width: 100%
}

            
      
                
            

Finally, there is the CSS that is specific to the page. All of this is going to just be CSS documents to help a page if it has specific classes or IDs or just something that I want to do on that page.


HTML
HTML For Grid

                
                    
      
<div class='grid-container'>
  <div class='padding-box'>

  </div>
  <div class='skills-box grid-box'>
    <div class='skill-column'>
    </div>
    <div class='Column-spacing'>

    </div>
    <div class='skill-column'>
    </div>
  <div class='padding-box'>

  </div>
</div>


            
      
                
            

HTML
HTML For Grid

                
                    
      
<div class='grid-container'>
  <div class='padding-box'>

  </div>
  <div class='skills-box grid-box'>
    <div class='skill-column'>
    </div>
    <div class='Column-spacing'>

    </div>
    <div class='skill-column'>
    </div>
  <div class='padding-box'>

  </div>
</div>


            
      
                
            

Finally, there is the CSS that is specific to the page. All of this is going to just be CSS documents to help a page if it has specific classes or IDs or just something that I want to do on that page.

Finally, there is the CSS that is specific to the page. All of this is going to just be CSS documents to help a page if it has specific classes or IDs or just something that I want to do on that page.

Finally, there is the CSS that is specific to the page. All of this is going to just be CSS documents to help a page if it has specific classes or IDs or just something that I want to do on that page.



Day 1

Day 1