-
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.
- Loading branch information
1 parent
ae40738
commit 0e309e0
Showing
28 changed files
with
1,798 additions
and
53 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,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); |
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,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; | ||
} |
Oops, something went wrong.