Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous" />
  <link href="https://fonts.googleapis.com/css?family=Poppins:200i,300,400&display=swap" rel="stylesheet" />
  <link href="https://fonts.googleapis.com/css?family=Raleway:700&display=swap" rel="stylesheet" />

  <link rel="stylesheet" type="text/css" href="Portfolio.css">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Portfolio</title>
</head>

<body>

  <!-- Navbar added -->

  <nav id="navbar">
    <ul id="navbar-list">
      <li>
        <a class="navbar-link" href="#welcome-section">Home</a>
      </li>
      <li>
        <a class="navbar-link" href="#about-me">About me</a>
      </li>
      <li>
        <a class="navbar-link" href="#projects">My portfolio</a>
      </li>
      <li>
        <a class="navbar-link" href="#contact">Contact me</a>
      </li>
    </ul>
  </nav>
  <nav id="float-nav">
    <ul id="fn-list">
      <li>
        <a id="profilelinks" href="https://github.com/danjwilko" target="_blank" class="btn contact-details"><i class="fab fa-github"></i></a>
      </li>
      <li>
        <a href="https://www.linkedin.com/in/daniel-wilkinson-4b1b1685/" target="_blank" class="btn contact-details"><i class="fab fa-linkedin"></i></a>

      </li>
      <li>
        <a href="danielwilkinson0991@gmail.com" class="btn contact-details"><i class="fas fa-at"></i></a>

      </li>
      <li>
        <a href="tel:07903898688" class="btn contact-details"><i class="fas fa-mobile-alt"></i></a>

      </li>
    </ul>
  </nav>
  <!-- end of nav bar-->
  <!-- Intro welcome-->

  <div id="welcome-section">
    <div id="shadowBox">
      <h1 id="main-header" class="animate">Hello and Welcome!</h1>
    </div>
    <h2 id="introduction-text" class="intro-style"> My name is Daniel
      <br>
      <i>I'm a web developer</i>
    </h2>
  </div>
  <!--About me section-->
  <div id="about-section">
    <div id="about-me">
      <h2 class="about-header">A little bit about me!</h2>
      <div class="about-text">
        <p> I have a wide range of experience over the years, from my time in the military to mechanical engineering and customer service roles. Meaning I'm fairly adaptable to any situation and often just knuckle down and get the job done.<br>
          I've always had an interest in technology and have been a avid follower over the years of different developments, but followed a different path.
        </p>
        <p>I started the Freecodecamp curriculum early on in 2020, after considering a career switch for some time. I thoroughly enjoyed the process of learning and it helped rekindle my interest in web design and development.</p>
