🏕💾 Checkpoint

./public/style.css:617503/3841
./public/index.html:617503/2728
This commit is contained in:
Glitch (hello-express) committed 2020-11-05 18:07:42 +00:00
1 parent 5312375192
commit 627f66d6f8
2 files changed
+80 -36

No files matched your search

+12 -12
View File
@@ -15,21 +15,21 @@
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<div class="content"> <div class="content">
<h1 class="title">Hey node!</h1> <span class="title">Hey, Node!</span>
</div>
<img src="/illustration.svg" class="illustration" />
</div>
<div class="remix">
<div>
<button class="btn--remix">
<img <img
src="https://cdn.glitch.com/a9975ea6-8949-4bab-addb-8a95021dc2da%2FLogo_Color.svg?v=1602781328576" src="illustration.svg"
class="illustration"
alt="Editor illustration"
/> />
Remix on Glitch </div>
</button>
</div> </div>
</div> <nav class="navigation">
<a href="https://glitch.com/edit/#!/remix/glitch-hello-website" class="btn--remix">
<img src="https://cdn.glitch.com/a9975ea6-8949-4bab-addb-8a95021dc2da%2FLogo_Color.svg?v=1602781328576" />
Remix on Glitch
</a>
</nav>
<!-- include the Glitch button to show what the webpage is about and <!-- include the Glitch button to show what the webpage is about and
to make it easier for folks to view source and remix --> to make it easier for folks to view source and remix -->
+68 -24
View File
@@ -1,7 +1,36 @@
/* Our CSS values that we'll use in the rest of our styling */ /* Our default values set for mobile */
:root { :root {
--main-bg-color: #BDC9FF; --color-bg: #FFFFA0;
--main-text-color: #2800FF; --color-text-main: #2800FF;
--wrapper-height: 87vh;
--image-max-width: 300px;
--image-margin: 3rem;
}
/* Tablet portrait */
@media (min-width: 768px) {
:root {
--wrapper-height: 87vh;
--image-max-width: 400px;
--image-margin: 5rem;
}
}
/* Tablet Landscape */
@media (min-width: 1024px) {
:root {
--wrapper-height: 87vh;
--image-max-width: 500px;
}
}
/* Desktop */
@media (min-width: 1280px) {
:root {
--wrapper-height: 87vh;
--image-max-width: 500px;
}
} }
@font-face { @font-face {
@@ -19,28 +48,24 @@
body { body {
font-family: HK Grotesk; font-family: HK Grotesk;
background-color: var(--main-bg-color); background-color: var(--color-bg);
}
/* Reset margin and padding on our titles */
h1 {
margin: 0;
padding: 0;
} }
.title { .title {
color: var(--main-text-color); color: var(--color-text-main);
font-family: HK Grotesk; font-family: HK Grotesk;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: bold;
font-size: 164px; font-size: 120px;
line-height: 105%; line-height: 105%;
} }
.wrapper { .wrapper {
min-height: 95vh; min-height: var(--wrapper-height);
display: grid; display: grid;
place-items: center; place-items: center;
margin-left: 2rem;
margin-top: 3rem;
} }
.content { .content {
@@ -48,18 +73,21 @@ h1 {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 1rem; }
/* Navigation grid */
.navigation {
display: flex;
justify-content: flex-end;
} }
/* Our remix on glitch button + grid for other actions */ /* Our remix on glitch button + grid for other actions */
.remix {
display: grid;
place-items: end;
}
.btn--remix { .btn--remix {
font-family: HK Grotesk; font-family: HK Grotesk;
padding: 0.5rem 0.75rem; padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.75rem;
padding-bottom: 0.75rem;
font-size: 1.1rem; font-size: 1.1rem;
line-height: 1rem; line-height: 1rem;
font-weight: 500; font-weight: 500;
@@ -72,10 +100,26 @@ h1 {
border-radius: 4px; border-radius: 4px;
} }
.btn--remix img { .btn--remix:hover {
margin-right: 0.75rem; background-color: #D0FFF1;
} }
.illustration { .btn--remix img {
max-width: 60%; margin-right: 0.5rem;
} }
.btn--remix {
margin-right: 1rem;
}
/* Very light scaling for our illustration */
.illustration {
max-width: 100%;
max-height: var(--image-max-width);
margin-top: var(--image-margin);
}
/*
Add hover state to the buttons!! oops
*/