"code" : " <script> \n\t // WARNING: This way of using an API key is not secure. \n\t // Use only for demo purpose in local dev environments. \n\t // Find your API key here: https://pixabay.com/api/docs/ \n\t // Replace the placeholder value by your own key \n\n\t const API_KEY = \" 99999999-99999a999aa9aaa9aa999aa9 \" ; \n </script> " ,
"label" : " Paste your API KEY here "
"_cssId" : " alpine-O1US0k " ,
"value" : " https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js "
"label" : " <script> Alpine.js Core " ,
"code" : " <script> \n\t const pixaBricks = () => { \n\t\t return { \n\t\t images: [], \n\t\t currentImage: {}, \n\t\t q: \"\" , \n\t\t image_type: \"\" , \n\t\t page: \"\" , \n\t\t per_page: 200, \n\t\t queryImages: async function() { \n\t\t\t const response = await fetch(`https://pixabay.com/api/?key=${API_KEY}&q=${this.q}&image_type=${this.image_type}&per_page=${this.per_page}`); \n\t\t\t const data = await response.json(); \n\t\t\t this.images = data.hits; \n\t\t } \n\t } \n }; \n </script> " ,
"label" : " <script> App Logic " ,
"children" : [ " lnmifm " , " ptxrjf " , " vbjcyl " ],
{ "id" : " 4SnJ2y " , "name" : " x-data " , "value" : " pixaBricks() " },
{ "id" : " hzufrb " , "name" : " x-init " , "value" : " queryImages() " }
"_cssGlobalClasses" : [ " twf-c-pixabricks " ]
"label" : " <div> Alpine Root "
{ "id" : " kzbrkq " , "name" : " x-ref " , "value" : " modal " },
"value" : " $refs.modal.close() "
"_cssGlobalClasses" : [ " twf-c-pixabricks__modal " ]
"settings" : { "_cssGlobalClasses" : [ " twf-c-pixabricks__wrapper " ] },
"value" : " currentImage. largeImageURL "
{ "id" : " O172Ss " , "name" : " :alt " , "value" : " currentImage.tags " }
"_cssGlobalClasses" : [ " twf-c-pixabricks__image " ]
"children" : [ " nrdvdx " , " tuagdf " ],
"label" : " <section> Section " ,
"_cssId" : " section-i7fBlR " ,
"name" : " aria-labelledby " ,
"value" : " heading-i7fBlR "
"value" : " `background: linear-gradient(to top, var(--o-surface-1), transparent), center / cover url(${images[0].largeImageURL})` "
"_cssGlobalClasses" : [ " sez-section " ]
"children" : [ " rsrqry " , " bfjuvl " , " gkcvjv " ],
"_cssGlobalClasses" : [ " sez-section__body " , " twf-c-pixabricks__searchbar " ]
"label" : " <div> Search Bar "
"_cssGlobalClasses" : [ " twf-c-pixabricks__search-icon " ],
"_background" : { "color" : { "raw" : " transparent " } },
{ "id" : " rumxom " , "name" : " x-on:click " , "value" : " queryImages() " }
"value" : " http://www.w3.org/2000/svg "
{ "id" : " b5MbOB " , "name" : " width " , "value" : " 1em " },
{ "id" : " XI3KFG " , "name" : " height " , "value" : " 1em " },
{ "id" : " tWW2O7 " , "name" : " viewBox " , "value" : " 0 0 32 32 " }
{ "id" : " cifzsI " , "name" : " fill " , "value" : " currentColor " },
"value" : " m29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9 "
{ "id" : " aMGjAG " , "name" : " type " , "value" : " search " },
"value" : " Search for pretty images... "
{ "id" : " pthcmh " , "name" : " name " , "value" : " search " },
{ "id" : " vhefov " , "name" : " x-model " , "value" : " q " },
"name" : " x-on:keydown.enter " ,
"_cssGlobalClasses" : [ " twf-c-pixabricks__search-input " ],
"_cssCustom" : " #brxe-bfjuvl::placeholder{ \n color: grey; \n } "
"children" : [ " govrhq " , " limrwx " , " bkhsca " , " ehlrse " ],
{ "id" : " ExuTaf " , "name" : " name " , "value" : " select " },
{ "id" : " bfsrmj " , "name" : " x-model " , "value" : " image_type " }
"_cssGlobalClasses" : [ " twf-c-pixabricks__select " ]
"_attributes" : [{ "id" : " govMeW " , "name" : " value " , "value" : " all " }],
"_attributes" : [{ "id" : " 9XP28H " , "name" : " value " , "value" : " photo " }],
{ "id" : " rO4fjR " , "name" : " value " , "value" : " illustration " }
"_attributes" : [{ "id" : " e3zW93 " , "name" : " value " , "value" : " vector " }],
"children" : [ " nnicir " , " kfrikp " ],
" sez-section__header--center "
"label" : " <header> Section Header "
"children" : [ " wusfly " , " colhbj " , " holdzb " ],
"_justifyContent" : " flex-start " ,
"_cssGlobalClasses" : [ " sez-section__hgroup " ]
"_cssId" : " heading-i7fBlR " ,
"_cssGlobalClasses" : [ " twf-c-pixabricks__title " , " sez-section__h1-title " ]
"label" : " <h1> Section Title "
"text" : " Stunning royalty-free images & royalty-free stock " ,
"_cssGlobalClasses" : [ " sez-section__h2-title " , " twf-c-pixabricks__title " ]
"label" : " <p> Section Subtitle "
"text" : " Pixabay : over 4.5 million+ high quality stock images, videos and music shared by our talented community. " ,
"_cssGlobalClasses" : [ " sez-section__intro " , " twf-c-pixabricks__intro " ]
"label" : " <p> Basic Text "
"label" : " <section> Section " ,
"_cssGlobalClasses" : [ " sez-section " ]
"_cssGlobalClasses" : [ " sez-section__body " , " sez-section__body--grid-4 " ]
"label" : " <div> Responsive Grid 4 Container "
{ "id" : " p49a0x " , "name" : " x-for " , "value" : " image in images " },
{ "id" : " 49Pt7A " , "name" : " :key " , "value" : " image.id " }
"label" : " <template> Alpine x-for "
"value" : " currentImage = image, $nextTick($refs.modal.showModal()) "
" twf-c-pixabricks__button " ,
"label" : " <button> Image Button "
{ "id" : " tG5Tiv " , "value" : " image. largeImageURL " , "name" : " :src " },
{ "id" : " x3DqCg " , "name" : " :alt " , "value" : " image.tags " }
" twf-c-pixabricks__thumb " ,
" oxyprops-o-appear-enter "
"text" : " Stock Images from Pixabay - Powered by Structeezy and Alpine.js in Bricks " ,
"_cssGlobalClasses" : [ " sez-section__h2-subtitle " ]
"label" : " <p> Section Subtitle "
"source" : " bricksCopiedElements " ,
"sourceUrl" : " https://docs.structeezy.com/tutorials/pixabricks/ " ,
{ "id" : " twf-c-pixabricks " , "name" : " c-pixabricks " , "settings" : [] },
"id" : " twf-c-pixabricks__wrapper " ,
"name" : " c-pixabricks__wrapper " ,
"_justifyItemsGrid" : " center " ,
"_alignItemsGrid" : " center "
"id" : " twf-c-pixabricks__image " ,
"name" : " c-pixabricks__image " ,
"settings" : { "_heightMax" : " 80dvb " , "_widthMax" : " 80vi " }
"top" : " var(--_sez-outer-spacing) " ,
"bottom" : " var(--_sez-outer-spacing) " ,
"left" : " var(--_sez-inner-spacing) " ,
"right" : " var(--_sez-inner-spacing) "
"_rowGap" : " var(--_sez-outer-spacing) "
{ "id" : " sez-section__body " , "name" : " sez-section__body " , "settings" : [] },
"id" : " twf-c-pixabricks__searchbar " ,
"name" : " c-pixabricks__searchbar " ,
"_gridTemplateColumns" : " auto 1fr auto " ,
"_background" : { "color" : { "raw" : " var(--o-bw) " } },
"top" : " var(--o-radius-round) " ,
"right" : " var(--o-radius-round) " ,
"bottom" : " var(--o-radius-round) " ,
"left" : " var(--o-radius-round) "
"_typography" : { "font-size" : " var(--o-font-size-4) " },
"_cssCustom" : " .c-pixabricks__searchbar:focus-within{ \n\t outline: 2px solid var(--o-brand); \n outline-offset: 5px; \n } "
"id" : " twf-c-pixabricks__search-icon " ,
"name" : " c-pixabricks__search-icon " ,
"_justifyItemsGrid" : " center " ,
"_alignItemsGrid" : " center " ,
"top" : " var(--o-radius-round) " ,
"right" : " var(--o-radius-round) " ,
"bottom" : " var(--o-radius-round) " ,
"left" : " var(--o-radius-round) "
"id" : " twf-c-pixabricks__search-input " ,
"name" : " c-pixabricks__search-input " ,
"_cssCustom" : " :is(.c-pixabricks__search-input, #fake-id){ \n\t border: none; \n &:focus-visible{ \n \t outline: none; \n } \n } "
"id" : " twf-c-pixabricks__select " ,
"name" : " c-pixabricks__select " ,
"_cssCustom" : " :is(.c-pixabricks__select, #fake-id){ \n\t border: none; \n &:focus-visible{ \n \t outline: none; \n } \n } "
"id" : " sez-section__header " ,
"name" : " sez-section__header " ,
"_alignItems" : " flex-start " ,
"_rowGap" : " var(--_sez-outer-spacing) "
"id" : " sez-section__header--center " ,
"name" : " sez-section__header--center " ,
"_cssCustom" : " :where(.sez-section__header--center) > :where(.sez-section__hgroup) { \n display: flex; \n flex-direction: column; \n align-items: center; \n } \n\n :where(.sez-section__header--center) > :where(.sez-section__intro) { \n text-align: center; \n text-wrap: balance; \n } "
"id" : " sez-section__hgroup " ,
"name" : " sez-section__hgroup " ,
"_justifyContent" : " flex-start " ,
"id" : " twf-c-pixabricks__title " ,
"name" : " c-pixabricks__title " ,
"_typography" : { "font-weight" : " 900 " },
"_margin" : { "bottom" : " initial " }
"id" : " sez-section__h1-title " ,
"name" : " sez-section__h1-title " ,
"font-size" : " var(--_sez-h1-size) " ,
"line-height" : " var(--_sez-heading-line-height) "
"_cssCustom" : " .sez-section__h1{ \n text-wrap: balance; \n } "
"id" : " sez-section__h2-title " ,
"name" : " sez-section__h2-title " ,
"font-size" : " var(--_sez-h2-size) " ,
"line-height" : " var(--_sez-heading-line-height) "
"_cssCustom" : " .sez-section__h2{ \n text-wrap: balance; \n } "
"id" : " sez-section__intro " ,
"name" : " sez-section__intro " ,
"font-size" : " var(--_sez-text-size) " ,
"line-height" : " var(--_sez-text-line-height) "
"_widthMax" : " var(--_sez-max-text-width) " ,
"_cssCustom" : " .sez-section__intro{ \n text-wrap: pretty; \n } "
"id" : " twf-c-pixabricks__intro " ,
"name" : " c-pixabricks__intro " ,
"settings" : { "_typography" : { "font-size" : " var(--o-font-size-5) " } }
"id" : " sez-section__body--grid-4 " ,
"name" : " sez-section__body--grid-4 " ,
"_gridGap" : " var(--_sez-inner-spacing) " ,
"_gridTemplateColumns" : " repeat(4, 1fr) " ,
"_gridTemplateColumns:tablet_portrait" : " repeat(3, 1fr) " ,
"_gridTemplateColumns:mobile_landscape" : " repeat(2, 1fr) " ,
"_gridTemplateColumns:mobile_portrait" : " 1fr "
"id" : " twf-c-pixabricks__button " ,
"name" : " c-pixabricks__button " ,
"settings" : { "_background" : { "color" : { "raw" : " transparent " } } }
{ "id" : " oxyprops-o-pulse-hover " , "name" : " o-pulse-hover " , "settings" : [] },
"id" : " twf-c-pixabricks__thumb " ,
"name" : " c-pixabricks__thumb " ,
"top" : " var(--o-radius-3) " ,
"right" : " var(--o-radius-3) " ,
"bottom" : " var(--o-radius-3) " ,
"left" : " var(--o-radius-3) "
{ "id" : " oxyprops-o-square " , "name" : " o-square " , "settings" : [] },
"id" : " oxyprops-o-appear-enter " ,
"name" : " o-appear-enter " ,
"id" : " twf-c-pixabricks__modal " ,
"name" : " c-pixabricks__modal " ,
"id" : " sez-section__h2-subtitle " ,
"name" : " sez-section__h2-subtitle " ,
"font-size" : " calc(var(--_sez-h2-size) * var(--_sez-subtitle-ratio)) " ,
"line-height" : " var(--_sez-heading-line-height) "
"_cssCustom" : " .sez-section__h2-subtitle{ \n text-wrap: balance; \n } "