Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Doug Devitre</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <h1>Doug Devitre</h1>
        <nav>
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#about">About</a>
</li>
                <li><a href="#services">Services</a></li>
              <li><a href="#speaking">Speaking</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>
    <main>
        <section id="cta-buttons">
            <button onclick="subscribeSubstack()">Subscribe to Substack</button>
            <button onclick="subscribeYouTube()">Subscribe to YouTube</button>
            <button onclick="connectLinkedIn()">Connect on LinkedIn</button>
            <button onclick="requestSpeaking()">Request Speaking</button>
            <button onclick="accessBooks()">Access Recommended Books</button>
            <button onclick="accessProducts()">Access Recommended Products</button>
        </section>
      <p></p>
      <iframe src="https://dougdevitre.substack.com/embed" width="480" height="320" style="border:1px solid #EEE; background:white;" frameborder="0" scrolling="no"></iframe>
<section class='about' id='#About'>
  <h2>About</h2>
   <p align='left'>Organizations bring in Doug Devitre from St. Louis, Missouri USA when they want to dramatically increase operational performance, create breakthrough value propositions, and serve customers beyond geographical constraints on a minimal budget. For more than a decade he has been setting trends with how organizations engage customers with social media, video marketing, and custom-built software applications. Doug’s book Screen to Screen Selling published by McGraw Hill pioneered the way sales professionals sold homes without being physically present before the COVID-19 pandemic. He is one of a select few who have earned the Certified Speaking Professional Designation from the National Speakers Association and has experience as a REALTOR.</p>
  <div class="carousel">
    <div class="slides">
        <img src="https://github.com/dougdevitre/images/blob/main/Doug%20Devitre%20resume%201.png?raw=true" alt="Doug Devitre resume 1">
        <img src="https://github.com/dougdevitre/images/blob/main/Doug%20Devitre%20resume%202.png?raw=true" alt="Doug Devitre resume 2">
    </div>
    <div class="navigation">
        <button onclick="prevSlide()">&#10094;</button>
        <button onclick="nextSlide()">&#10095;</button>
    </div>
</div>
      </section>
      <section class='services' id='services'>
        <h2>Expected Results From Services</h2>           
          Increased brand awareness for products and services
          <br>
          Dramatic increase in productivity with technology
          <br>
            Increased adoption rate of services
        <br>
        <br>
         <iframe width="560" height="315" src="https://www.youtube.com/embed/ApWAHiG2UyI?si=Iz6geu6dssGvO-Gl" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
      </section>
      <section>
  
  <div class="speaking" id='speaking'>
    <h2>Doug Devitre's Speaking Topics</h2>
 
  <iframe class="airtable-embed" src="https://airtable.com/embed/apppwWsfoKnu4tuUB/shr4vGCORi1IWmJMT?viewControls=on" frameborder="0" onmousewheel="" width="100%" height="533" style="background: transparent; border: 1px solid #ccc;"></iframe>
  </div>
      </section>
      <section id='contact'>
        <h2>Contact<h2>
          <p>
            Please call 314.496.5973, Schedule meeting <a href="https://calendly.com/dougdevitre">schedule meeting</a> or <a href="            https://substack.com/chat/2425462
">chat with me.</a>
          
          </p>
      </section>
      <div>
      </div>
    </main>
    <script src="scripts.js"></script>
</body>
</html>

              
            
!

CSS

              
                body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #000;
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #FFF;
    text-decoration: none;
}

main {
    padding: 20px;
    text-align: center;
}
.about {
  padding-top: 25px;
  padding-right: 100px;
  padding-bottom: 50px;
  padding-left: 100px;
  
}

.services {
   margin:0;
   padding:0;
    text-align: center;
}

.speaking {
  padding-top: 25px;
  padding-right: 100px;
  padding-bottom: 50px;
  padding-left: 100px;
}

#cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#cta-buttons button {
    padding: 15px;
    font-size: 16px;
    color: white;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cta-buttons button:hover {
    background-color: #FFD700;
    color: #000;
}

@media (min-width: 600px) {
    #cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

        .carousel {
            position: relative;
            max-width: 600px;
            margin: auto;
            overflow: hidden;
        }
        .slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }
        .slides img {
            width: 100%;
        }
        .navigation {
            position: absolute;
            width: 100%;
            display: flex;
            justify-content: space-between;
            top: 50%;
            transform: translateY(-50%);
        }
        .navigation button {
            background-color: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            padding: 10px;
            cursor: pointer;
        }

              
            
!

JS

              
                function subscribeSubstack() {
    window.open('https://dougdevitre.substack.com', '_blank');
}

function subscribeYouTube() {
    window.open('https://www.youtube.com/channel/UCAi7nblluqQET-LyjjeKHQA', '_blank'); // replace with actual YouTube channel URL
}

function connectLinkedIn() {
    window.open('https://www.linkedin.com/in/dougdevitre', '_blank');
}

function requestSpeaking() {
    window.open('mailto:dougdevitre@gmail.com', '_blank'); // replace with actual speaking request URL
}

function accessBooks() {
    window.open('https://dougdevitre.com/books', '_blank'); // replace with actual recommended books URL
}

function accessProducts() {
    window.open('https://dougdevitre.com/products', '_blank'); // replace with actual recommended products URL
}
    let slideIndex = 0;

    function showSlides() {
        const slides = document.querySelector('.slides');
        const totalSlides = document.querySelectorAll('.slides img').length;
        if (slideIndex >= totalSlides) {
            slideIndex = 0;
        }
        if (slideIndex < 0) {
            slideIndex = totalSlides - 1;
        }
        slides.style.transform = `translateX(-${slideIndex * 100}%)`;
    }

    function nextSlide() {
        slideIndex++;
        showSlides();
    }

    function prevSlide() {
        slideIndex--;
        showSlides();
    }

    showSlides();
              
            
!
999px

Console