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.
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<!-- This is navigation -->
<div class="navbar-fixed">
<nav id="nav">
<div class="nav-wrapper indigo darken-3"><a href="#header" class="brand-logo "><span class="logo">Sadmi Lyes</a>
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="large material-icons">menu</i></a>
<ul class="right hide-on-med-and-down">
<li><a href="#Services">Services</a></li>
<li><a href="#Projects">Projects</a></li>
<li><a href="#About">About</a></li>
<li><a href="#Contact">Contact</a></li>
</ul>
</div>
</nav>
</div>
<ul class="side-nav" id="mobile-demo">
<li><a href="#Services">Services</a></li>
<li><a href="#Projects">Projects</a></li>
<li><a href="#About">About</a></li>
<li><a href="#Contact">Contact</a></li>
</ul>
<!-- Header setion -->
<header id="header">
<div class="parallax-container valign-wrapper">
<!-- here is the typing text-->
<div class="container">
<div class="row ">
<div class="col s12 right" ><h1 class="white-text valign">> Hello, I'm Lyes...</h1>
<p class="thin-text teal lighten-4"
style="padding:1% 1%; border-radius: 10px;"><i class="material-icons">format_quote</i>Paris-based full stack web developper student,
who aim to design and build your next big idea.<i class="material-icons">format_quote</i></p>
<!-- here is the typing text-->
<div class="col s12 center" style="margin-top:-70px;">
<a href="https://twitter.com/lyesadmi" class="social-container twitter" target="_blank">
<div class="social-cube">
<div class="front">
<svg style="width:32px;height:32px" viewBox="0 0 24 24">
<path fill="#fff" d="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z" />
</svg><p style="margin-left:5px;">Twitter</p>
</div>
<div class="bottom">
@Lyesadmi
</div>
</div>
</a>
<a href="https://github.com/Sadmily" class="social-container github" target="_blank">
<div class="social-cube">
<div class="front">
<svg style="width:32px;height:32px" viewBox="0 0 24 24">
<path fill="#fff" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</svg>
</svg><p style="margin-left:5px;">GitHub</p>
</div>
<div class="bottom">
@Sadmily
</div>
</div>
</a>
<a href="https://codepen.io/lyesadmi/" class="social-container codepen" target="_blank">
<div class="social-cube">
<div class="front"><svg style="width:32px;height:32px" viewBox="0 0 24 24">
<path fill="#fff" d="M19.45,13.29L17.5,12L19.45,10.71M12.77,18.78V15.17L16.13,12.93L18.83,14.74M12,13.83L9.26,12L12,10.17L14.74,12M11.23,18.78L5.17,14.74L7.87,12.93L11.23,15.17M4.55,10.71L6.5,12L4.55,13.29M11.23,5.22V8.83L7.87,11.07L5.17,9.26M12.77,5.22L18.83,9.26L16.13,11.07L12.77,8.83M21,9.16C21,9.15 21,9.13 21,9.12C21,9.1 21,9.08 20.97,9.06C20.97,9.05 20.97,9.03 20.96,9C20.96,9 20.95,9 20.94,8.96C20.94,8.95 20.93,8.94 20.92,8.93C20.92,8.91 20.91,8.89 20.9,8.88C20.89,8.86 20.88,8.85 20.88,8.84C20.87,8.82 20.85,8.81 20.84,8.79C20.83,8.78 20.83,8.77 20.82,8.76A0.04,0.04 0 0,0 20.78,8.72C20.77,8.71 20.76,8.7 20.75,8.69C20.73,8.67 20.72,8.66 20.7,8.65C20.69,8.64 20.68,8.63 20.67,8.62C20.66,8.62 20.66,8.62 20.66,8.61L12.43,3.13C12.17,2.96 11.83,2.96 11.57,3.13L3.34,8.61C3.34,8.62 3.34,8.62 3.33,8.62C3.32,8.63 3.31,8.64 3.3,8.65C3.28,8.66 3.27,8.67 3.25,8.69C3.24,8.7 3.23,8.71 3.22,8.72C3.21,8.73 3.2,8.74 3.18,8.76C3.17,8.77 3.17,8.78 3.16,8.79C3.15,8.81 3.13,8.82 3.12,8.84C3.12,8.85 3.11,8.86 3.1,8.88C3.09,8.89 3.08,8.91 3.08,8.93C3.07,8.94 3.06,8.95 3.06,8.96C3.05,9 3.05,9 3.04,9C3.03,9.03 3.03,9.05 3.03,9.06C3,9.08 3,9.1 3,9.12C3,9.13 3,9.15 3,9.16C3,9.19 3,9.22 3,9.26V14.74C3,14.78 3,14.81 3,14.84C3,14.85 3,14.87 3,14.88C3,14.9 3,14.92 3.03,14.94C3.03,14.95 3.03,14.97 3.04,15C3.05,15 3.05,15 3.06,15.04C3.06,15.05 3.07,15.06 3.08,15.07C3.08,15.09 3.09,15.11 3.1,15.12C3.11,15.14 3.12,15.15 3.12,15.16C3.13,15.18 3.15,15.19 3.16,15.21C3.17,15.22 3.17,15.23 3.18,15.24C3.2,15.25 3.21,15.27 3.22,15.28C3.23,15.29 3.24,15.3 3.25,15.31C3.27,15.33 3.28,15.34 3.3,15.35C3.31,15.36 3.32,15.37 3.33,15.38C3.34,15.38 3.34,15.38 3.34,15.39L11.57,20.87C11.7,20.96 11.85,21 12,21C12.15,21 12.3,20.96 12.43,20.87L20.66,15.39C20.66,15.38 20.66,15.38 20.67,15.38C20.68,15.37 20.69,15.36 20.7,15.35C20.72,15.34 20.73,15.33 20.75,15.31C20.76,15.3 20.77,15.29 20.78,15.28C20.79,15.27 20.8,15.25 20.82,15.24C20.83,15.23 20.83,15.22 20.84,15.21C20.85,15.19 20.87,15.18 20.88,15.16C20.88,15.15 20.89,15.14 20.9,15.12C20.91,15.11 20.92,15.09 20.92,15.07C20.93,15.06 20.94,15.05 20.94,15.04C20.95,15 20.96,15 20.96,15C20.97,14.97 20.97,14.95 20.97,14.94C21,14.92 21,14.9 21,14.88C21,14.87 21,14.85 21,14.84C21,14.81 21,14.78 21,14.74V9.26C21,9.22 21,9.19 21,9.16Z" />
</svg><p style="margin-left:5px;">CodePen</p>
</div>
<div class="bottom">
@Lyesadmi
</div>
</div>
</a>
</div>
</div>
</div>
<!-- the pic parallax -->
<div class="parallax"><img src="https://wallpaperscraft.com/image/paris_eiffel_tower_france_river_beach_trees_54841_3840x2400.jpg" class="responsive-img"></div>
</div>
</header>
<!-- SERVICE section -->
<section id="Services">
<div class="container">
<div class="row">
<h2 style="font-weight:300;">Services</h2>
</div>
</div>
<!--Develop-->
<div class="row">
<div class="col l4 s12">
<div class="card medium indigo accent-2 z-depth-2">
<div class="card-content white-text">
<h3 class="center-align"><i class="large material-icons">desktop_windows</i><h3>
<div class="divider"></div>
<span class="card-title">Web Development</span>
<p style="font-size:0.4em;">Create modern static site or dynamic app to fit your business needs and grow your market.</p>
</div>
<div class="card-action">
<a href="#">Find Out more</a>
</div>
</div>
</div>
<!--Design-->
<div class="col l4 s12">
<div class="card medium indigo accent-2 z-depth-2">
<div class="card-content white-text">
<h3 class="center-align"><i class="large material-icons">smartphone</i><h3>
<div class="divider"></div>
<span class="card-title">Design</span>
<p style="font-size:0.4em;">Build web experience which works on any device size.</p>
</div>
<div class="card-action">
<a href="#">Find Out more</a>
</div>
</div>
</div>
<!--Host-->
<div class="col l4 s12">
<div class="card medium indigo accent-2 z-depth-2">
<div class="card-content white-text">
<h3 class="center-align"><i class="large material-icons">storage</i><h3>
<div class="divider"></div>
<span class="card-title">Host</span>
<p style="font-size:0.4em;">Set up and manage server or shared hosting to ensure that your message is always visible.</p>
</div>
<div class="card-action">
<a href="#">Find Out more</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!--Parallax -->
<section id="Projects">
<div class="parallax-container valign-wrapper">
<div class="container">
<div class="row center">
<!--Project-->
<div><h2 class="white-text left valign">Projects</h2></div>
<!--Caroussel-->
<div class="carousel carousel-slider center" data-indicators="true">
<div class="carousel-fixed-item center-align">
<a class="btn waves-effect white grey-text darken-text-2 center">Enjoy</a>
</div>
<div class="carousel-item indigo accent-1 white-text" href="#one!">
<h2>First Project</h2>
<h2><i class="large material-icons ikn">access_time</i></h1>
<p class="white-text">Coming soon</p>
</div>
<div class="carousel-item indigo accent-1 white-text" href="#two!">
<h2>Second Project</h2>
<h2><i class="large material-icons ikn">access_time</i></h1>
<p class="white-text">Coming soon</p>
</div>
<div class="carousel-item indigo accent-1 white-text" href="#three!">
<h2>Third Project</h2>
<h2><i class="large material-icons ikn">access_time</i></h1>
<p class="white-text">Coming soon</p>
</div>
<div class="carousel-item indigo accent-1 white-text" href="#four!">
<h2>Fourth Project</h2>
<h2><i class="large material-icons ikn">access_time</i></h1>
<p class="white-text">Coming soon</p>
</div>
</div>
<!--parralx-->
<div class="parallax">
<img src="http://res.cloudinary.com/lyes/image/upload/v1502883149/porfolio/27369594-blackboard-wallpapers_c5yymf.jpg" class="responsive-img"></div>
</div>
</section>
<!--aBout section-->
<sction id="About">
<div class="container ">
<div class="row">
<h2>About me</h2>
</div>
<div class="row">
<div class="col s12">
<div class="card-panel indigo lighten-5 z-depth-1">
<div class="row valign-wrapper">
<div class="col s4">
<img src="http://res.cloudinary.com/lyes/image/upload/c_fill,q_100,w_600/v1502889543/Portfolio/pic.svg" alt="" class="circle responsive-img"> <!-- notice the "circle" class -->
</div>
<div class="col s8">
<span class="black-text flow-text">Hi, i'm Sadmi lyes and i'm a newbie web developer, I've always had a deep curiosity for how things work, as well as a passion for solving problem using technology, I enjoy building beautiful and thoughtful experiences. <br>
Currently i'm studying at freecodecamp to get as knowledge as possible to have the means of my ambitions.<br>
When not learning the latest web technologies i'm spending time with my lovely wife cooking new reciepes, or watching movies and tv series.
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="Contact">
<div class="parallax-container valign-wrapper" style="height:600px;">
<!--Contact-->
<div class="container ">
<!--Form-->
<div class="row">
<div><h2 class="white-text left valign">Contact</h2></div>
<form class="col s12">
<fieldset>
<legend>Interested in working together ?</legend>
<div class="row">
<div class="input-field col s6">
<i class=" material-icons prefix">account_circle</i>
<input placeholder="John" id="first_name" type="text" class="validate">
<label for="first_name">First Name</label>
</div>
<div class="input-field col s6">
<i class=" material-icons prefix">account_box</i>
<input placeholder="Doe" id="first_name" type="text" class="validate">
<label for="last_name">Last Name</label>
</div>
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">contact_mail</i>
<input id="email" type="email" class="validate">
<label for="email" data-error="wrong" data-success="right">Email</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">chat</i>
<textarea id="textarea1" class="materialize-textarea"></textarea>
<label for="textarea1">Message me (:</label>
</div>
</div>
<button class="btn waves-effect waves-light indigo accent-4 right" type="submit" name="action">Get in touch
<i class="material-icons right">send</i>
</button>
</fieldset>
</form>
</div>
<!--parralx-->
<div class="parallax">
<img src="https://res.cloudinary.com/lyes/image/upload/v1502896274/Portfolio/lamp.jpg" class="responsive-img"></div>
</div>
</section>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/zenscroll/4.0.0/zenscroll-min.js"></script>
<script>
zenscroll.setup(250, 74)
</script>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Lobster');
body{
min-height:400vh;
}
nav ul li:hover{
background:red;
}
nav ul li{
padding:5%;
}
form {
background: -webkit-linear-gradient(#1a237e, #fff);
padding-top: 1% !important;
padding-right: 5% !important;
padding-left: 5% !important;
border-radius: 10px;
font-size: 1.2em !important;
opacity: 0.9;
}
fieldset {
border: 0 !important;
}
legend {
padding-top:5%;
paddging-bottom:5%;
font-size:1.7em;
color:white;
}
form label{
font-size:1em !important;
font-weight:bold;
}
form{
margin-bottom: 5%;
}
form i{
color:white;
}
form input, textarea{
font-size:1em !important;
color: white !important;
text-shadow: 1px 1px 1px; black;
}
.ux{
align-item:center;
}
.logo {
font-weight: 300;
font-size: 1.4em;
font-family:'Lobster', serif;
padding-left:10%;
}
.ikn{
font-size: 6.5em !important;
}
.thin-text {
font-size: 1.1em;
font-weight:300;
font-style:italic;
text-align: center;
opacity: 0.7 !important;
}
@-webkit-keyframes typing {
from {
width: 0;
}
}
@-webkit-keyframes blink-caret {
50% {
border-color: transparent;
}
}
h1 {
font: bold 300% roboto, Monaco, monospace;
opacity: 0.9;
color: #fff;
border-right: .1em solid white;
width: 16.5em;
width: 14.5ch;
white-space: nowrap;
overflow: hidden;
-webkit-animation: typing 5s steps(21, end), blink-caret 0.3s step-end infinite alternate;
}
header h4{
font-size: 1.2em;
}
a.gld {
border-radius: 5px;
}
a.gld:hover {
background-color:#ffca28 !important;
}
.social-container {
position: relative;
display: inline-block;
width: 164px;
height: 36px;
perspective: 300px;
font-size: 24px;
margin: 8px;
}
.social-container .social-cube {
position: absolute;
left: 0;
top: 100px;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: all 0.333s;
transform: translateZ(-18px);
}
.social-container .social-cube .front, .social-container .social-cube .bottom {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
transition: background 0.333s;
}
.social-container .social-cube .front {
transform: rotateX(0deg) translateZ(18px);
}
.social-container .social-cube .bottom {
transform: rotateX(-90deg) translateZ(18px);
}
.social-container:hover .social-cube {
transform: translateZ(-18px) rotateX(90deg);
}
.social-container.twitter .social-cube .front, .social-container.twitter .social-cube .back {
background: #4099FF;
}
.social-container.twitter .social-cube .bottom {
background: #0d7eff;
}
.social-container.twitter:hover .social-cube .bottom {
background: #4099FF;
}
.social-container.twitter:hover .social-cube .front {
background: #73b4ff;
}
.social-container.github .social-cube .front, .social-container.github .social-cube .back {
background: #767676;
}
.social-container.github .social-cube .bottom {
background: #5d5d5d;
}
.social-container.github:hover .social-cube .bottom {
background: #767676;
}
.social-container.github:hover .social-cube .front {
background: #909090;
}
.social-container.codepen .social-cube .front, .social-container.codepen .social-cube .back {
background: #191919;
}
.social-container.codepen .social-cube .bottom {
background: black;
}
.social-container.codepen:hover .social-cube .bottom {
background: #191919;
}
.social-container.codepen:hover .social-cube .front {
background: #333333;
}
@-webkit-keyframes typing {
from {
width: 0;
}
}
@-webkit-keyframes blink-caret {
50% {
border-color: transparent;
}
}
h1 {
font: bold 400% roboto, Monaco, monospace;
opacity: 1;
color: #fff;
text-shadow: 2px 2px 3px black;
border-right: .1em solid white;
width: 16.5em;
width: 14.5ch;
margin: 1em 1em;
white-space: nowrap;
overflow: hidden;
-webkit-animation: typing 5s steps(21, end), blink-caret 0.3s step-end infinite alternate;
}
$(document).ready(function(){
$('.parallax').parallax();
$('.carousel').carousel();
$('.carousel.carousel-slider').carousel({fullWidth: true});
$('.button-collapse').sideNav();
});
Also see: Tab Triggers