<p>Thus at the age of 30, I took the plunge back into education and started a Computing and IT degree with the Open University the same year. Both to stand me in good stead but also to fulfill a life time ambition.</p>
        <p>
          I'm comitted to learning and gaining experience, which through continued study and practice, I aim to become a well established web designer/developer.</p>
        <p>
          At current I use HTML and CSS, to build responsive web pages and applications, with the intent of broadening my experience with Javascript and Jquery going forward. <br>
          I'm also no stranger to different OS's either, I currently work on and use Linux, OSX and Windows.
        </p>
        <p>
          My claim to fame is obtaining 2 A* for Art and Design and Art and Design Fine Art, at GCSE level from only taking one option did double the amount of work required haha, as far as i know I'm still the only student at my school to do so. So I tend to have natural affintiy for art and design.

        </p>
      </div>
    </div>
  </div>

  <!-- End of about section-->

  <!-- Portfolio Section -->

  <section id="projects" class="projects-section">
    <h2 class="projects-section-header">My projects</h2>
    <div class="projects-grid">
      <a href="https://danjwilko.github.io/BEEYOND-FITNESS-PROJECT/Beeyond-fitness-alternative" target="_blank" class="project project-tile">
        <img class="project-image" src="https://lh3.googleusercontent.com/l-aGRmNxAs_Q-EUwX2RAVaswT1mvpRu1mNcZHGc4uM8_gTJhamMTjW6UDpqeFVlKKtr1nbzPwv1i4UbjSUfKdr_fY5lSPo8zh10WRD8_stulK23ZPZvvVXDSgXvwSUaRgbOVRJi3gCg=w2400" alt="project" />
        <h4>Business website</h4>
      </a>

      <a href="http://danjwilko.github.io/TRIBUTE-PAGE-PROJECT/index.html" target="_blank" class="project project-tile">
        <img class="project-image" src="https://lh3.googleusercontent.com/esQnCa4ToAV_qPrXiuGck64qLZ5MoL8rUiiXmJSN_N3Q4x-wk2y4i5NqdIuYaM5n60md3Rr94ggGDaIQdZgGzmSQy9FRt-SbvGvBuhoB3hJAXd5J3QqEYnw8i5cb8Krc43Srj8H3Hwg=w2400" alt="project" />
        <h4>Tribute page</h4>
      </a>

      <a href="http://danjwilko.github.io/FORM-PROJECT/index.html" target="_blank" class="project project-tile">
        <img class="project-image" src="https://lh3.googleusercontent.com/il233RILmFy0TpmBtT7gwwF71q-gxRed7ZZxwdQIYVgJbUhSVQdH4Sq6-1tgMKTsl1Gx0orhJ4YQs1IiRMkv5UMXsf1p5pFf7kLHkefSW8H9rCGNSrPzPR6JSQl-Zp1jJytLxGvcuOw=w2400" alt="project" />
        <h4>Survey Form</h4>
      </a>
    </div>
  </section>

  <!-- End of Projects-->

  <!-- Contact section-->

  <section id="contact" class="contact-section">
    <div class="contact-section-header">
      <script src="Portfolio.js"></script>
      <h2 id="work">Let's work <span id="emphasis">together...</span></h2>
      <h3> I look forward to hearing from you</h3>
      <p></p>
    </div>
    <div class="contact-links">
      <a id="profile-link" href="https://github.com/danjwilko" target="_blank" class="btn contact-details"><i class="fab fa-github"></i> My GitHub</a>
      <a href="https://www.linkedin.com/in/daniel-wilkinson-4b1b1685/" target="_blank" class="btn contact-details"><i class="fab fa-linkedin"></i> Linkedin</a>
      <a href="danielwilkinson0991@gmail.com" class="btn contact-details"><i class="fas fa-at"></i> Email me</a>
      <a href="tel:07903898688" class="btn contact-details"><i class="fas fa-mobile-alt"></i> Call me</a>
    </div>
  </section>
  <footer id="ftr">
    <div class="footer-text">
      <p>&copy; Copyright 2021 Daniel Wilkinson</p>
    </div>
  </footer>
</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap");

/* Background-main features */

* {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* Base styles */

body {
  background-image: linear-gradient(260deg, #198cff, purple);
  background-repeat: no-repeat;
  font-family: sans-serif;
  font-size: 1.8rem; /* 18px */
  font-weight: 400;
  line-height: 1.4;
  max-width: 100%;
}
h1,
h2 {
  font-family: sans-serif;
  text-align: center;
}

h1 {
  font-size: 4rem auto;
}

h2 {
  font-size: 3rem auto;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
}
a {
  text-decoration: none;
  color: white;
}
p {
  padding: 1rem;
}
/*Navbar Setup*/

#navbar {
  position: fixed;
  width: 100%;
  height: 3.5rem;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  box-shadow: 0 -2px 20px;
  transition: 0.4s;
  z-index: 9999;
}
#navbar-list {
  width: auto;
  height: 3.5rem;
  background-image: linear-gradient(180deg, #66ffe6, #00ffff);
  transition: 0.4s;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 0.2rem;
}
.navbar-link {
  width: fit-content;
  font-family: "Rubik", sans-serif;
  text-decoration: none;
  font-size: 1.2rem;
  color: black;
  display: inline-block;
  padding: 0.3rem;
  border: 0.5rem solid transparent;
  border-radius: 0.5rem;
  transition: 0.4s;
}
li {
  list-style-type: none;
}

#float-nav {
  position: fixed;
  width: 100%;
  height: 25vh;
  transition: 0.4s;
  z-index: 50;
}
#fn-list {
  width: auto;
  height: 3.5rem;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-left: 0.5rem;
  align-items: flex-end;
  margin-right: 20px;
  margin-top: 30vh;
}

/* Hover over link animation */

.navbar-link:hover {
  transition: border-bottom 0.4s;
  border-bottom: 4px solid blueviolet;
  z-index: 999;
}

