Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
michmitz committed Jul 27, 2020
1 parent 3a65014 commit de8255b
Show file tree
Hide file tree
Showing 15 changed files with 408 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"impliedStrict": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"globals": {
"QUnit": false
},
"rules": {
"eqeqeq": ["error", "always"],
"no-console": "warn",
"indent": [
"error",
4,
{
"SwitchCase": 1,
"ignoreComments": true
}
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"no-multi-spaces": [
"error",
{
"ignoreEOLComments": true
}
],
"new-cap": "error",
"no-redeclare": [
"error",
{
"builtinGlobals": true
}
],
"semi": ["error", "always"],
"space-in-parens": ["error"],
"space-infix-ops": "error",
"object-curly-spacing": ["error", "always"],
"comma-spacing": "error",
"space-before-function-paren": ["error", "never"],
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"array-bracket-spacing": "error"
}
}
31 changes: 31 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i eslint esm jsdom
- run: npx eslint .
- run: npx qunit test/index.js
env:
CI: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules
.env
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: "node_js"
node_js: "stable"
before_script:
- npm i eslint esm jsdom
script:
- npx eslint .
- npx qunit test/index.js
5 changes: 5 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// import functions and grab DOM elements

// initialize state

// set event listeners to update state and DOM
Binary file added assets/alchemy-logo.png
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 assets/big-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="styles/home.css">
<title>Document</title>
</head>

<body>
<header>
<div class="gutter-right logo">
<img src="assets/big-logo.png"/>
</div>
</header>
<main>
<section class="main-section">
<img class="main-logo" src="assets/alchemy-logo.png"/>
<h2>
Welcome to Alchemy Bootstrap!
</h2>

<content>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam repellendus similique consectetur voluptas facilis molestiae voluptates nobis error sapiente, ad, ipsa vero non, sint eligendi? Eos praesentium iusto magnam exercitationem.
Earum sunt voluptatibus molestias, sint voluptatum quos reiciendis. Id asperiores deleniti dolores provident, eius, nostrum aperiam vel, optio qui illo corrupti in. Eum quam, est nemo porro sapiente excepturi assumenda.
Rerum unde quidem maxime. Ullam, dolores labore molestias voluptatibus adipisci quod? Quaerat nihil inventore molestiae assumenda, voluptates vel necessitatibus eligendi? Accusamus ratione eligendi reprehenderit? Beatae incidunt molestias ea soluta nulla.
Fugiat quae soluta voluptate mollitia praesentium modi ex illo, autem assumenda, vel aliquam fugit possimus dolorem esse corporis ipsa! Voluptatem sapiente error non, ea optio suscipit quasi maxime nobis ex?
Et ipsa tenetur ullam ab nesciunt quas fugit velit impedit illum esse eligendi corporis culpa praesentium aspernatur ex sint veniam quidem, doloribus corrupti hic vitae. Eum neque ducimus omnis exercitationem?
</p>
<hr />
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Aperiam repellendus similique consectetur voluptas facilis molestiae voluptates nobis error sapiente, ad, ipsa vero non, sint eligendi? Eos praesentium iusto magnam exercitationem.
Earum sunt voluptatibus molestias, sint voluptatum quos reiciendis. Id asperiores deleniti dolores provident, eius, nostrum aperiam vel, optio qui illo corrupti in. Eum quam, est nemo porro sapiente excepturi assumenda.
Rerum unde quidem maxime. Ullam, dolores labore molestias voluptatibus adipisci quod? Quaerat nihil inventore molestiae assumenda, voluptates vel necessitatibus eligendi? Accusamus ratione eligendi reprehenderit? Beatae incidunt molestias ea soluta nulla.
Fugiat quae soluta voluptate mollitia praesentium modi ex illo, autem assumenda, vel aliquam fugit possimus dolorem esse corporis ipsa! Voluptatem sapiente error non, ea optio suscipit quasi maxime nobis ex?
Et ipsa tenetur ullam ab nesciunt quas fugit velit impedit illum esse eligendi corporis culpa praesentium aspernatur ex sint veniam quidem, doloribus corrupti hic vitae. Eum neque ducimus omnis exercitationem?
</p>

</section>
</main>
<footer>
<div class="copy gutter-right">&copy; 2020 Alchemy Code Lab</div>
</footer>

<script type="module" src="app.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions styles/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* add home page styles here */
39 changes: 39 additions & 0 deletions styles/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

/* adapted from http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

*{
box-sizing: border-box;
}

html, body {
height: 100%;
width: 100%;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

ol, ul {
list-style: none;
}
119 changes: 119 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@

body {
/* https://coolors.co/generate and click export -> scss to get the colors to copy and paste below*/
--color1: hsla(349, 69%, 76%, 1);
--color2: hsla(207, 67%, 44%, 1);
--color3: hsla(200, 61%, 56%, 1);
--color4: hsla(187, 41%, 94%, 1);
--color5: hsla(170, 28%, 95%, 1);

/* --color1: hsla(45, 86%, 83%, 1);
--color2: hsla(135, 65%, 98%, 1);
--color3: hsla(315, 37%, 86%, 1);
--color4: hsla(45, 73%, 98%, 1);
--color5: hsla(224, 40%, 79%, 1); */

--header-height: 80px;
--shadow: 0px 10px 20px -12px rgba(0,0,0,0.45);
--gutter: 30px;
--footer-height: 25px;

font-family: 'Titillium Web', sans-serif;
background-color: var(--color2);
}

main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-bottom: calc(var(--footer-height));
}

section {
background-color: var(--color5);
width: 1000px;
max-width: 80%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: var(--gutter);
padding-bottom: var(--gutter);
margin-top: var(--gutter);
margin-bottom: var(--gutter);
border: solid 2px var(--color1);
}

header {
display: flex;
justify-content: flex-end;
background-color: var(--color3);
height: var(--header-height);
box-shadow: var(--shadow);
}

footer {
display: flex;
justify-content: flex-end;
background-color: var(--color3);
box-shadow: var(--shadow);
}


h2 {
font-size: 1.8rem;
font-weight: bold;
}

.gutter-right {
margin-right: 20px;
}

.main-logo {
animation: pulse 5s infinite ease-in-out;
}

header img {
height: var(--header-height);
}



content {
width: 80%;
}

p {
margin: var(--gutter);
}

footer {
position: fixed;
width: 100%;
bottom: 0;
height: var(--footer-height);
display: flex;
justify-content: flex-end;
background-color: var(--color3);
box-shadow: var(--shadow);
}

@keyframes pulse {
20% {
transform: rotate3d(-10, -10, -10, 50deg) scale(1.2);
}

40% {
transform: rotate3d(10, 10, -10, 50deg) scale(1);
}

60% {
transform: rotate3d(-10, 10, 10, 50deg) scale(1.2);
}

80% {
transform: rotate3d(10, 10, 10, 50deg) scale(1);
}

}
18 changes: 18 additions & 0 deletions test/example.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// IMPORT MODULES under test here:
// import { example } from '../example.js';

const test = QUnit.test;

test('time to test a function', (expect) => {
//Arrange
// Set up your arguments and expectations
const expected = true;

//Act
// Call the function you're testing and set the result to a const
const actual = false;

//Expect
// Make assertions about what is expected versus the actual result
expect.equal(actual, expected);
});
Loading

0 comments on commit de8255b

Please sign in to comment.