forked from ProjectEvergreen/greenwood-demo-adapter-vercel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added some basic styling * refactor Card component to use Declarative Shadow DOM * work on overall styling, responsiveness & some a11y * fill in demo explanations and share CSS color variables --------- Co-authored-by: aholtzman <[email protected]>
- Loading branch information
1 parent
f91abde
commit 78a56cd
Showing
4 changed files
with
234 additions
and
64 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
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
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
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,140 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" prefix="og:http://ogp.me/ns#"> | ||
|
||
<head> | ||
<title>Greenwood Demo - Vercel Adapter</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="shortcut icon" href="/favicon.ico"/> | ||
<link rel="icon" href="/favicon.ico"/> | ||
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro"> | ||
<style> | ||
:root, :host { | ||
--color-white: white; | ||
--color-accent: #3c384d; | ||
} | ||
|
||
body { | ||
padding: 0; | ||
margin: 0; | ||
border: 0; | ||
font-family: 'Source Sans Pro', serif; | ||
line-height: 1.4; | ||
background: #fbfbfb; | ||
} | ||
|
||
header, footer { | ||
color: var(--color-white); | ||
background-color: rgb(25, 42, 39); | ||
text-align: center; | ||
height: 50px; | ||
padding: 15px 0 0; | ||
} | ||
|
||
footer a { | ||
margin: 7px 0 0 0; | ||
text-decoration: none; | ||
} | ||
|
||
header a { | ||
color: var(--color-white); | ||
} | ||
|
||
a { | ||
color: var(--color-accent); | ||
} | ||
|
||
p { | ||
margin: 20px auto; | ||
width: 50%; | ||
} | ||
|
||
header nav ul { | ||
margin: 0; | ||
padding: 0; | ||
text-align: center; | ||
font-size: 1.5rem; | ||
} | ||
|
||
header nav ul li { | ||
display: inline; | ||
} | ||
|
||
main { | ||
text-align: center; | ||
min-height: 100vh; | ||
} | ||
|
||
h2 { | ||
text-align: center; | ||
text-decoration: underline; | ||
} | ||
|
||
button { | ||
background: var(--color-accent); | ||
color: var(--color-white); | ||
padding: 1rem 2rem; | ||
border: 0; | ||
font-size: 1rem; | ||
border-radius: 5px; | ||
} | ||
|
||
input { | ||
padding: 1rem; | ||
margin: 0 10px; | ||
font-size: 16px; | ||
} | ||
|
||
label { | ||
font-size: 1.35rem; | ||
} | ||
|
||
article { | ||
margin: 4rem 0; | ||
} | ||
|
||
.artists-cards-contianer { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1rem; | ||
justify-content: center; | ||
align-items: baseline; | ||
margin: 2rem 0; | ||
} | ||
|
||
@media(max-width: 768px) { | ||
button { | ||
margin: 10px; | ||
} | ||
} | ||
</style> | ||
|
||
<script type="module" src="./components/card.js"></script> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<nav> | ||
<ul> | ||
<li><a href="/">Home</a> | </li> | ||
<li><a href="/artists/">Artists</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<main> | ||
<h1>Demos</h1> | ||
<p>This is a | ||
<a href="https://github.com/ProjectEvergreen/greenwood-demo-adapter-vercel" title="Link to demonstration repo">Greenwood demonstration repo</a> | ||
showcasing various features deployed to and running on Vercel serverless functions. | ||
</p> | ||
<page-outlet></page-outlet> | ||
</main> | ||
|
||
<footer> | ||
<a href="https://www.greenwoodjs.io/">Greenwood</a> | ||
</footer> | ||
|
||
</body> | ||
|
||
</html> |