#introduction-text {
  text-align: left;
  font-family: "rubik", sans-serif;
  font-weight: 100;
  margin-top: 10px;
  margin-left: 45px;
  margin-right: 50px;
  width: auto;
  -webkit-transition: color 1.8s; /* For Safari 3.0 to 6.0 */
  transition: color 1.5s; /* For modern Browsers */
  
}

.intro-style:hover {
  color: #00d5ff;
  cursor: pointer;
}

.project:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.contact-details:hover {
  transform: translateY(8px);
}

/* Animations */

#shadowBox,
#shadowBox1 {
  background-color: rgba(0, 0, 0, 0);
  border: 0px solid transparent;
}
.projects-section-header,
.animate {
  background: linear-gradient(
    to right,
    #e63552,
    #00ff00,
    #66ffe6,
    #ff3399,
    #ff7300
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow_animation 6s ease-in-out infinite;
  background-size: 300% 100%;
  max-width: 800px;
  margin: auto 1rem auto 1rem;
}
@keyframes rainbow_animation {
  0%,
  100% {
    background-position: 0 0;
  }

  50% {
    background-position: 100% 0;
  }
}

/* Scroll Animation */

#emphasis {
  display: inline-block;
  -webkit-transition: color 0.5s; /* For Safari */
  transition: color 0.5s; /*Browsers*/
}

.on-scroll {
  color: #3fe00e;
  text-shadow: 1.5px 1.2px 2px purple;
}

/* Welcome header */
#main-header {
  witdh: auto;
  text-align: left;
  font-family: "rubik", sans-serif;
  margin-top: 50px;
  margin-bottom: 0px;
  margin-right 20px;
  display: relative;
  z-index: 20;
  width: auto;
  margin-left: 3rem;
}

#welcome-section {
align-text: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-height: auto;
  width: 100%;
}

/* About me element */
#about-section {
  display: block;
  position: relative;
  z-index: -100;
  width: 100%;
  min-height: fit-content;
  max-height: auto;
  background-color: #00d5ff;
}
#about-me {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: fit-content;
  align-items: center;
  padding-bottom: 50px;
}
.about-header {
  font-family: "Rubik", sans-serif;
  margin-top: 30px;
  margin-bottom: 0;
  font-size: 3rem;
}

.about-text {
  font-family: "Rubik", sans-serif;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 20px;
  margin-left: 50px;
  margin-right:50px;
}

/* Projects section */

.projects-section {
  display: block;
  position: relative;
  text-align: center;
  padding: 5rem 5rem;
  z-index: 20;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 0.5fr));
  width: 100%;
  margin-bottom: 5rem;
  margin: auto;
  grid-gap: 6rem;
  max-width: 1200px;
}
.project {
  background: transparent;
  box-shadow: 3px 3px 4px black;
  border-radius: 20px;
  transition: transform 0.3s ease-out;
}
.project-image {
  height: auto;
  width: 100% auto;
  object-fit: cover;
  border-radius: 20px 20px 0px 0px;
}

.project-title {
  font-size: 2rem;
  padding: 2rem 0.5rem;
}

/* Contact section */

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(180deg, #66ffe6, purple);
}

.contact-section-header > h2 {
  font-size: 5rem;
}
@media (max-width: 26em) {
  .projects-section-header {
    font-size: 2.5rem;
  }
}
@media (max-width: 26em) {
  .contact-section-header > h2 {
    font-size: 2.5rem;
  }
}
.btn {
  display: inline-block;
  padding: 1rem 1rem;
}

.btn-show-all > i {
  margin-left: 10px;
  transition: transform 0.3s ease-out;
}
.contact-section-header > p {
  font-style: italic;
}

.contact-links {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 950px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.contact-details {
  font-size: 1.6rem;
  text-shadow: 2px 2px 2px black;
  transition: transform 0.3s ease-out;
}

#ftr {
  display: relative;
  width: 100%;
  height: 80px;
  background-color: black;
}
.footer-text {
  font-family: "Rubik", sans-serif;
  padding-left: 20px;
  font-size: 15px;
  color: white;
  text-align: left;
  padding-top: 20px;
}

              
            
!

JS

              
                window.onscroll = function () {
  myFunction();
};

function myFunction() {
  if (
    document.body.scrollTop > 1000 ||
    document.documentElement.scrollTop > 1800
  ) {
    document.getElementById("emphasis").className = "on-scroll";
  } else {
    document.getElementById("emphasis").className = "";
  }
}

              
            
!
999px

Console