Skip to content

Commit

Permalink
feat: added textblock with local video url (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaskarMitrah committed May 4, 2023
1 parent 0ecadea commit fd7c832
Show file tree
Hide file tree
Showing 7 changed files with 367 additions and 280 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,27 @@ world-class creative assets with the Adobe Stock API, or sign up for early infor
```
**With a local video**
![text block with a local video](docs/images/textblockwithvideo.png)
```
import video1 from '../videos/localVideo.mp4'
<TextBlock slots="icons,heading,text,buttons" videoUrl={video1} variantsTypePrimary='accent' variantStyleFill = "fill" homeZigZag position="left"  />
![Adobe Express](./images/Adobe-Express-logo-RGB.png)
### One-click edits with Adobe Express quick actions
Quick actions turn multistep design workflows into just a few clicks, making removing backgrounds, resizing images and merging videos faster than ever – all powered by Adobe Photoshop and Adobe Premiere Pro. Enable these powerful shortcuts in any website in minutes.
- [Learn more](https://adobe.io)
- [Try it ](https://adobe.io)
```
Use `slots` to identify the markdown content:
- `heading` (required)
Expand All @@ -1666,6 +1687,10 @@ Use `isCentered` to center the text.
Use `className` to customize the component **at your own risk.**
Use `videoUrl` to add the local video to the block
Use `position` to position the video values are `left`, `right`. The preset variant is left.
### Tabs Block
Tabs block is a custom block component that allows for tabbed content that can be displayed either vertically or horizontally.
Expand Down
Binary file added docs/images/textblockwithvideo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions example/src/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import AddAnalyticsXamarin from './add-analytics/xamarin.md'
import TeaserComp from './teaser/teasercomp.md'
import VideoCarouselComp from './videoCarousel/videoCarousel.md'
import blackbg from "./teaser/black_power.jpg"
import TextBlockComp from "./textblock/textblock.md"

<Hero slots="image, heading, text" background="rgb(64, 34, 138)" hideBreadcrumbNav={false}/>

Expand Down Expand Up @@ -158,6 +159,8 @@ Accordion item is to expand and collapse the content by clicking the icon. By de

<VideoCarouselComp />

<TextBlockComp />

## Inline Alerts {#Categories}

These are the five types of inline alerts you can use.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
18 changes: 18 additions & 0 deletions example/src/pages/textblock/textblock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

import video1 from "./TextBlockWithLocalVideo.mp4"

## TextBlock with video

Text Blocks are used for layout compositions. They are areas for long blocks of text and explaining features etc. for Product/Platform pages. They are coupled with images or videos.

<TextBlock slots="icons,heading,text,buttons" videoUrl={video1} variantsTypePrimary='accent' variantStyleFill = "fill" homeZigZag position="left" />

![Adobe Express](./Adobe-Express-logo-RGB.png)

### One-click edits with Adobe Express quick actions

Quick actions turn multistep design workflows into just a few clicks, making removing backgrounds, resizing images and merging videos faster than ever – all powered by Adobe Photoshop and Adobe Premiere Pro. Enable these powerful shortcuts in any website in minutes.

- [Learn more](https://adobe.io)
- [Try it ](https://adobe.io)

Loading

0 comments on commit fd7c832

Please sign in to comment.