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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<main id="main">

  <div id="title">
    <h1>Vishen Lakhiani</h1>
    <p><span>Reimagining</span> The Human Experience</p>
  </div>

  <figure id="img-div">
    <img src="https://static.mindvalley.com/public/assets/2019/06/LViH_vl-landing-05_s770.jpg" alt="A talk given by Vishen Lakhiani" id="image">
    <figcaption id="img-caption">Lakhiani giving a talk on stage</figcaption>
  </figure>

  <section id="tribute-info">
    <h2>Who is Vishen?</h2>
    <p>The <span>Founder of Mindvalley</span> - an award-winning education movement with over millions of students worldwide and growing fast.</p>
    <p>The <span>New York Times Bestselling Author</span> of <em>The Code of the Extraordinary Mind</em>, now translated into 25+ languages.</p>
    <p>The <span>Founder of A-Fest and Mindvalley University</span> - two major event experiences in the field of personal transformation.</p>
    <p>The <span>Creator of Mindvalley Quests</span> - a new kind of online learning platform that produces 800% better completion rates than the industry average.</p>
    <p>A <span>Speaker</span> and <span>Activist</span> working to evolve the core systems that shape our lives - including education, work culture, politics, and wellbeing.</p>
  </section>

  <section id="timeline">
    <h2>A Timeline of Success:</h2>
    <div>
      <p><span>2009</span></p>
      <p class="negative-margin-top">Vishen was given his first break as a speaker when he was put on stage at a major event in Calgary that featured the Dalai Lama, Richard Branson and other massive names. Vishen tied as the <strong>audience vote for BEST SPEAKER</strong>. This launched his speaking career.</p>
    </div>
    <div>
      <p><span>2010</span></p>
      <p class="negative-margin-top">Speaking at the Underground Seminar in Washington DC, Vishen’s talk got a standing ovation. He asked the audience if they’d like to go deeper on his ideas. Then and there, <strong>A-Fest was born</strong>. Today A-Fest, now 8 years old is one of the hottest events in the entire personal growth industry.</p>
    </div>
    <div>
      <p><span>2014</span></p>
      <p class="negative-margin-top">In January, Vishen was featured on the cover of SPEAKER MAGAZINE.</p>
      <p>Vishen spoke at Wisdom 2.0 at Google HQ Dublin. His talk became the most popular talk in their Youtube channel with 1.1 MILLION views and counting.</p>
    </div>
    <div>
      <p><span>2015</span></p>
      <p class="negative-margin-top">Speaking at JJ Virgin’s Mindshare Summit, his talk was so good, he was offered a book deal by an editor from Rodale Inc who happened to be in the audience. It was one of the biggest book deals for a first time author. That book - <em>The Code of the Extraordinary Mind</em> went on to become the <strong>#1 book globally on Amazon</strong> three years later.</p>
      <p>At XPRIZE Visioneering, some 150 of the world’s smartest people came together to pitch new ideas to change the world. Vishen as a part of two different teams. He was so persuasive his team’s won both the #1 and #2 spot out of approximately 100 ideas. His winning idea was the Human Dignity XPRIZE to support the world’s 70M displaced people.</p>
    </div>
    <div>
      <p><span>2017</span></p>
      <p class="negative-margin-top">Vishen announced that he was going to create a new type of university. Mindvalley University City Campus was born. Today thousands of people relocate to a new city for 1 month every year to attend hundreds of talks and events as part of this new vision for learning.</p>
    </div>
  </section>

  <section id="books">
    <h2>Books by Vishen Lakhiani:</h2>
    <figure class="book1">
      <img src="https://static.mindvalley.com/public/assets/2019/03/lgAK_vl-fb-share-codex.jpg" alt="The Code of the Extraordinary Mind by Vishen Lakhiani">
      <figcaption class="book1-cap">“Let’s celebrate our extraordinary ability to evolve emotionally, mentally, spiritually throughout life, taking on new ideas, thoughts, philosophies, and ways of being and living.”</figcaption>
    </figure>
    <figure class="book2">
      <img src="https://images-na.ssl-images-amazon.com/images/I/91FzF8mXOTL.jpg" alt="The Buddha and the Badass by Vishen Lakhiani">
      <figcaption class="book2-cap">“Greatness is best achieved with others. The world is too complex to strike it alone. People are drawn to you not because of your business plan. Humans are moved by emotion more than logic. The greatest gift you can give someone is to invite them to share in a dream.”</figcaption>
    </figure>
  </section>

  <section id="more">
    <h3><a href="https://www.vishen.com/" id="tribute-link" target="_blank">Learn more about Vishen Lakhiani</a></h3>
  </section>

  <footer id="footer">
    <p>Timeline and Tribute Info taken directly from www.vishen.com</p>
    <p class="negative-margin-top">I am not claiming to have written any of this content, it's just a bit of fun:):)</p>
    <p class="negative-margin-top">Coded by me</p>
  </footer>

