commit
02a6093cc5
@ -0,0 +1,121 @@
|
||||
:root {
|
||||
--text-color: #433e3f;
|
||||
--text-light: #585355;
|
||||
--main-bg: #F5F5F5;
|
||||
--cream-light: #F2EAD3;
|
||||
--cream: #DFD7BF;
|
||||
--brown: #3F2305;
|
||||
--brown-light: #52391e;
|
||||
--blue: #05213f;
|
||||
--red: #EF3E36;
|
||||
--green: #08670a;
|
||||
--green-light: #217623;
|
||||
--purple: #750973;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--main-bg);
|
||||
font-family: 'Josefin Sans', sans-serif;
|
||||
font-size: 20px;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 800px;
|
||||
margin: auto;
|
||||
margin-top: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 575px;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: 'Orelega One', serif;
|
||||
color: var(--brown);
|
||||
font-size: 64px;
|
||||
text-align: center;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Orelega One', serif;
|
||||
font-weight: normal;
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
color: var(--text-color);
|
||||
margin-top: 0rem;
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: 'Josefin Sans', sans-serif;
|
||||
padding: 0.5rem 0.7rem 0.2rem 0.7rem; /* spacing is so weird with this font */
|
||||
border: none;
|
||||
border: 3px solid var(--brown);
|
||||
color: var(--brown);
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
button:hover {
|
||||
background-color: var(--brown);
|
||||
cursor: pointer;
|
||||
color: var(--main-bg)
|
||||
}
|
||||
|
||||
.result {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
.result p {
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
#coffee-count {
|
||||
font-family: 'Orelega One', serif;
|
||||
color: var(--brown);
|
||||
font-size: 96px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
background-color: white;
|
||||
border-radius: 25px;
|
||||
width: 240px;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.cost-display {
|
||||
color: var(--green);
|
||||
}
|
||||
|
||||
.subscriptions {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.subscription-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
border-bottom: 2px solid var(--text-light);
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
.subscription-header p {
|
||||
margin: 3px 0px;
|
||||
}
|
||||
|
||||
.sub-item-container:nth-child(odd) {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.sub-item {
|
||||
width: 350px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 18px;
|
||||
margin: auto;
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;1,300&family=Orelega+One&display=swap');
|
||||
</style>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Cost in Coffee</title>
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>Cost in Coffee</h1>
|
||||
<h2>See the true cost of your subscriptions in terms of cups of coffee a day.</h2>
|
||||
</div>
|
||||
<div class="result">
|
||||
<p>Your subscriptions are equivalent to</p>
|
||||
<div id="coffee-count">5.21</div>
|
||||
<p>cups of coffee a day.</p>
|
||||
<p>That's <span class="cost-display">$11.54</span> of coffee.</p>
|
||||
</div>
|
||||
<div class="subscriptions">
|
||||
<div class="subscription-header">
|
||||
<p>Your Subscriptions</p>
|
||||
<button type="button">Add</button>
|
||||
</div>
|
||||
<div class="sub-item-container">
|
||||
<div class="sub-item">
|
||||
<p>LinkedIn</p>
|
||||
<p>$40.00</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-item-container">
|
||||
<div class="sub-item">
|
||||
<p>Youtube Premium</p>
|
||||
<p>$12.00</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-item-container">
|
||||
<div class="sub-item">
|
||||
<p>Netflix</p>
|
||||
<p>$15.00</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-item-container">
|
||||
<div class="sub-item">
|
||||
<p>Crunchyroll</p>
|
||||
<p>$10.00</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <p>Start adding subscriptions and see the costs rise.</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in new issue