Skip to content

Commit 891b800

Browse files
feat: embedd resource yt video in cadence lang docs
1 parent d1c0598 commit 891b800

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/tutorial/03-resources.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ socialImageTitle: Cadence Resources
1919
socialImageDescription: Resource smart contract image.
2020
---
2121

22+
<div style={{ position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden', maxWidth: '100%' }}>
23+
<iframe
24+
style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }}
25+
src="https://www.youtube.com/embed/oHo6-bnb97Y"
26+
title="YouTube video player"
27+
frameborder="0"
28+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
29+
allowfullscreen
30+
></iframe>
31+
</div>
32+
2233
This tutorial builds your understanding of [accounts] and how to interact with them by introducing [resources]. Resources are a special type found in Cadence that are used for any virtual items, properties, or any other sort of data that are **owned** by an account. They can **only exist in one place at a time**, which means they can be moved or borrowed, but they **cannot be copied**.
2334

2435
Working with resources requires you to take a few more steps to complete some tasks, but this level of explicit control makes it nearly impossible to accidentally duplicate, break, or burn an asset.

0 commit comments

Comments
 (0)