Skip to content

Commit f79f5a5

Browse files
committed
feat: Add ListenToPlayer component to content pages
1 parent c78d0d9 commit f79f5a5

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

public/content/smart-contracts/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ lang: en
77

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

10+
<div className="mt-4">
11+
<ListenToPlayer slug="/smart-contracts/" />
12+
</div>
13+
1014
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.
1115

1216
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).

public/content/web3/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ lang: en
66

77
# Introduction to Web3 {#introduction}
88

9+
<div className="mt-4">
10+
<ListenToPlayer slug="/web3/" />
11+
</div>
12+
913
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.
1014

1115
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.

src/components/ListenToPlayer/TopOfPagePlayer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TopOfPagePlayer = ({
1818
handlePlayPause,
1919
}: TopOfPagePlayerProps) => {
2020
return (
21-
<div className="inline-block rounded-lg bg-background-low p-2">
21+
<div className="inline-block w-full rounded-lg bg-background-low p-2 lg:w-auto">
2222
<div
2323
className="flex cursor-pointer flex-row items-center gap-2 text-primary hover:text-primary-hover"
2424
onClick={() => {

src/layouts/Static.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const staticComponents = {
7171
SocialListItem,
7272
TranslationChartImage,
7373
UpcomingEventsList,
74+
ListenToPlayer,
7475
}
7576

7677
type StaticLayoutProps = ChildOnlyProp &
@@ -121,9 +122,6 @@ export const StaticLayout = ({
121122
{lastEditLocaleTimestamp}
122123
</p>
123124
)}
124-
<div>
125-
<ListenToPlayer slug={pathname} />
126-
</div>
127125
</Stack>
128126
)}
129127

0 commit comments

Comments
 (0)