</main>
              
            
!

CSS

              
                body {
  font-family: "Assistant", sans-serif;
  font-weight: 300;
}

h1,
h2,
h3 {
  text-align: center;
}

#tribute-info h2,
#timeline h2 {
  font-size: 1.3em;
}

#main {
  max-width: 90%;
  min-width: 235px;
  margin: 0 auto;
  border-radius: 1em;
  padding: 1em;
  background-color: #f5deb320;
}

#title {
  text-align: center;
}

#title p {
  font-weight: 500;
}

#title span {
  font-family: "Allura", cursive;
  font-size: 2em;
  letter-spacing: 3px;
}

#img-div {
  background-color: #fff;
  padding: 2.5em 1em;
  margin: auto;
}

#img-div img {
  display: block;
  max-width: 100%;
  min-width: 180px;
  height: auto;
  margin: auto;
}

#img-caption {
  text-align: center;
  position: relative;
  top: 20px;
  opacity: 50%;
}

#tribute-info {
  max-width: 700px;
  margin: 4rem auto;
}

#tribute-info ul {
  list-style: none;
}

#tribute-info ul li {
  padding-bottom: 2em;
}

#tribute-info span {
  font-weight: 500;
}

#timeline {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 0;
}

#timeline h2 {
  margin-bottom: -10px;
}

#timeline span {
  font-family: "Luckiest Guy", cursive;
  font-size: 1.5em;
  margin-bottom: 0.5rem;
}
#timeline .negative-margin-top {
  margin-top: -12px;
}

#timeline div {
  padding-top: 1.2em;
}

#books {
  margin: 4rem auto;
}

#books h2 {
  font-size: 1.2em;
  margin-top: 2rem;
}

.book1 img,
.book2 img {
  max-width: 100%;
  height: auto;
}

.book2 {
  max-width: 500px;
  margin: auto;
}

.book1-cap,
.book2-cap {
  font-size: 0.9rem;
  text-align: center;
  margin: -0.5rem auto 60px auto;
  padding: 0.5em;
}

#more {
  text-align: center;
  margin-bottom: 4rem;
}

#more h3 {
  font-weight: 300;
}

#more a {
  color: #4b0082;
  margin: 0.25em;
  padding: 0.25em;
  font-size: 1.4em;
  font-weight: bold;
  border: none;
  background-color: none;
  border-radius: 0.25em;
}

#more a:hover {
  font-size: 1.8rem;
  text-decoration: underline;
  text-decoration-color: #9370db;
}

#footer {
  text-align: center;
  font-size: 0.7rem;
  border: 1px solid;
}

#footer .negative-margin-top {
  margin-top: -8px;
}

@media (max-width: 400px) {
  #img-div {
    padding-top: 1rem;
    padding-bottom: 1.8rem;
  }
  #img-caption {
    margin-top: -10px;
  }
  p {
    font-size: 0.8rem;
  }
  .book1 {
    margin: 0;
  }
  .book2 {
    margin: 10%;
  }
  .book1-cap,
  .book2-cap {
    width: 70%;
    height: 100px;
    overflow: scroll;
  }
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console