Skip to content

Feat: first-pass index.html #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 15, 2022
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
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
}
},
"extensions": [
"eamodio.gitlens",
"mhutchie.git-graph"
"eamodio.gitlens",
"mhutchie.git-graph",
"redhat.vscode-xml"
]
}
Binary file added apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/compiler_brandmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions assets/compiler_logo_stacked.svg
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 favicon.ico
Binary file not shown.
Binary file added fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Bold.ttf
Binary file not shown.
Binary file added fonts/SourceCodePro-Regular.ttf
Binary file not shown.
75 changes: 75 additions & 0 deletions icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<title>Compiler</title>
<meta charset="UTF-8">
<meta name="description"
content="We build open-source, human-centered, secure, agile solutions to support the delivery of government services that increase equity of opportunity.">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

<link type="text/css" rel="stylesheet" href="/styles/base.css">
</head>

<body>
<header>
<img class="logo" src="/assets/compiler_logo_stacked.svg" alt="Compiler logo">
</header>

<main>
<span class="main-title">
<a href="mailto:[email protected]">[email protected]</a>
</span>
<p>we build software for the government</p>
</main>

<footer>
<img class="brandmark" src="/assets/compiler_brandmark.svg" alt="Compiler brandmark">
</footer>
</body>

</html>
114 changes: 114 additions & 0 deletions styles/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
@import url("./fonts.css");

:root {
--purple: #663190;
--green: #88B440;
--teal: #01B4CB;
--navy: #223061;
--off-black: #262626;
--grey: #EDEDED;
--white: #FFFFFF;
}

body {
display: flex;
flex-direction: column;
padding: 20px;
background-color: var(--off-black);
}

p, a {
color: var(--white);
font-family: 'Roboto', Arial, Helvetica, sans-serif;
font-weight: normal;
font-size: 1.5rem;
}

header {
margin-bottom: 50px;
margin-left: -10px;
}

.logo {
width: 20rem;
}

main {
margin-top: 15px;
height: calc(100vh - 380px);
}

.main-title * {
font-family: 'Source Code Pro Bold', 'Courier New', Courier, monospace;
font-size: 2rem;
}

a {
text-decoration: underline;
transition: 250ms;
}

a:hover {
color: var(--green);
}

footer {
display: flex;
justify-content: flex-end;
}

.brandmark {
width: 20rem;
margin-right: -15px;
}

/***** Media Queries *****/

/* - with default font 16px, 48rem = 768px */
@media (max-width: 48rem) and (max-height: 48rem) {
header {
margin-left: -5px;
}

.logo {
width: 15rem;
}

p, a {
font-size: 1.25rem;
}

.main-title * {
font-size: 1.75rem;
}

main {
height: calc(70vh - 110px);
}

.brandmark {
width: 15rem;
}
}

@media (max-height: 30rem) {
main {
height: calc(40vh - 90px);
}
}

@media (max-height: 40rem) {
main {
height: calc(55vh - 110px);
}
}

@media (max-height: 25rem) {
header {
margin-bottom: 10px;
}

main {
height: calc(30vh);
}
}
17 changes: 17 additions & 0 deletions styles/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@font-face {
font-family: 'Roboto';
src: url("/fonts/Roboto-Regular.ttf");
font-display: swap;
}

@font-face {
font-family: 'Source Code Pro Bold';
src: url("/fonts/SourceCodePro-Bold.ttf");
font-display: swap;
}

@font-face {
font-family: 'Source Code Pro Regular';
src: url("/fonts/SourceCodePro-Regular.ttf");
font-display: swap;
}