HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!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()">❮</button>
<button onclick="nextSlide()">❯</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>
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;
}
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();
Also see: Tab Triggers