Skip to content

Commit

Permalink
good start
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtryan committed Nov 14, 2024
1 parent ae40738 commit 0e309e0
Show file tree
Hide file tree
Showing 28 changed files with 1,798 additions and 53 deletions.
420 changes: 420 additions & 0 deletions 2025/a-good-start/app copy.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions 2025/a-good-start/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const breathFrames = [
{ fontVariationSettings: `"wght" 100, "wdth" 75, "slnt" 0` },
{ fontVariationSettings: `"wght" 900, "wdth" 125, "slnt" -12` },
];

const breathTiming = {
id: 'breath',
delay: 100,
direction: 'normal',
duration: 1000,
fill: 'none',
easing: 'cubic-bezier(0.45, 0, 0.55, 1)',
iterationStart: 0.0,
iterations: '3',
composite: 'replace',
iterationComposite: 'replace',
};

const p001 = document.getElementById('p001');

p001.animate(breathFrames, breathTiming);

function generateLoremIpsumParagraph(paragraphCount) {
const loremIpsum =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';

const words = loremIpsum.split(' ');
let result = '';

for (let i = 0; i < paragraphCount; i++) {
for (let j = 0; j < 10; j++) {
// Adjust the number of words per line
result += words[i * 10 + j] + ' ';
}
result += '\n';
}

return result.trim();
}

// // Example usage:
// generateLoremIpsumParagraph(3);

// const x = generateLoremIpsumParagraph(3);
// const paragraph = document.createElement('p');
// const myDiv = document.getElementById('container');
// paragraph.textContent = x;
// myDiv.appendChild(paragraph);
35 changes: 35 additions & 0 deletions 2025/a-good-start/assets copy/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@font-face {
font-family: 'Social';
src: url('../fonts/ABCSocialPlusVariable-Trial.woff2') format(woff2);
font-weight: normal;
font-style: oblique -12;
font-variation-settings: 'wght' 400, 'wdth' 100, 'slnt' 0;
/* font-feature-settings: 'rlig' 1, 'rvrn' 1, 'kern' 1, 'rclt' 1, 'ss07' 1,
'ss01' 1, 'ss02' 1; */
}

:root {
--fluid-16-48: clamp(1rem, 0.3043rem + 3.4783cqi, 3rem);
}

html {
box-sizing: border-box;
font-family: 'Social', 'Courier New', Courier, monospace;
color: #333;
font-size: 62.5%;
background-color: bisque;
}

#container {
container-type: size;
font-size: var(--fluid-16-48);
white-space: nowrap;
overflow: visible;
margin: 0 auto;
padding-left: 0.5rem;
width: 51ch;
}

p {
border: 1px solid black;
}
Loading

0 comments on commit 0e309e0

Please sign in to comment.