commit 7dfe1a2f0916af584c6f3d8ba69e883c8e183e7c Author: Nathan Chapman Date: Sun Sep 9 09:58:47 2018 -0700 Initial commit diff --git a/fonts/Eczar/eczar-bold.woff b/fonts/Eczar/eczar-bold.woff new file mode 100644 index 0000000..0e3a0b1 Binary files /dev/null and b/fonts/Eczar/eczar-bold.woff differ diff --git a/fonts/Eczar/eczar-bold.woff2 b/fonts/Eczar/eczar-bold.woff2 new file mode 100644 index 0000000..d1e7c7b Binary files /dev/null and b/fonts/Eczar/eczar-bold.woff2 differ diff --git a/fonts/Eczar/eczar-extrabold.ttf b/fonts/Eczar/eczar-extrabold.ttf new file mode 100644 index 0000000..b8b0b21 Binary files /dev/null and b/fonts/Eczar/eczar-extrabold.ttf differ diff --git a/fonts/Eczar/eczar-extrabold.woff b/fonts/Eczar/eczar-extrabold.woff new file mode 100644 index 0000000..063bb3d Binary files /dev/null and b/fonts/Eczar/eczar-extrabold.woff differ diff --git a/fonts/Eczar/eczar-extrabold.woff2 b/fonts/Eczar/eczar-extrabold.woff2 new file mode 100644 index 0000000..9f6f25d Binary files /dev/null and b/fonts/Eczar/eczar-extrabold.woff2 differ diff --git a/fonts/Eczar/eczar-medium.woff b/fonts/Eczar/eczar-medium.woff new file mode 100644 index 0000000..658c638 Binary files /dev/null and b/fonts/Eczar/eczar-medium.woff differ diff --git a/fonts/Eczar/eczar-medium.woff2 b/fonts/Eczar/eczar-medium.woff2 new file mode 100644 index 0000000..6b374c4 Binary files /dev/null and b/fonts/Eczar/eczar-medium.woff2 differ diff --git a/fonts/Eczar/eczar-regular.woff b/fonts/Eczar/eczar-regular.woff new file mode 100644 index 0000000..fdb9b8f Binary files /dev/null and b/fonts/Eczar/eczar-regular.woff differ diff --git a/fonts/Eczar/eczar-regular.woff2 b/fonts/Eczar/eczar-regular.woff2 new file mode 100644 index 0000000..0504673 Binary files /dev/null and b/fonts/Eczar/eczar-regular.woff2 differ diff --git a/fonts/Gentium_Basic/genbasbold.woff b/fonts/Gentium_Basic/genbasbold.woff new file mode 100644 index 0000000..cdcac64 Binary files /dev/null and b/fonts/Gentium_Basic/genbasbold.woff differ diff --git a/fonts/Gentium_Basic/genbasbold.woff2 b/fonts/Gentium_Basic/genbasbold.woff2 new file mode 100644 index 0000000..708ee91 Binary files /dev/null and b/fonts/Gentium_Basic/genbasbold.woff2 differ diff --git a/fonts/Gentium_Basic/genbasbolditalic.woff b/fonts/Gentium_Basic/genbasbolditalic.woff new file mode 100644 index 0000000..413809f Binary files /dev/null and b/fonts/Gentium_Basic/genbasbolditalic.woff differ diff --git a/fonts/Gentium_Basic/genbasbolditalic.woff2 b/fonts/Gentium_Basic/genbasbolditalic.woff2 new file mode 100644 index 0000000..2ff905b Binary files /dev/null and b/fonts/Gentium_Basic/genbasbolditalic.woff2 differ diff --git a/fonts/Gentium_Basic/genbasitalic.ttf b/fonts/Gentium_Basic/genbasitalic.ttf new file mode 100644 index 0000000..cb7a28f Binary files /dev/null and b/fonts/Gentium_Basic/genbasitalic.ttf differ diff --git a/fonts/Gentium_Basic/genbasitalic.woff b/fonts/Gentium_Basic/genbasitalic.woff new file mode 100644 index 0000000..14caac5 Binary files /dev/null and b/fonts/Gentium_Basic/genbasitalic.woff differ diff --git a/fonts/Gentium_Basic/genbasitalic.woff2 b/fonts/Gentium_Basic/genbasitalic.woff2 new file mode 100644 index 0000000..4c4e664 Binary files /dev/null and b/fonts/Gentium_Basic/genbasitalic.woff2 differ diff --git a/fonts/Gentium_Basic/genbasregular.woff b/fonts/Gentium_Basic/genbasregular.woff new file mode 100644 index 0000000..a351f15 Binary files /dev/null and b/fonts/Gentium_Basic/genbasregular.woff differ diff --git a/fonts/Gentium_Basic/genbasregular.woff2 b/fonts/Gentium_Basic/genbasregular.woff2 new file mode 100644 index 0000000..533bdc1 Binary files /dev/null and b/fonts/Gentium_Basic/genbasregular.woff2 differ diff --git a/images/bg.jpg b/images/bg.jpg new file mode 100644 index 0000000..5a90e5d Binary files /dev/null and b/images/bg.jpg differ diff --git a/images/coffee.png b/images/coffee.png new file mode 100644 index 0000000..91dbfdf Binary files /dev/null and b/images/coffee.png differ diff --git a/images/coffee_white.png b/images/coffee_white.png new file mode 100644 index 0000000..090f5e9 Binary files /dev/null and b/images/coffee_white.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..67e676a --- /dev/null +++ b/index.html @@ -0,0 +1,206 @@ + + + + Better Living Through Coffee + + + + + + + + + + + + + + + +
+ + +
+ + + +
+
+
+

