Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d97f175
setup storybook
corwintines Jan 29, 2025
b399692
Initial states for top of file component
corwintines Jan 29, 2025
bf9c85b
scripts and audio files
corwintines Feb 4, 2025
b8a3fcb
Update scripts.md - wallet
konopkja Feb 5, 2025
12dc28a
Update script.md - what is ethereum
konopkja Feb 5, 2025
99b953e
player
corwintines Feb 11, 2025
1c62d16
fix first play bug
corwintines Feb 11, 2025
7f5bdad
next article timer
corwintines Feb 12, 2025
56a9e0f
styling and story for in context use
corwintines Feb 12, 2025
cdd1ba1
fix build errors
corwintines Feb 12, 2025
8d21119
Get feature on pages
corwintines Feb 12, 2025
113f082
Merge branch 'dev' into listen-to-feature
corwintines Feb 12, 2025
2c0f5ca
Update script.md
konopkja Feb 13, 2025
426e254
Update script.md
konopkja Feb 13, 2025
b359cad
Update scripts.md
konopkja Feb 13, 2025
7a0f165
Update script.md
konopkja Feb 13, 2025
8432236
clickable text and text primary
corwintines Feb 24, 2025
be89b0d
title popups and mobile styling for player
corwintines Feb 24, 2025
0f47f19
move audio files to data folder
corwintines Feb 24, 2025
7395ee7
FeedbackWidget context
corwintines Feb 25, 2025
f884680
matomo
corwintines Feb 25, 2025
feca57b
shadow naming
corwintines Feb 25, 2025
07fb79f
code cleanup change requests
corwintines Feb 25, 2025
1a9fa8e
Portal styling
corwintines Feb 25, 2025
3bd7140
a11y
corwintines Feb 25, 2025
ac3c80c
fix extra sound playing bug
corwintines Feb 25, 2025
a415b5e
next functinality bug
corwintines Feb 25, 2025
7871070
copy update
corwintines Feb 25, 2025
dc16b2e
audio updates
corwintines Feb 25, 2025
5825bda
Merge branch 'dev' into listen-to-feature
corwintines Feb 25, 2025
1e056a7
Replace useRouter with usePathname for ListenToPlayer slug
corwintines Feb 25, 2025
ae8ca5b
add background
corwintines Feb 25, 2025
2dc93f1
Merge branch 'dev' into listen-to-feature
corwintines Feb 27, 2025
f23b215
fix: center ListenToPlayer widget on mobile screens
corwintines Feb 27, 2025
c6b1d45
fix: wrap ListenToPlayer in div for improved layout
corwintines Feb 27, 2025
71c6f86
Merge branch 'dev' into listen-to-feature
corwintines Feb 27, 2025
891a997
feat: Add tooltips to PlayerWidget buttons for improved UX
corwintines Feb 27, 2025
15778de
fix: Adjust z-index and add wrapper div to PlayerWidget
corwintines Feb 27, 2025
cf3b5af
fix: Reduce z-index of ListenToPlayer widget
corwintines Mar 1, 2025
c78d0d9
feat: Add track index and total tracks to PlayerWidget navigation
corwintines Mar 1, 2025
f79f5a5
feat: Add ListenToPlayer component to content pages
corwintines Mar 3, 2025
3f71308
feat: Improve PlayerWidget tooltips for mobile responsiveness
corwintines Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ module.exports = (phase, { defaultConfig }) => {
// Modify the file loader rule to ignore *.svg, since we have it handled now.
fileLoaderRule.exclude = /\.svg$/i

config.module.rules.push({
test: /\.(mp3)$/,
type: "asset/resource",
generator: {
filename: "static/media/[name][ext]",
},
})

return config
},
trailingSlash: true,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"ethereum-blockies-base64": "^1.0.2",
"framer-motion": "^10.13.0",
"gray-matter": "^4.0.3",
"howler": "^2.2.4",
"htmr": "^1.0.2",
"lodash.merge": "^4.6.2",
"lodash.shuffle": "^4.2.0",
Expand Down
4 changes: 4 additions & 0 deletions public/content/smart-contracts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ lang: en

# Introduction to smart contracts {#introduction-to-smart-contracts}

<div className="mt-4">
<ListenToPlayer slug="/smart-contracts/" />
</div>

Smart contracts are the fundamental building blocks of Ethereum's application layer. They are computer programs stored on the [blockchain](/glossary/#blockchain) that follow "if this then that" logic, and are guaranteed to execute according to the rules defined by its code, which cannot be changed once created.

Nick Szabo coined the term "smart contract". In 1994, he wrote [an introduction to the concept](https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html), and in 1996 he wrote [an exploration of what smart contracts could do](https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart_contracts_2.html).
Expand Down
4 changes: 4 additions & 0 deletions public/content/web3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ lang: en

# Introduction to Web3 {#introduction}

<div className="mt-4">
<ListenToPlayer slug="/web3/" />
</div>

Centralization has helped onboard billions of people to the World Wide Web and created the stable, robust infrastructure on which it lives. At the same time, a handful of centralized entities have a stronghold on large swathes of the World Wide Web, unilaterally deciding what should and should not be allowed.

Web3 is the answer to this dilemma. Instead of a Web monopolized by large technology companies, Web3 embraces decentralization and is being built, operated, and owned by its users. Web3 puts power in the hands of individuals rather than corporations.
Expand Down
46 changes: 46 additions & 0 deletions src/components/ListenToPlayer/ListenToPlayer.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import type { Meta, StoryObj } from "@storybook/react"

import { langViewportModes } from "../../../.storybook/modes"
import { BaseLayout as BaseLayoutComponent } from "../../layouts/BaseLayout"

import ListenToPlayer from "."

const meta = {
title: "Atoms / Media & Icons / ListenToPlayer / ListenToPlayer",
component: BaseLayoutComponent,
parameters: {
layout: "fullscreen",
chromatic: {
modes: {
...langViewportModes,
},
},
},
argTypes: {
children: {
table: {
disable: true,
},
},
lastDeployLocaleTimestamp: {
table: {
disable: true,
},
},
},
} satisfies Meta<typeof BaseLayoutComponent>

export default meta

export const BaseLayout: StoryObj<typeof meta> = {
args: {
children: (
<div className="flex w-full flex-col items-center gap-4 px-8 py-9 md:flex-row">
<ListenToPlayer slug="/eth" />
</div>
),
contentIsOutdated: false,
contentNotTranslated: false,
lastDeployLocaleTimestamp: "May 14, 2021",
},
}
Loading