Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Two-Truths-One-Lie/assets/image-casa-cristal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Two-Truths-One-Lie/assets/image-lago-retiro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 52 additions & 17 deletions Two-Truths-One-Lie/index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Our Grid Project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>Two Truths, One Lie</h1>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Our Grid Project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap" rel="stylesheet">
</head>

<body>

<header>
<h1>Two Truths, One Lie</h1>
<p>Can you guess which statement is false?</p>
</header>
<main>
<!-- how will you mark up your media objects -->

<main class="container">

<section class="content">
<div class="content-header">
<img src="./assets/image-casa-cristal.jpg" alt="image-casa-cristal">
<h2 class="content-header-title">Abel Cañas</h2>
</div>
<div class="content-body">
<ol>
<li>I have successfully climbed Mount Everest in Nepal during spring.</li>
<li>I speak three languages fluently: Spanish, English, and Japanese.</li>
<li>I have a pet iguana named Spike at home.</li>
</ol>
</div>
</section>

<section class="content">
<div class="content-header">
<img class="content-img" src="./assets/image-lago-retiro.jpg" alt="image-lago-retiro">
<h2 class="content-header-title">Jonathan Estor</h2>
</div>
<div class="content-body">
<ol>
<li>I have never been on an airplane in my entire life yet.</li>
<li>I can play the piano by ear quite beautifully.</li>
<li>I once met a famous movie star at a Hollywood premiere event.</li>
</ol>
</div>
</section>

</main>

<footer>
<h3>By YOUR NAMES HERE</h3>
<h3>By @abelstor</h3>
</footer>
</body>
</body>

</html>
100 changes: 99 additions & 1 deletion Two-Truths-One-Lie/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,104 @@
* take a screenshot at laptop and Moto G4 device sizes in Devtools
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

:root {
--primary-color: #82977a;
--secondary-color: #d9ead3;
--text-color: #333333;
--text-font: "Poppins", sans-serif;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font: 100% "Poppins", sans-serif;
background-color: var(--primary-color);
width: 100%;
max-width: 100%;
margin: 0 auto;
}

h1,
h2,
h3,
p,
a,
li {
margin: 0;
font-family: var(--text-font);
color: var(--text-color);
}

img {
width: 7.25rem;
height: 6.25rem;
}

header,
footer {
text-align: center;
padding: 3rem 0 1.5rem;
}

.container {
padding: 0 1.5rem 0;
}

.content {
background-color: var(--secondary-color);
margin: 1rem 0 2rem;
padding: 1.5rem;
}

.content-header {
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
}

.content-header-title {
font-weight: 500;
font-size: 1.5rem;
}

.content-body {
padding: 0 1rem;
font-size: 1.15rem;
line-height: 1.5rem;
text-align: left;
}

.content-body li {
margin-bottom: 0.8rem;
font-size: 0.95rem;
line-height: 1.3rem;
}

@media screen and (min-width: 768px) {
.container {
padding: 0 3rem 0;
display: flex;
align-items: center;
gap: 2rem;
}

.content {
margin: 2rem auto;
width: 26.25rem;
height: 20rem;
}

footer {
position: absolute;
width: 100%;
bottom: 0;
padding-bottom: 2rem;
}
}