Drinks Menu

+ +

Fair-trade, organic, locally roasted drip coffee and espresso;
+ organic herbal teas, smoothies, and specialty drinks.

+ + +
+ +
+
+

Drip Coffee

+ + +

Nicaragua - Mild Roast
+ Central American. Medium body. Good acidity.

+ +

Dante’s Tornado - Medium Roast (Full City)
+ Good body. Rounded flavor. Medium acidity.

+ +

Sumatra - Dark Roast
+ Low acid. Heavy body. Like a Vienna roast.

+ +

Ethiopa Sidamo - Dark Roast
+ Earthy, fruity, wild and complex. Good body.

+ +

Loop d’ Loop - Dark Roast
+ Smooth. Well-rounded. Good body. Chocolatey.

+ +

Decaf French - Dark Roast
+ Smooth, smokey.

+ +

Pantomime - Very Dark French Roast
+ Smokey, caramel flavors.

+
+ +
+

Espresso

+ + +

Espresso
+ Double ristretto.

+ +

Macchiato
+ Espresso marked with foam.

+ +

Con Panna
+ Espresso marked with whipped cream.

+ +

Americano
+ Espresso in hot water.

+ +

Cappuccino
+ Dry foam over espresso.

+ +

Caffè Latte
+ Microfoam over espresso.

+ +

Caffè Breve
+ Dry foam.

+ +

Flavored Latte
+ Vanilla, hazelnut, or caramel.

+ +

Caffè Vienois
+ Vanilla, cinnamon.

+ +

Caffè Mocha
+ Organic cocoa.

+ +

Caffè Arancia
+ Organic cocoa, orange peel, vanilla.

+ +

Caffè Chetzemocha
+ Cocoa, spices, chipotle peppers.

+ +

Salted Caramel Latte
+ House-made caramel.

+
+
+
+ +
+
+

Food Menu

+ +

Freshly baked, delicious, nutrient-dense:
+ pastries, soups, quiches, and other treats made with organic ingredients.

+
+ +
+
+ +

Sausage Pepper Quiche
+ Peppers, onions & raw chedder.

+ +

Spinach Quiche
+ Spinach & raw cheddar.

+ +

Tamale Pie
+ Local grass-fed beef.

+ +

Chicken Pot Pie
+ Einkorn crust, vegetables.

+ +

Salmon Quiche
+ Wild salmon, capers.

+
+ +
+

Green Salad
+ Baby greens, olives, dressing.

+ +

Apple Walnut Salad
+ Amish cheddar, olives, dressing.

+ +

Salmon Salad
+ Wild salmon, olives, dressing.

+ +

Lentil Soup
+ Vegan.

+ +

Salmon Chowder
+ Creamy. Wild salmon.

+ +

Yogurt Parfait
+ Yogurt, walnuts, berries, honey.

+
+
+

All food items are made on site using local, organic produce when available, locally raised grass-fed beef, pastured chickens and organic eggs, and wild Alaskan line-caught salmon.

