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.
html
head
body.A4
.sheet
button#print.btn.btn-print.btn-sm.btn-light
| <i class="fa fa-print"></i>
| Print
.two-column.resume
section.resume__section.resume__header
.resume__content
h1 Thiago Braga
.info-item
span.info-label
i.fa.fa-location-arrow
span.info-text
| 770 Marçal de Arruda Campos St., Bauru, SP, Brazil,
| Zip: 17063-060
.info-item
span.info-label
i.fa.fa-envelope
span.info-text contato@thiagobraga.org
.info-item
span.info-label
i.fa.fa-phone
span.info-text +55 14 99165 5873
.resume__columns
.resume__main
section.resume__section.resume__summary
.resume__content
.resume__section-title
i.fa.fa-pencil-square-o
h2 Professional Summary
.other
.other-info
p
| PHP & JavaScript developer + Devops Enthusiast with a
| decade of success leading teams in delivering appropriate
| technology solutions for desktop and mobile products.
p
| Comprehensive knowledge of enterprise architecture,
| agile methodologies, remote work, cloud services and
| web-based applications.
section.resume__section.resume__experience
.resume__content
.resume__section-title
i.fa.fa-briefcase
h2 Employment History
.xp-item
.xp-job
| Full Stack Developer / DevOps
| <span>@ Grupo Tesseract</span>
br
small Bauru, Sao Paulo
.xp-date Apr. 2017 – current
.xp-detail
ul
li
| Design, build or maintain web sites using Laravel,
| Bootstrap, Vue, React and WordPress
li Create scripting language tools
li Automate dev, builds and deploy tasks
li
| Maintain understanding of current web technologies or
| programming practices through continuing education,
| reading and sharing knowledge
li
| Develop databases that support web applications and
| web sites
li
| Develop and document style guidelines for web site
| content
li Recommend and implement performance improvements
li
| Select programming languages, design tools,
| or applications
.xp-item
.xp-job
| Full Stack Developer
| <span>@ Jurid Publicações Eletrônicas</span>
br
small Bauru, Sao Paulo
.xp-date Aug. 2018 – Apr. 2020
.xp-detail
ul
li
| Build or maintain web sites using native PHP, Python
| and JavaScript
li
| Maintain and improve production databases running on
| Elasticsearch, Redis, PostgreSQL and MySQL
li Provide backup and maintenance of GNU/Linux servers
li Provide documentation for existent and new applications
.resume__side
section.resume__section.resume__skills
.resume__content
.resume__section-title
i.fa.fa-align-center
h2 Skills
.resume__text
.extra
.extra-info
| PHP
br
small PHP 5 · PHP 7 · Laravel
.extra-details
.extra-details__progress(style='width:90%')
.extra
.extra-info
| JavaScript
br
small React · React Native · Vue
.extra-details
.extra-details__progress(style='width:87%')
.extra
.extra-info
| HTML
br
small HTML5 · Markdown · Pug
.extra-details
.extra-details__progress(style='width:100%')
.extra
.extra-info
| CSS
br
small Stylus · Sass · Bootstrap
.extra-details
.extra-details__progress(style='width:100%')
.extra
.extra-info
| DevOps
br
small Docker · Shell · AWS · CI/CD
.extra-details
.extra-details__progress(style='width:82%')
.extra
.extra-info
| Databases
br
small PostgreSQL · MySQL · Elasticsearch · Redis
.extra-details
.extra-details__progress(style='width:80%')
.extra
.extra-info
| Operating Systems
br
small
| <i class="fa fa-linux"></i> GNU/Linux ·
| <i class="fa fa-apple"></i> Mac OS ·
| <i class="fa fa-windows"></i> Windows
.extra-details
.extra-details__progress(style='width:90%')
section.resume__section.resume__languages
.resume__content
.resume__section-title
i.fa.fa-globe
h2 Languages
.extra
.extra-info Portuguese <small>(native)</small>
.extra-details
.extra-details__progress(style='width:100%')
.extra
.extra-info English
.extra-details
.extra-details__progress(style='width:65%')
.extra
.extra-info Spanish
.extra-details
.extra-details__progress(style='width:20%')
// Tested colors
// #f68931 #5695cd #8b63bf #d0465f
$accentColor = #5695cd
$lightAccentColor = lighten($accentColor, 50%)
$progressBackground = #d1d9e1
$unicodeRange = U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, \
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, \
U+FEFF, U+FFFD
// Google Fonts
@font-face
font-family 'Open Sans'
font-style normal
font-weight 400
font-display swap
unicode-range $unicodeRange
src local('Open Sans Regular'), local('OpenSans-Regular'), \
url(https://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0b.woff2) \
format('woff2')
@font-face
font-family 'Roboto'
font-style normal
font-weight 400
font-display swap
unicode-range $unicodeRange
src local('Roboto'), local('Roboto-Regular'), \
url(https://fonts.gstatic.com/s/roboto/v19/KFOmCnqEu92Fr1Mu4mxK.woff2) \
format('woff2')
@page
size A4
body
color-adjust exact
background-color #fff
font-family 'Open Sans', sans-serif
font-weight 300
display flex
justify-content center
.btn-print
z-index 1
position absolute
right 20px
top 20px
.resume
display block
font-family 'Roboto', sans-serif
font-size 13.0736px
font-weight 400
line-height 1.5
min-height 1090.41px
h1
font-size 2.86em
font-weight 600
letter-spacing -0.5px
h2
font-size 1.43em
font-weight 600
line-height 1
margin-bottom 0
p
margin-bottom 1em
&:last-child
margin-bottom 0
ul
padding-left 20px
.resume__header
.resume__section
font-family 'Open Sans', sans-serif
font-size 0.95em
.resume__header
padding 6em 4em 0
.resume__section
margin-bottom 4em
&:last-child
padding-bottom 0
.resume__section-title
display flex
align-items center
margin-bottom 1.43em
> i
margin-right 0.63em
font-size 1.14em
background-color $accentColor
color white
border 0.25em solid $lightAccentColor
border-radius 50%
width 2.51em
height 2.51em
display flex
align-items center
justify-content center
line-height 1.6
> h2
margin-top 0
font-size 1.5em
.resume__columns
overflow hidden
padding 4em
padding-top 0
.resume__main
float left
width 75%
padding-right 6em
.resume__side
float left
width 25%
.other-info p > b
color #555
.info-item
margin-bottom .2em
font-weight 300
&:last-child
margin-bottom 0
.info-label
display inline-block
padding-right 0.63em
font-size 1.14em
min-width 2.19em
text-align center
i
color $accentColor
.xp-item
margin-bottom 4em
&:last-child
margin-bottom 0
.xp-job
font-size 1.14em
font-weight 600
line-height 1.25
span
small
font-weight 400
small
font-size 0.9em
.xp-date
font-size 0.8em
margin-top 0.3em
margin-bottom 1em
color $accentColor
.extra
margin-bottom 2em
&:last-child
margin-bottom 0
.extra-info
small
color #666
display inline-block
font-size 0.7em
.extra-details
.extra-details__progress
border-radius 6px
.extra-details
margin-top 0.5em
background-color $progressBackground
width 100%
height 5px
position relative
.extra-details__progress
background-color $accentColor
height 5px
position absolute
top 0
left 0
.lang-item
margin-bottom 2em
&:last-child
margin-bottom 0
.lang-label
width 8em
@media print
// Override Bootstrap body rule
body
min-width initial !important
.btn-print
display none
const handlePrint = () => window.print();
const btnPrint = document.getElementById('print');
console.log(btnPrint)
// (onClick='handlePrint()')
Also see: Tab Triggers