Skip to content

Commit

Permalink
Style as two white-bordered divs.
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-box committed Sep 7, 2021
1 parent 6128443 commit f5f7e97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 3 additions & 6 deletions data/quiltContent.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let articles = [
backgroundColor: '#256',
textColor: '#db5',
title: 'Max End 3',
question: 'Given an array of ints length 3, figure out which is larger, the first or last element in the array, and set all the other elements to be that value. Return the changed array.',
question: 'Given an array of ints figure out which is larger, the first or last element in the array, and set all the other elements to be that value.',
strategy: 'GetElementById()!',
form: '<form><h1>Placeholder</h1><button>click</button></form>',
linkToCodeRepo: 'https://github.com/atom-box/codingBatJS/blob/master/textSimilarity.html',
Expand Down Expand Up @@ -60,16 +60,13 @@ let articles = [
<button type="button" class="btn btn-secondary" onclick="wordChecker.random(huckleberryisms, 10)" > retrieve 10 words </button>
</div>
`,

// <p>${teamPitching()} all day, every day</p>

},

{
backgroundColor: '#493',
textColor: '#ddf',
title: 'Unused',
question: 'Statistics from <a href="https://www.baseball-reference.com/leagues/majors/2021-standard-pitching.shtml">Baseball Reference</a>',
title: 'API',
question: 'Get info from a live external A.P.I. <a href="https://rapidapi.com/apilayernet/api/rest-countries-v1"> hub</a>',
strategy: 'null',
form: '<form><h1>Placeholder</h1><button>click</button></form>',
linkToCodeRepo: 'https://github.com/atom-box/codingBatJS/blob/master/textSimilarity.html',
Expand Down
10 changes: 6 additions & 4 deletions helpers/quiltMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ articles.forEach(element => {
singleDiv = `<article style="background-color:${element.backgroundColor}; color: ${element.textColor};"><div class='gutters';>
<div class="top-bottom-space"><div>
<h2 >${element.title}</h2>
<p>Challenge:</p><div class="white-box"><p>${element.question}</p></div>
<div class="white-box">
<p>Challenge:</p>
<p>${element.question}</p></div>
`;
singleDiv += `<p>Solution:</p>`;
// singleDiv += `<div class="white-box" id="${element.title}">`;
// singleDiv += `<div>`;
singleDiv += `<div class="white-box" id="${element.title}">`;
singleDiv += `<p>Try it out:</p>`;
singleDiv += element.answerHtml;
singleDiv += `<div>`;
singleDiv += `</div>`;

singleDiv += `
Expand Down
2 changes: 2 additions & 0 deletions quilt.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

.white-box {
padding: 3rem;
margin-bottom: 1rem;
}
/* CSS FONT-DIRECTED no COLOR no POSITIONING */
/* CSS FONT-DIRECTED no COLOR no POSITIONING */
Expand Down Expand Up @@ -175,6 +176,7 @@ <h2 class="text-right gutters">Making things work in Madison, Wisconsin: <span c
<script src="./helpers/quiltMain.js"></script>
<script src="./helpers/quilt/immediateOutputFromInput.js"></script>
<script src="./helpers/quilt/maxEnd3.mjs"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- TODO TODO TODO <script src="./helpers/quilt/maxEnd3Div.mjs"></script> -->


Expand Down

0 comments on commit f5f7e97

Please sign in to comment.