+
+
+ + + + + + \ No newline at end of file diff --git a/scripts/index.js b/scripts/index.js new file mode 100644 index 0000000..788e2c2 --- /dev/null +++ b/scripts/index.js @@ -0,0 +1,23 @@ +(function () { + + // Defer image loading till last. + function init() { + var imgDefer = document.getElementsByTagName('img'); + for (var i = 0; i < imgDefer.length; i++) { + if (imgDefer[i].getAttribute('data-src')) { + imgDefer[i].setAttribute('src', imgDefer[i].getAttribute('data-src')); + } + } + } + + // When the DOM is ready it'll execute fn(). + function ready(fn) { + if (document.readyState != 'loading'){ + fn(); + } else { + document.addEventListener('DOMContentLoaded', fn); + } + } + + window.onload = init; +})(); diff --git a/styles/base.css b/styles/base.css new file mode 100644 index 0000000..15ae4ac --- /dev/null +++ b/styles/base.css @@ -0,0 +1,141 @@ +@import url("normalize.css"); +@import url("fonts.css"); + + +html { + font-size: 1.25em; +} + +body { + background-color: white; + font-family: 'gentium_basic', serif; + font-weight: 400; + line-height: 1.45; + color: #333; + + padding: 0; + max-width: 100%; + margin: 0 auto; +} + +p { + margin-bottom: 1.3em; +} + +h1, h2, h3, h4 { + font-family: "eczar"; + margin: 1.414em 0 0.5em; + font-weight: bold; + line-height: 1.2; +} + +h1 { + margin-top: 0; + font-size: 2.441em; + +} + +h2 { + font-size: 1.953em; +} + +h3 { + font-size: 1.563em; +} + +h4 { + font-size: 1.25em; +} + +small { + font-size: 0.8em; +} + +address { + font-style: inherit; +} + +.byline { + font-size: 1.563em; +} + + +/* Layout */ +img { + max-width: 100%; +} + +.wrapper { + display: flex; + justify-content: space-between; + flex-flow: row wrap; +} + +nav { + width: 100%; + background-color: rgba(0,0,0,.95); + color: white; + + padding-top: 0.25em; + padding-bottom: 0.25em; + + position: fixed; + display: flex; + justify-content: center; + align-items: baseline; + flex-flow: row wrap; +} + nav a { + color: white; + margin-right: 1em; + margin-left: 1em; + } + footer a { + color: white; + } + +article header, +body header { + text-align: center; +} + +main { + max-width: 40em; + margin: 0 auto; + padding: 1em; +} + +article { + padding-top: 1.563em; +} + +footer { + width: 100%; + background-color: rgba(0,0,0,.95); + color: white; + text-align: center; + + padding-top: 0.25em; + padding-bottom: 0.25em; + + display: flex; + justify-content: space-around; + align-items: baseline; + flex-flow: row wrap; +} + +/* Theme */ +.banner { + padding: 4em 2em; + background-size: cover; + background-image: url(../images/bg.jpg); + background-repeat: no-repeat; + background-position: top center; + + color: white; + text-shadow: 1px 1px 2px black; +} + +.banner a { + color: white; +} \ No newline at end of file diff --git a/styles/fonts.css b/styles/fonts.css new file mode 100644 index 0000000..3c71d74 --- /dev/null +++ b/styles/fonts.css @@ -0,0 +1,69 @@ +/* Eczar */ + +@font-face { + font-family: 'eczar'; + src: url('../fonts/Eczar/eczar-bold.woff2') format('woff2'), + url('../fonts/Eczar/eczar-bold.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + +@font-face { + font-family: 'eczar'; + src: url('../fonts/Eczar/eczar-extrabold.woff2') format('woff2'), + url('../fonts/Eczar/eczar-extrabold.woff') format('woff'); + font-weight: bolder; + font-style: normal; +} + +@font-face { + font-family: 'eczar'; + src: url('../fonts/Eczar/eczar-medium.woff2') format('woff2'), + url('../fonts/Eczar/eczar-medium.woff') format('woff'); + font-weight: 500; + font-style: normal; +} + +@font-face { + font-family: 'eczar'; + src: url('../fonts/Eczar/eczar-regular.woff2') format('woff2'), + url('../fonts/Eczar/eczar-regular.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + + + +/* Gentium Basic */ + +@font-face { + font-family: 'gentium_basic'; + src: url('../fonts/Gentium_Basic/genbasbold.woff2') format('woff2'), + url('../fonts/Gentium_Basic/genbasbold.woff') format('woff'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'gentium_basic'; + src: url('../fonts/Gentium_Basic/genbasbolditalic.woff2') format('woff2'), + url('../fonts/Gentium_Basic/genbasbolditalic.woff') format('woff'); + font-weight: bold; + font-style: italic; +} + +@font-face { + font-family: 'gentium_basic'; + src: url('../fonts/Gentium_Basic/genbasitalic.woff2') format('woff2'), + url('../fonts/Gentium_Basic/genbasitalic.woff') format('woff'); + font-weight: normal; + font-style: italic; +} + +@font-face { + font-family: 'gentium_basic'; + src: url('../fonts/Gentium_Basic/genbasregular.woff2') format('woff2'), + url('../fonts/Gentium_Basic/genbasregular.woff') format('woff'); + font-weight: normal; + font-style: normal; +} diff --git a/styles/normalize.css b/styles/normalize.css new file mode 100644 index 0000000..47b010e --- /dev/null +++ b/styles/normalize.css @@ -0,0 +1,341 @@ +/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + +html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-family: monospace, monospace; /* 1 */ + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +}