Skip to content

Instantly share code, notes, and snippets.

@kezzbracey
Last active January 3, 2017 09:07
Show Gist options
  • Save kezzbracey/2670fbf96420582b2ee7c460c7717dbd to your computer and use it in GitHub Desktop.
Save kezzbracey/2670fbf96420582b2ee7c460c7717dbd to your computer and use it in GitHub Desktop.
Starter template code for Craft CMS personal page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://fonts.googleapis.com/css?family=PT+Serif|Varela" rel="stylesheet">
<style>
:root {
--col_default_text: #8f8f8f;
--col_headline_text: #333;
--col_links: #d97a23;
--col_decorative: #d5d5d5;
}
body {
margin: 0;
}
h1, h2 {
font-family: Varela, sans-serif;
line-height: 1.33em;
text-align: center;
color: var(--col_headline_text, #333);
}
h1 {
font-size: 7rem;
margin: 0;
}
h2 {
font-size: 4rem;
}
a {
color: var(--col_links, #d97a23);
}
.inner {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
height: auto;
width: 100%;
max-width: 100rem;
min-height: 100vh;
margin-right: auto;
margin-left: auto;
padding-right: 6rem;
padding-left: 6rem;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.topandbottom {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
color: var(--col_default_text, #8f8f8f);
padding: 6rem 0;
}
.middle {
width: 100%;
}
.outer {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.left {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
background-image: -webkit-linear-gradient(45deg, var(--col_decorative, #d5d5d5), var(--col_decorative, #d5d5d5) 50%, transparent 0, transparent);
background-image: linear-gradient(45deg, var(--col_decorative, #d5d5d5), var(--col_decorative, #d5d5d5) 50%, transparent 0, transparent);
}
.right {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
background-image: -webkit-linear-gradient(135deg, var(--col_decorative, #d5d5d5), var(--col_decorative, #d5d5d5) 50%, transparent 0, transparent);
background-image: linear-gradient(315deg, var(--col_decorative, #d5d5d5), var(--col_decorative, #d5d5d5) 50%, transparent 0, transparent);
}
.label {
padding-right: 2rem;
padding-left: 2rem;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
font-family: "PT Serif", serif;
font-size: 1.4em;
font-style: normal;
}
.links {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
font-family: "PT Serif", serif;
font-size: 1em;
line-height: 1.618em;
}
.make {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.make_links {
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
}
.edged {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-right: 2rem;
padding-left: 0rem;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
border-right: 5px solid var(--col_decorative, #d5d5d5);
border-left: 5px solid var(--col_decorative, #d5d5d5);
}
@media(max-width: 768px){
h1 {
font-size: 16vw;
}
h2 {
font-size: 10vw;
}
.inner {
padding-right: 10%;
padding-left: 10%;
}
.topandbottom {
font-size: 3vw;
padding: 10% 0;
}
}
</style>
</head>
<body>
<div class="outer">
<div class="left"></div>
<div class="inner">
<div class="topandbottom">
<div class="edged">
<div class="label">
<div>Connect with me</div>
</div>
<div class="links">
<!-- Connect block -->
<div>
<!-- Connect link label -->:
<a target="_blank" href="<!-- Connect link href -->"><!-- Connect link text --></a>
</div>
<!-- / Connect block -->
</div>
</div>
</div>
<div class="middle">
<h1><!-- Main headline --></h1>
<h2><!-- Sub headline --></h2>
</div>
<div class="topandbottom">
<div class="edged">
<div class="label">
<div>Check out what I make</div>
</div>
<div class="links">
<!-- Make block -->
<div>
<!-- Make link label -->:
<a href="<!-- Make link href -->" target="_blank"><!-- Make link text --></a>
</div>
<!-- / Make block -->
</div>
</div>
</div>
</div>
<div class="right"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment