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>
<!-- 網站標題 -->
<header>
<!-- 背景資訊 -->
<nav>
<span class="nav-title">
Margot YiMiao Liu
</span>
<a hraf="#" class="nav-link">
<i class="fas fa-print"></i>
</a>
</nav>
</header>
</html>
<!-- 網站主內容 -->
<main>
<section class="personal-info">
<div class="avatar">
<img class="avatar-img" src="https://scontent.ftpe12-2.fna.fbcdn.net/v/t1.0-9/90265831_10214410856416571_8793663805885251584_n.jpg?_nc_cat=109&_nc_sid=85a577&_nc_ohc=X8jnRIGnB00AX-OnYng&_nc_ht=scontent.ftpe12-2.fna&oh=43d0cda57620e1db6b90f76e12cb0b4c&oe=5EE820BF" alt="">
</div>
<!-- 人物介紹區 -->
<h1 class="name">
Margot YiMiao Liu
</h1>
<div class="social-media">
<a class="social-media-link" href="https://www.facebook.com/taeko.liu" target="_blank">
<i class="fab fa-facebook fa-lg"></i>
</a>
<a class="social-media-link" href="https://www.instagram.com/taekoxcheer/" target="_blank">
<i class="fab fa-instagram fa-lg"></i>
</a>
<a class="social-media-link" href="https://www.linkedin.com/in/margot-liu-801483a0/" target="_blank">
<i class="fab fa-linkedin fa-lg"></i>
</a>
<a class="social-media-link" href="https://www.behance.net/taekoxcheefe5f" target="_blank">
<i class="fab fa-behance-square fa-lg"></i>
</a>
<a class="social-media-link" href="mailto:taekoxcheer@gmail.com" target="_blank">
<i class="far fa-envelope fa-lg"></i>
</a>
<a class="social-media-link" href="https://margotslife.style/" target="_blank">
<i class="fab fa-wordpress fa-lg"></i>
</a>
</div>
<div class="title">
Web designer | 網頁設計師 | 台北台灣
</div>
<p class="description">
我是 Margot YiMiao Liu,是在美商擔任網頁設計師的台灣人。以前曾在台灣國營企業擔任駐點設計師與日本擔任平面與網頁設計師。目前主要負責美商的遠距日本團隊中,擔任網頁設計師的職務。
</p>
</section>
<section class="skill-section">
<!-- 專業技能區、區塊標題 -->
<h2>專業技能</h2>
<div class="skills">
<div class="skill">
<!-- 專業技能區、細項標題 -->
<h3 class="skill-name">程式設計入門</h3>
<p class="skill-description">具備網頁設計的能力,能夠製作使用者介面與線框圖繪製,熟悉 HTML、CSS 和 JavaScript,並對於基礎的演算法有一定的掌握力。
</p>
</div>
<div class="skill">
<h3 class="skill-name">掌握網頁開發</h3>
<p class="skill-description">能夠打造兼具前後端的 Web App 產品。從網頁切版、RWD、操作 DOM 事件、使用 AJAX 與串接 API 等前端能力,到使用 Node.js 與 MongoDB 建立後端功能,能夠深入瞭解網路應用程式運作的每個環節,並親手打造自己的產品。
</p>
</div>
<div class="skill">
<h3 class="skill-name">軟體工程師實力</h3>
<p class="skill-description">前端部分能夠透過前端框架建立 SPA 頁面,後端則能夠建置完整的登入系統、使用 SQL 與資料庫設計、實作購物車與金流串接。
</p>
</div>
</div>
</section>
<section class="experience-section">
<h2 class="job-experience">工作經歷</h2>
<div class="experience">
<div class="experien-item">
<h3 class="job-title">網頁設計</h3>
<span class="company"><i class="far fa-building"></i>indeed</span>
<span class="duration"><i class="far fa-calendar-alt"></i> 2017 年 12 月 - 至今</span>
<p>負責CIS與平面設計並印刷發包、餐點商業攝影、Facebook社群經營文案撰寫、企劃行銷活動、外送電商管理、廠商業務接洽、顧客應對與問題處理以及廚房人員教導,並在轉型期間設計菜單,負責餐點研發與擺盤設計。
</p>
</div>
<hr>
<div class="experien-item">
<h3 class="job-title">網頁設計</h3>
<span class="company"><i class="far fa-building"></i>Chatwork Inc., Taiwan</span>
<span class="duration"><i class="far fa-calendar-alt"></i> 2016 年 7 月 - 2017 年 6 月</span>
<p>負責CIS與平面設計並印刷發包、餐點商業攝影、Facebook社群經營文案撰寫、企劃行銷活動、外送電商管理、廠商業務接洽、顧客應對與問題處理以及廚房人員教導,並在轉型期間設計菜單,負責餐點研發與擺盤設計。
</p>
</div>
<hr>
<div class="experien-item">
<h3 class="job-title">平面設計</h3>
<span class="company"><i class="far fa-building"></i>Mori Kosan Co., Itd, Japan
</span>
<span class="duration"><i class="far fa-calendar-alt"></i> 2015 年 7 月 - 2016 年 6 月</span>
<p>負責CIS與平面設計並印刷發包、餐點商業攝影、Facebook社群經營文案撰寫、企劃行銷活動、外送電商管理、廠商業務接洽、顧客應對與問題處理以及廚房人員教導,並在轉型期間設計菜單,負責餐點研發與擺盤設計。
</p>
</div>
</div>
</section>
</main>
<body>
<!-- 網站內容 -->
</body>
html,
body {
font-family: "Lato", "Noto Sans TC", sans-serif;
margin: 0px;
padging: 0px;
color: #333333;
background-color: #f6f7f8;
}
/*header*/
header {
height: 60px;
color: #666666;
box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}
nav {
max-width: 820px;
margin: 0 auto;
height: 100%;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-title {
font-weight: bold;
letter-spacing: 1px;
}
.nav-link {
color: #666666;
}
/* Main */
main {
max-width: 780px;
margin: 0 auto;
padding: 40px 20px;
}
h2 {
font-size: 32px;
margin: 24px 0 8px;
}
h3 {
font-size: 21px;
margin: 0 0 8px;
font-weight: 500;
/* normal: 400
medium: 500
bold: 600*/
}
section {
margin-bottom: 48px;
}
p {
color: #666666;
}
/* personal info */
.avatar {
text-align: center;
}
.avatar-img {
max-height: 150px;
max-width: 150px;
border-radius: 50%;
box-shadow: 5px 8px 8px 0 rgba(0, 0, 0, 0.4);
}
.name {
text-align: center;
font-size: 32px;
margin: 20px 0;
/* margin-top: 20px
margin-bottom: 20px */
}
/* social-media*/
.social-media {
text-align: center;
margin-bottom: 20px;
}
.social-media-link {
color: #999999;
text-decoration: none;
/* margin-right: 5px;
margin-left: 5px; */
margin: 0 5px;
}
.social-media-link:hover {
color: #ec256d;
}
.title {
margin-bottom: 20px;
text-align: center;
font-size: 14px;
letter-spacing: 2px;
color: #ec256d;
}
/* skill-section */
.skills {
/* outline: 2px solid tomato; */
display: flex;
justify-content: space-between;
}
.skill {
/* outline: 2px solid steelblue; */
width: 30%;
/* box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.4); */
}
.skill-name {
border-top: 1px solid #999999;
padding-top: 16px;
}
/* experience section */
hr {
border: 0;
height: 1px;
background: #cccccc;
margin: 20px 0;
}
.company,
.duration {
color: #666666;
font-size: 12px;
margin-right: 20px;
}
.fa-building,
fa-calendar-alt {
margin-right: 5px;
}
Also see: Tab Triggers