This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e30f16a
commit 1b27bc6
Showing
5 changed files
with
266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
/* BASE ------------------------------------------------- */ | ||
|
||
* { | ||
box-sizing: border-box; | ||
} | ||
body { | ||
color: #343434; | ||
font-size: 1rem; | ||
line-height: 1.5; | ||
text-align: center; | ||
margin: 0; | ||
} | ||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
p { | ||
margin-bottom: 1.25em; | ||
} | ||
|
||
/* HEADER & FOOTER ----------------------------------------- */ | ||
|
||
header { | ||
height: 450px; | ||
position: relative; | ||
clip-path: polygon(0 0, 100% 0, 100% 89%, 0% 100%); | ||
padding: 0.5em 1em; | ||
} | ||
header h1 { | ||
color: #fff; | ||
font-size: 4.8em; | ||
margin-bottom: 0; | ||
letter-spacing: 1px; | ||
} | ||
header p { | ||
color: #f8f295; | ||
font-size: 1.25em; | ||
margin: 0; | ||
} | ||
footer { | ||
padding: 3em 0 2em; | ||
background-color: #eee; | ||
margin-top: 3.5em; | ||
-webkit-clip-path: polygon(0 18%, 100% 0, 100% 100%, 0% 100%); | ||
} | ||
|
||
/* CONTAINERS ---------------------------------------------- */ | ||
|
||
.intro { | ||
margin: auto; | ||
padding: 1em 1em 3em; | ||
} | ||
.intro p { | ||
font-size: 1.2em; | ||
margin-top: 0.5em; | ||
} | ||
.main-content { | ||
display: grid; | ||
grid-gap: 20px; | ||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
padding: 0 10px; | ||
} | ||
|
||
/* COMPONENTS ----------------------------------------------- */ | ||
|
||
.main-nav { | ||
margin-top: 1em; | ||
} | ||
.main-nav li { | ||
display: inline-block; | ||
} | ||
.main-nav a { | ||
color: #fff; | ||
font-size: 0.85em; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
padding: 0.5em; | ||
transition: 0.3s; | ||
} | ||
.card { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 1.5em 1em; | ||
border: 1px solid #eee; | ||
border-radius: 0.25em; | ||
} | ||
.card h2 { | ||
font-size: 1.75em; | ||
line-height: 1.25; | ||
margin: 0.35em 0 0; | ||
} | ||
.img-featured { | ||
width: 165px; | ||
height: 165px; | ||
border: 4px solid #fff; | ||
border-radius: 50%; | ||
margin-top: -150px; | ||
position: relative; | ||
} | ||
.btn { | ||
color: #fff; | ||
font-weight: bold; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
padding: 0.75em 1.5em; | ||
border-radius: 0.35em; | ||
display: inline-block; | ||
} | ||
.btn-callout { | ||
font-size: 1.1em; | ||
} | ||
.btn-info { | ||
font-size: 0.85em; | ||
margin-top: auto; | ||
} | ||
.material-icons { | ||
color: rgba(39, 141, 164, 0.6); | ||
font-size: 2.15em; | ||
} | ||
|
||
|
||
/* MEDIA QUERIES ------------------------------------------------- */ | ||
|
||
@media (max-width: 575px) { | ||
header { | ||
height: 340px; | ||
} | ||
header h1 { | ||
font-size: 3.4em; | ||
} | ||
.img-featured { | ||
display: none; | ||
} | ||
} | ||
@media (min-width: 768px) { | ||
.main-content { | ||
width: 90%; | ||
margin: 0 auto; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
header { | ||
background-position: 0 0, 0 15%; | ||
} | ||
.intro { | ||
width: 45%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* VARIABLES --------------------------------------------------- */ | ||
|
||
:root { | ||
--color-primary: #278da4; | ||
--color-secondary: #b13c69; | ||
|
||
--color-bg: #3acec2; | ||
--color-bg-light: #009fe1; | ||
|
||
--gradient: var(--color-bg-light), | ||
var(--color-bg); | ||
|
||
--font-stack-primary: 'Raleway', sans-serif; | ||
--font-stack-secondary: 'Bree Serif', serif; | ||
|
||
--max-width: 1000px; | ||
--gutter: 12px; | ||
} | ||
|
||
/* BASE STYLES ------------------------------------------------- */ | ||
|
||
body { | ||
font-family: var(--font-stack-primary); | ||
} | ||
|
||
h1, | ||
h2 { | ||
font-family: var(--font-stack-secondary); | ||
} | ||
|
||
a, | ||
h2 { | ||
color: var(--color-primary); | ||
} | ||
|
||
header { | ||
background: linear-gradient(var(--gradient)), url('../img/bg.jpg') no-repeat; | ||
background-blend-mode: multiply; | ||
background-size: cover; | ||
} | ||
|
||
/* COMPONENT STYLES ----------------------------------------------- */ | ||
|
||
.main-nav li { | ||
margin: 0 var(--gutter); | ||
} | ||
|
||
.btn-callout { | ||
background-color: var(--color-secondary); | ||
} | ||
|
||
.btn-info { | ||
background-color: var(--color-primary); | ||
} | ||
|
||
/* MEDIA QUERIES -------------------------------------------------- */ | ||
|
||
@media (min-width: 768px) { | ||
.main-content { | ||
max-width: var(--max-width); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>CSS Variables</title> | ||
<link href="https://fonts.googleapis.com/css?family=Bree+Serif|Raleway" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" | ||
rel="stylesheet"> | ||
<link href="css/style.css" rel="stylesheet"> | ||
<link href="css/variables.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header> | ||
<ul class="main-nav"> | ||
<li><a href="experiences.html">About</a></li> | ||
<li><a href="experiences.html">Resources</a></li> | ||
<li><a href="experiences.html">Contact</a></li> | ||
</ul> | ||
<h1>Experience VR</h1> | ||
<p>A simple blog about virtual reality experiences</p> | ||
</header> | ||
|
||
<div class="intro"> | ||
<img class="img-featured" src="img/featured.jpg" alt="VR"> | ||
<p>Virtual Reality is becoming well known as a form of entertainment, but it's also finding its way into fields like architecture, industrial design, healthcare, and so much more!</p> | ||
<a class="btn btn-callout" href="https://teamtreehouse.com/vr">Start Your VR Journey</a> | ||
</div> | ||
|
||
<div class="main-content"> | ||
<div class="card"> | ||
<i class="material-icons">videocam</i> | ||
<h2>Entertainment</h2> | ||
<p>Hundreds of VR games and films have been released already. <a href="#">Oculus Story Studio</a> is one example of a company producing VR films.</p> | ||
<a class="btn btn-info" href="#">Learn more</a> | ||
</div> | ||
<div class="card"> | ||
<i class="material-icons">people</i> | ||
<h2>Social Networking</h2> | ||
<p>VR is finding its way into teleconferencing and social media. At the <a href="#">ethic conference in 2016</a>, Facebook demonstrated what it might look like in VR.</p> | ||
<a class="btn btn-info" href="#">Learn more</a> | ||
</div> | ||
<div class="card"> | ||
<i class="material-icons">school</i> | ||
<h2>Education</h2> | ||
<p>VR allows students to visit other places and other times. For instance, the BBC produced a <a href="#">360° video</a> that allows users to see the scale of dinosaurs in stereoscopic 3D.</p> | ||
<a class="btn btn-info" href="#">Learn more</a> | ||
</div> | ||
</div> | ||
|
||
<footer> | ||
<span>©2017 Experience VR, The Site</span> | ||
</footer> | ||
</body> | ||
</html> |