cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <nav>
  <div class='container'>
    <ul class='nav'>
      <li class='nav__item'><a href='' class='nav__item__links'>linkedin</a></li>
      <li class='nav__item'><a href='' class='nav__item__links'>codepen</a></li>
      <li class='nav__item'><a href='' class='nav__item__links'>github</a></li>
    </ul>
    <a class='pdf' href=''>Download (pdf)</a>
  </div>
</nav>
<div class='container'>
  <header>
    <div class='header__title'> </div>
    <div class='header__contact'> </div>
    <div class='header__intro'>
      <h4 class='side__title'>Profile</h4>
      <div class='content__section'> </div>
    </div>
  </header>
  <section>
    <div class='content'>

      <div class='skills__section'>
        <h4 class='side__title'>Skills</h4>
        <div class='content__section'>
          <ul class='skills'> </ul>
        </div>

      </div>

    </div>
  </section>
  <section>
    <div class='content'>

      <div class='exp__section'>
        <h4 class='side__title'>Experience</h4>

      </div>

    </div>
  </section>
  <section>
    <div class='content'>

      <div class='education__section'>
        <h4 class='side__title'>Education</h4>

      </div>

    </div>
  </section>
  <section>
    <div class='content'>

      <div class='interests__section'>

        <h4 class='side__title'>Interests</h4>
        <div class='content__section'> </div>

      </div>

    </div>
  </section>
  <section>
    <footer>
      <div class='content__section'> 
        <div class = 'footer__contact'> </div>
      </div>
    </footer>
  </section>
</div>
            
          
!
            
              /* variables */
$dark: #292929;
$theme:  #fbd661;
$theme-2: #61dafb;
$title-weight: 100;
$font-size: 16px;
$hover: ease-in-out;
body {
  font-family: "Muli", sans-serif;
  line-height: 1.5;
  color: $dark;
  font-size: $font-size;
}
::-moz-selection { /* Code for Firefox */
    color: $theme;
    background: $theme-2;
}

::selection {
    color: $theme; 
    background: $theme-2;
}
a {
  text-decoration: none;
  color: $dark;
}
section {
  border-top: 1px solid #ddd;
  padding: 30px 0px;
}
header {
  padding: 40px 0;
}
.header__contact {
  display: inline-block;
  width: 29%;
  text-align: right;
  a {
    display: inline-block;
    border-bottom: 1px solid $theme;
    transition: .3s $hover;
    &:hover {
      border-bottom: 1px solid $theme-2;
    }
  }
}
.header__title {
  display: inline-block;
  width: 70%;
  padding-top: 40px;
  h1 {
    font-size: 33px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    border-bottom: 5px solid $dark;
    display: inline-block;
    margin-bottom: 20px;
    text-shadow: 4px 2px 0 $theme;
    transition: text-shadow 0.2s $hover;
    letter-spacing: 4px;
    cursor:pointer;
    &:hover {
      text-shadow: -4px -2px 0 $theme-2;
    }
  }
  h2 {
    letter-spacing:2.8px;
  }
}
.header__intro {
  padding-top: 46px;
}
.side__title {
  font-weight: bold;
  font-size: 18px;
  font-weight: $title-weight;
  letter-spacing:1px;

}
.content {
     display: -webkit-flex;
  display: flex;
}
.content__section {

  -webkit-flex: 2;
  flex: 2;
  padding-top: 20px;
}
nav {
  background: $dark;
  height: 40px;
}
.nav {
  float: left;
}
.nav__item {
  color: #fff;
  display: inline-block;
  letter-spacing: 2px;
  font-size: 12px;
}
.nav__item__links {
  color: #fff;
  padding: 11px;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
}
.nav .nav__item:first-child .nav__item__links {
  padding-left: 0;
}
.container {
  max-width: 750px;
  margin: 0 auto;
 
}
.pdf {
  float: right;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  background: $theme;
  padding: 11px;
  text-align: right;
  transition: .2s $hover;
  
  &:hover {
    background:$theme-2;
  }
}
.skills {
  li {
    display: inline-block;
    margin-right: 2%;
  }
}
.footer__contact {
  float: right;
  a {
    margin-left: 2%;
  }
}

            
          
!
            
              /* Html tags and strings */
var HTMLName = "<h1>%data%</h1>";
var HTMLSkills = "<li>%data%</li>";
var HTMLHome = "<h3>%data%</h3>";
var HTMLPortfolio = "<a href ='#'>%data%</a>";
var HTMLEmail = "<a href ='#'>%data%</a>";
var HTMLIntro = "<p>%data%</p>";
var HTMLTitle = "<h2>%data%</h2>";
var HTMLInterests = "<p>%data%</p>";
var HTMLFooterName = '<p class ="footer__left">%data%</p>';

var personal = {
  firstName: "Harry",
  lastName: "Beckwith",
  home: "London, UK",
  portfolio: "www.codejourney.co.uk",
  email: "harryjbeckwith@gmail.com",
  skills: ["HTML", "CSS", "SCSS", "jQuery", "JavaScript"],
  title: "Front - end developer",
  intro:
    "I currently am working as a Front-End Developer at River Island, which is where my passion for code and development converge. See my previous work history on LinkedIn.",
  display: function() {
    /* Header */
    var formattedName = HTMLName.replace(
      "%data%",
      this.firstName + "<br>" + this.lastName
    );
    $(".header__title").append(formattedName);
    var formattedNameFooter = HTMLName.replace(
      "%data%",
      this.firstName + " " + this.lastName
    );
    $("footer .content__section").append(formattedNameFooter);
     

    var formattedTitle = HTMLTitle.replace("%data%", this.title);
    $(".header__title").append(formattedTitle);

    var formattedIntro = HTMLIntro.replace("%data%", this.intro);
    $(".header__intro .content__section").append(formattedIntro);

    /* End Header */

    /* Contact */
    var formattedHome = HTMLHome.replace("%data%", this.home);
    $(".header__contact").append(formattedHome);

    var formattedPortfolio = addHyperLink(
      HTMLPortfolio,
      this.portfolio,
      this.portfolio
    );
    $(".header__contact").append(formattedPortfolio);
    $("footer .content__section .footer__contact").append(formattedPortfolio);

    var formattedEmail = addHyperLink(HTMLEmail, this.email, this.email);
    $(".header__contact").append(formattedEmail);
     $("footer .content__section .footer__contact").append(formattedEmail);
    /* End - contact */

    for (skill in this.skills) {
      var formattedSkill = HTMLSkills.replace("%data%", this.skills[skill]);
      $(".skills").append(formattedSkill);
    }
    


  }
};

var experience = {
  Ri: {
    title: "Front-end developer",
    company: "RiverIsland",
    date: "Jan 2017",
    dateTo: new Date()
      .toString()
      .split(" ")
      .splice(1, 3)
      .join(" "),
    description:
      "Working as a web designer/developer my responsibilities include the design, layout, coding, technical and graphical aspects of a website - how the site works and how it looks. Also i work on the maintenance and update of an existing sites."
  },

  Experience: function(title, company, date, dateTo, description) {
    this.title = title;
    this.company = company;
    this.date = date;
    this.description = description;

    // format info
    var html = "";

    html += '<div class ="content__section">';
    html += "<h3>" + title + "</h3>";
    html += "<p>" + company + "</p>";
    html += "<p>" + date + " " + dateTo + "</p>";
    html += "<p>" + description + "</p>";
    html += "</div>";

    $(".exp__section").append(html);
  }
};

var education = {
  itec: {
    name: "ITEC Learning Technologies Ltd",
    date: '2014 - 2015',
    qualification:
      "City and Guilds NVQ Level 3 higher apprenticeship: IT, Software, Web and Telecoms Professionals.",
    description:
      "Having completed a qualification in City and Guilds NVQ Level 3 higher apprenticeship: IT, Software, Web and Telecoms Professionals. I have gained a strong understanding of the technologies used to created modern and functional websites."
  },
   uni: {
    name: "The University of Northampton",
    date: '2010 - 2012',
     qualification: 'Physical sciences'
  },

  Education: function(name, date, qualification, description) {
    this.name = name;
    this.date = date;
    this.qualification = qualification;
    this.description = description;
    
 
   // format info
    var html = "";

    html += '<div class ="content__section">';
    html += "<h3>" + name + "</h3>";
    html += "<p>" + qualification + "</p>";
    html += "<p>" + date + "</p>";
    html += "<p>" + description + "</p>";
    html += "</div>";

    $(".education__section").append(html);
  }
};

var RiExp = new experience.Experience(
  experience.Ri.title,
  experience.Ri.company,
  experience.Ri.date,
  experience.Ri.dateTo,
  experience.Ri.description
);

var ItectEd = new education.Education(
    education.itec.name,
   education.itec.date,
  education.itec.qualification,
  education.itec.description
);

var uniEd = new education.Education(
    education.uni.name,
   education.uni.date,
  education.uni.qualification
);

var interests = {
  info: 'I am always looking for new skills to learn, currently i am working on improving JavaScript skills, and being able to build web application. I have learnt the basics of React js, and i am looking forward to gaining a deeper understanding of the JS library.',
  
  display:function() {
        var formattedInterest = HTMLInterests.replace(
      "%data%",
      this.info
    );
    $(".interests__section .content__section").append(formattedInterest);
  }
}


/* display functions */
personal.display();
interests.display();

/* helper functions*/

function addHyperLink(html, url, text) {
  if (!text) {
    text = url;
  }

  var formattedURL = html.replace("#", url);
  formattedURL = formattedURL.replace("%data%", text);

  return formattedURL;
}


            
          
!
999px
Loading ..................

Console