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 URL's 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 it's URL and the proper URL extention.
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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
<title>Universe of Thrash</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Unna&display=swap" rel="stylesheet">
<link href="http://fonts.cdnfonts.com/css/diablo" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<nav id="navbar">
<img class="universe" src="https://previews.123rf.com/images/intueri/intueri1710/intueri171000086/87711869-m%C3%A3os-m%C3%A1gicas-e-tatuagem-de-universo-e-design-de-t-shirt-s%C3%ADmbolo-do-universo-viagens-espaciais-casa-d.jpg" alt="Universe">
<div>
<ul class="KopfzeileR">
<li class="ListeIn"><a class ="NavLink" href="#welcome-section">Willkommen</a></li>
<li class="ListeIn"><a class="NavLink" href="#projects">Computer & Serien</a></li>
<li class="ListeIn"><a class="NavLink" href="#Körper_&_Geist">Körper & Geist</a></li>
<li class="ListeIn"><a class="NavLink" href="#Minimalismus">Minimalismus</a></li>
<li class="ListeIn"><a class="NavLink" href="#Kontakt">Kontakt</a></li>
</ul>
</div>
</nav>
<main>
<article>
<section id="welcome-section">
<div class="Teil1">
<h1>"Hello my friend"</h1>
<h2>"Stay a while and listen"</h2>
</div>
</section>
<section id="projects">
<div class="Teil2">
<div class="divimg">
<h3>HTML und CSS:</h3>
<a href="https://www.freecodecamp.org/"><img class="img" src="https://www.freecodecamp.org/static/wide-image-3cb329e8b3cae865be76746fbd069cd2.png" alt="FreeCodeCamp"></a>
<p>Freecodecamp.org</p>
</div>
<div class="divimg">
<h3>Erstes Projekt:</h3>
<img class="img" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" alt="project"/>
<p><a class="project-tile" href="https://codepen.io/Mr-Thrash/full/jOYOQNY">Tribute Page</a></p>
</div>
<div class="divimg">
<h3>Derzeitige (Indie-)Games:</h3>
<a href="https://www.vampiresdawn.org/forum/viewtopic.php?t=41445"><img class="img" src="https://www.vampiresdawn.org/wp-content/uploads/sites/3/2018/04/aa_hdr.png" alt="VampiresDawn"></a>
<p>Vampires Dawn 2 Everlasting Blood</p>
</div>
<div class="divimg">
<h3>Aktuelle Serienempfehlung:</h3>
<a href="https://www.moviepilot.de/serie/how-to-sell-drugs-online-fast"><img class="img" src="https://assets.cdn.moviepilot.de/files/70a85b7ecc163e261b5126f855f84aec308c20320a7c80f96400ea800ff8/fill/992/477/htsdof-Netflix.jpeg" alt="HTSDOF"></a>
<p>How to sell drugs online fast</p>
</div>
</div>
</section>
<section id="Körper_&_Geist">
<div class="Teil3">
<h3>"Eine gesunde Seele wohnt in einem gesundem Körper"</h3>
<div class="divdos">
<div class="divimdiv"><h4>Train</h4><img class="img2" src="https://as2.ftcdn.net/v2/jpg/03/17/72/47/1000_F_317724775_qHtWjnT8YbRdFNIuq5PWsSYypRhOmalS.jpg"></div>
<div class="divimdiv"><h4>Eat</h4><img class="img2" src="https://thumbs.dreamstime.com/z/collection-raw-food-close-up-119953690.jpg"></div>
<div class="divimdiv"><h4>Sleep</h4><img class="img2" src="https://images.pexels.com/photos/271897/pexels-photo-271897.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"></div>
<div class="divimdiv"><h4>Meditate</h4><img class="img2" src="https://media.istockphoto.com/photos/my-presence-is-my-power-picture-id1303002202?b=1&k=20&m=1303002202&s=170667a&w=0&h=6PUzkKo1cPve67XL4urz9x56RAS4DRgNfxqx-vKMdz0="></div>
<div class="divimdiv"><h4>Learn</h4><img class="img2" src="https://media.istockphoto.com/photos/focused-african-businessman-in-headphones-writing-notes-watching-picture-id1150384596?k=20&m=1150384596&s=612x612&w=0&h=NcbO30_wJz4u3kmAZdeLn98GmfkWWvg91-UkqK-LV5A="></div>
<div class="divimdiv"><h4>Have Fun</h4><img class="img2" src="https://static.boredpanda.com/blog/wp-content/uploads/2017/12/funny-weird-wtf-stock-photos-18-5a39260c08f8a__700.jpg"></div>
</div>
</div>
</section>
<section id="Minimalismus">
<div class="Teil4">
<div class="divmin">
<center><h3>"Does it spread Joy ?"</h3></center>
<p>Minimalismus wird aufgrund verschiedenster Ziele und Einstellungen praktiziert. Der Grundgedanke dahinter ist sich von materiellen Gütern loszusagen, das Konzept der Nachhaltigkeit und Fokussierung auf das Wesentliche.<br> Während meiner Studienzeit lebte ich innerhalb einer 36m² Wohnung. Trotz Ersparnissen aus vorhergehendem Berufsleben, Bafög und elterlicher Unterstützung blieb am Ende des Monats, wenn überhaupt, eine überschaubare Summe an Geld übrig. Diesen Gegebenheiten galt es sich anzupassen. Meine anfänglichen Möbelzusammenstellung stammte aus dem alten Jugendzimmer und den Kinderzimmern meiner Schwestern. Die Küche wurde für wenige Euronen auf Kleinanzeigen zusammengekauft und der maßgeschneiderte Schrank der Abstellkammer durch meinen Vater gebaut. <br>Alles in einem ließ es sich gut aushalten, allerdings war es weder gemütlich, noch überschaubar, da ich einen Großteil meines unsortierten Sachbestandes unterbringen musste (wollte). Darunter waren haufenweise Comics, Dvd´s, Bücher, ein Schreibtisch voller Bürokrempel, Dekoration aso..<br>Irgendwann wurde ich auf den Minimalismus aufmerksam. Auch wenn der Aspekt der Nachhaltigkeit bei mir über die Jahre verloren gegangen ist, so schätze ich doch die Einfachheit, die Sauberkeit, der geringe Aufwand und die dadurch sich einstellende Bequemlichkeit. Vor allem letzteres, da ich, zugegebenermaßen, gelegentlich gerne etwas entspannter lebe. Spätere Bestärkungen, nur noch das notwendigste zu besitzen, waren wiederkehrende Umzüge und leider auch sich entwickelnde psychische Probleme. Jetzt sollte der Haushaltsbestand zur Entlastung klein gehalten werden. <br>Der Kleiderschrank voller Klamotten wurde zur Kommode mit dem notwendigsten, eine große L-Cocuh zu einer bodennahen Futon-Couch, der große Esstisch lediglich ein kleiner Tisch mit passenden Stühlen, statt einem neuen Tower-Rechner wurde es ein Laptop, der Schreibtisch blieb dementsprechend komplett weg, aus der Schublade voller Stifte nur ein Colaglas mit ein paar Kugelschreibern. <br>Das Internet trägt seinen wesentlichen Teil dazu bei, dass viele Gegenstände physisch keine Notwendigkeit besitzen. Natürlich ist es rein von der Haptik her ein schönes Gefühl, wenn in einem richtigem Buch geschmöckert wird, allerdings nehmen gerade Bücher viel Platz ein und sorgen für viel unnötigen Ballast. Hier kam ein Tolino in Kombination mit einem Pass der öffentlichen Bibliothek gerade recht. In Zeiten von Streaming-Diesnten sind auch DvD´s weitestgehend überflüssig. Statt CD´s wird es jetzt Spotify bzw. Deezer. <br><br><center>Aus welchem Grund auch immer, für mich ist der Minimalismus derzeit ein guter Lebenspfad. </center>
</div>
</div>
</section>
<section id="Kontakt">
<div class="Teil5">
<h3>Gerne könnt ihr mich kontaktieren</h3>
<p class="pende">Allerdings besitze ich weder:</p>
<div class="fapad">
<a href="#" class="fa fa-facebook"></a>
<a href="#" class="fa fa-twitter"></a>
<a href="#" class="fa fa-instagram"></a>
<a id="profile-link" href="https://github.com/freecodecamp" class="fa fa-github" target="_blank"></a>
</div>
</section>
<footer><p class="paddingp">This is just a fake portfolio. All the projects and contact details given are not real.</p>
<p class="paddingp2">© Created for myself</p></footer>
</article>
</main>
body{margin:0;padding:0;}
#navbar{position:fixed; top:0;width:100%;background:black;border-bottom-style:solid;border-color:darkred;}
.universe{width:61px;float:left;}
.KopfzeileR{list-style-type:none;float:right;margin-right:15px;}
.ListeIn{display:inline;padding:15px;width:61px;}
.NavLink{text-decoration:none;color:silver;Font-family:UnnA, serif;font-size:25px;}
.KopfzeileR a:hover{background:maroon;}
#welcome-section{height:100vh;}
.Teil1{
padding-top: 0px;
margin-top: 0px;
display: flex;
flex-direction:column;
height:99.7vh;
background-image:linear-gradient(45deg,black,yellow 20%,maroon,black);align-items:center;justify-content:center;border:5px; border-bottom-style: solid;border-color:maroon;}
h1{color:black;font-family:Diablo,UnnA,serif;font-size:50px;margin-bottom:5px;}
h2{color:black;font-family:Diablo,UnnA,serif;font-size:20px;}
.Teil2{padding-top:50px;height:auto;background:#B38138;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px; border-bottom-style: solid;;border-color:maroon;}
.divimg{margin:20px;background:maroon;width:800px;display:flex;flex-direction:column;align-items:center;border-style:solid;box-shadow:7px 5px 5px black;}
h3{font-size:27px;font-family:UnnA,serif;}
.img{width:500px; height:300px;border-style:ridge;border-color:grey;}
.project-tile{text-decoration: none;color:black;}
.Teil3{padding-top:50px;height:auto;background:#B38138;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px; border-bottom-style: solid;;border-color:maroon;}
.divdos{width:1500px;padding: 20px; margin-bottom:50px;background:maroon;display:grid;grid-template-columns:370px 370px 370px; grid template-rows:350px 350px 350px;grid-gap:20px 100px;align-items:center; justify-content:center;border:5px;border-style:solid;border-color:black;box-shadow:7px 5px 5px black;}
.divimdiv{background:black;text-align:center;border-style:ridge;border-color:grey;}
.img2{width:350px;height:250px;}
h4{font-size:25px;margin:5px;color:White;}
.Teil4{padding-top:50px;height:auto;background:#B38138;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px; border-bottom-style: solid;;border-color:maroon;}
.divmin{background:#EEE8AA;width:1500px;padding:15px;border-style:solid;box-shadow:7px 5px 5px black;margin-bottom:25px;}
.Teil5{padding-top:15px;height:auto;background:#B38138;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px; border-bottom-style: solid;;border-color:maroon;}
.pende{font-size:18px;margin-top:0px;}
footer{Background:#B38138;Height:80px;display:flex;flex-direction:row;align-items:center;justify-content:center;
}
.paddingp{padding-right:500px;font-size:20px;}
.paddingp2{padding-right:50px;font-size:20px;}
/* Hier beginnen die social media links */
.fa {
padding: 20px;
font-size: 30px;
width: 50px;
text-align: center;
text-decoration: none;
margin: 5px 2px;}
.fa:hover {
opacity: 0.7;}
.fa-facebook {background: #3B5998;
color: white;}
.fa-twitter {background: #55ACEE;
color: white;}
.fa-instagram {background: #125688;
color: white;}
.fa-github {background: black;
color: white;}
.fapad{margin-bottom:25px;}
#profile-link{}
/* Media Query */
@media only screen and (max-width: 1600px) {
#navbar{position:absolute;}
.universe{display:none;}
.NavLink{font-size:15px;}
h1{font-size:25px;}
h3{font-size:20px;}
.divimg{width:300px;}
.img{width:250px;height:150px;}
.divdos{width:400px;display:block;}
.divimdiv{width:350px;margin:auto;}
img2{width:300px;}
.divmin{width:450px;}
.paddingp{padding-right:5px;font-size:10px;}
.paddingp2{padding-right:5px;font-size:10px;}
}
Also see: Tab Triggers