{"id":2598,"date":"2018-11-03T12:25:00","date_gmt":"2018-11-03T12:25:00","guid":{"rendered":"https:\/\/wpthemetestdata.wordpress.com\/?p=1745"},"modified":"2018-11-03T12:25:00","modified_gmt":"2018-11-03T12:25:00","slug":"block-cover","status":"publish","type":"post","link":"https:\/\/www.fongabogados.com\/?p=2598","title":{"rendered":"Block: Cover"},"content":{"rendered":"\n    \n<div class=\"wp-block-cover has-background-dim alignleft is-layout-flow wp-block-cover-is-layout-flow\" style=\"background-image:url(https:\/\/wpthemetestdata.files.wordpress.com\/2008\/06\/dsc20050102_192118_51.jpg)\"><p class=\"wp-block-cover-text\">This is a left aligned cover block with a background image.<\/p><\/div>\n\n\n\n<p>The cover block lets you add text on top of images or videos.<\/p>\n\n\n\n<p>This blocktype has several alignment options, and you can also align or center the text inside the block.<\/p>\n\n\n\n<p>The background image can be fixed and you can change its opacity and add an overlay color.<\/p>\n\n\n\n<p>Make sure that the text wraps correctly over the image, and that text markup and alignments are working.<\/p>\n\n\n\n<p>The next image should have a pink overlay color, the text should be bold and aligned to the left:<\/p>\n\n\n\n<div class=\"wp-block-cover has-pale-pink-background-color has-background-dim has-left-content aligncenter is-layout-flow wp-block-cover-is-layout-flow\" style=\"background-image:url(https:\/\/wpthemetestdata.files.wordpress.com\/2008\/06\/canola2.jpg)\"><p class=\"wp-block-cover-text\"><strong>A center aligned cover image block, with a left aligned text.<\/strong><\/p><\/div>\n\n\n\n<div class=\"wp-block-cover has-background-dim-20 has-background-dim has-parallax alignfull is-layout-flow wp-block-cover-is-layout-flow\" style=\"background-image:url(https:\/\/wpthemetestdata.files.wordpress.com\/2008\/06\/dsc04563.jpg)\"><p class=\"wp-block-cover-text\">This is a full width cover block with a fixed background image with a 20% opacity.<\/p><\/div>\n\n\n\n<p style=\"text-align:center\">Make sure that all the text is readable.<\/p>\n\n\n\n<div class=\"wp-block-cover has-background-dim alignwide is-layout-flow wp-block-cover-is-layout-flow\" style=\"background-image:url(https:\/\/wpthemetestdata.files.wordpress.com\/2008\/06\/dsc03149.jpg)\"><p class=\"wp-block-cover-text\">Our last cover image block has a wide width.<\/p><\/div>\n\n\n\n<div class=\"wp-block-cover has-background-dim alignwide is-layout-flow wp-block-cover-is-layout-flow\"><video class=\"wp-block-cover__video-background\" autoplay muted loop src=\"https:\/\/wpthemetestdata.files.wordpress.com\/2013\/12\/2014-slider-mobile-behavior.mov\"><\/video><p class=\"wp-block-cover-text\">This is a wide cover block with a video background.<\/p><\/div>\n\n\n\n<div class=\"wp-block-cover has-background-dim aligncenter is-layout-flow wp-block-cover-is-layout-flow\"><video class=\"wp-block-cover__video-background\" autoplay muted loop src=\"https:\/\/wpthemetestdata.files.wordpress.com\/2013\/12\/2014-slider-mobile-behavior.mov\"><\/video><p class=\"wp-block-cover-text\">Compare the video and image blocks.<br>This block is centered.<\/p><\/div>\n\n\n\n<p>The block below has no alignment, and the text is a link. Overlay colors must also work with video backgrounds.<\/p>\n\n\n\n<div class=\"wp-block-cover has-background-dim-60 has-background-dim is-layout-flow wp-block-cover-is-layout-flow\" style=\"background-color:#f4399d\"><video class=\"wp-block-cover__video-background\" autoplay muted loop src=\"https:\/\/wpthemetestdata.files.wordpress.com\/2013\/12\/2014-slider-mobile-behavior.mov\"><\/video><p class=\"wp-block-cover-text\"><a href=\"https:\/\/wordpress.org\/gutenberg\/\">This page needed more pink<\/a>. <\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The cover block lets you add text<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,1],"tags":[124],"class_list":["post-2598","post","type-post","status-publish","format-standard","hentry","category-block","category-uncategorized","tag-image"],"_links":{"self":[{"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=\/wp\/v2\/posts\/2598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2598"}],"version-history":[{"count":0,"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=\/wp\/v2\/posts\/2598\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fongabogados.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}