{"id":539,"date":"2023-03-09T22:59:44","date_gmt":"2023-03-09T19:59:44","guid":{"rendered":"https:\/\/notes.profidev.online\/?p=539"},"modified":"2023-03-27T17:31:30","modified_gmt":"2023-03-27T14:31:30","slug":"cards-3","status":"publish","type":"post","link":"https:\/\/notes.profidev.online\/ru\/cards\/539\/","title":{"rendered":"\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0438"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video height=\"634\" style=\"aspect-ratio: 957 \/ 634;\" width=\"957\" controls src=\"https:\/\/notes.profidev.online\/wp-content\/uploads\/2023\/03\/vokoscreenng-2023-03-09_20-56-12.webm\"><\/video><\/figure>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">&lt;main&gt;\n  &lt;section class=&quot;cards&quot;&gt;\n   &lt;div class=&quot;grid&quot;&gt;\n  &lt;div class=&quot;cards__grid&quot;&gt;\n   &lt;article class=&quot;card&quot;&gt;\n      &lt;a class=&quot;card__link&quot; href=&quot;https:\/\/youtu.be\/IOaFh-yJk_k&quot; target=&quot;_blank&quot;&gt;\n        &lt;figure class=&quot;card__figure&quot;&gt;&lt;img src=&quot;https:\/\/source.unsplash.com\/HzEb3ZRtV88\/900x600&quot;\/&gt;&lt;\/figure&gt;\n        &lt;div class=&quot;card__content&quot;&gt;\n          &lt;span class=&quot;card__meta link-nested&quot; data-nested-link=&quot;https:\/\/codepen.io\/StephenScaff\/&quot;&gt;Nested Link&lt;\/span&gt;\n          &lt;h3 class=&quot;card__title&quot;&gt;Girls ain't nothing but trouble&lt;\/h3&gt;\n          &lt;p class=&quot;card__text&quot;&gt;Listen homeboys don't mean to bust your bubble, but girls of the world ain't nothing but trouble.&lt;\/p&gt;\n            \n            &lt;span class=&quot;card__btn&quot;&gt;Read More&lt;\/span&gt;\n        &lt;\/div&gt;\n     &lt;\/a&gt;\n  &lt;\/article&gt;\n  \n  &lt;article class=&quot;card&quot;&gt;\n      &lt;a class=&quot;card__link&quot; href=&quot;https:\/\/youtu.be\/OMnbw-AM4VA&quot; target=&quot;_blank&quot;&gt;\n        &lt;figure class=&quot;card__figure&quot;&gt;&lt;img src=&quot;http:\/\/source.unsplash.com\/-udZnjsCzsE\/900x600&quot;\/&gt;&lt;\/figure&gt;\n        &lt;div class=&quot;card__content&quot;&gt;\n          &lt;span class=&quot;card__meta link-nested&quot; data-nested-link=&quot;https:\/\/codepen.io\/StephenScaff\/&quot;&gt;The Nested  Link&lt;\/span&gt;\n          &lt;h3 class=&quot;card__title&quot;&gt;Nightmare on my street&lt;\/h3&gt;\n          &lt;p class=&quot;card__text&quot;&gt;But when I got home and laid down to sleep, that began the nightmare, but on my street!&lt;\/p&gt;\n            \n            &lt;span class=&quot;card__btn&quot;&gt;Read More&lt;\/span&gt;\n        &lt;\/div&gt;\n     &lt;\/a&gt;\n  &lt;\/article&gt;\n  &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/section&gt;\n&lt;\/main&gt;\n\/\/\u0410\u0432\u0442\u043e\u0440: Stephen Scaff. @StephenScaff<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;css&quot;,&quot;mime&quot;:&quot;text\/css&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;CSS&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;css&quot;}\">*, *:before, *:after {\n  box-sizing: border-box;\n}\n\nhtml, body {\n  background: #efefef;\n  font-family: Poppins, helvetica;\n}\n\nbody {\n  margin: 0;\n  width: 100%;\n  font-weight: 400;\n  font-style: normal;\n  -ms-text-size-adjust: 100%;\n  -webkit-text-size-adjust: 100%;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  text-rendering: optimizeLegibility;\n}\n@media (max-width: 76em) and (min-width: 40em) {\n  body {\n    font-size: 80%;\n  }\n}\n\nmain {\n  padding: 2em 0 4em;\n}\n\na {\n  text-decoration: none;\n  color: #1c1c1c;\n}\n\n.link-nested {\n  position: relative;\n  display: block;\n  margin-bottom: 0.5em;\n  color: #2bd6de;\n  cursor: pointer;\n  transition: color 0.5s ease;\n}\n.link-nested:hover {\n  color: #aaa;\n}\n\n.grid {\n  margin: 0 auto;\n  width: 95%;\n  max-width: 60em;\n}\n\n.content {\n  text-align: center;\n}\n.content p {\n  max-width: 39em;\n  margin: 0 auto;\n  padding: 0 2%;\n}\n\n.cards {\n  padding: 2em 0;\n}\n@media (min-width: 40em) {\n  .cards__grid {\n    display: flex;\n    flex-direction: row;\n    flex-flow: wrap;\n    justify-content: center;\n    margin: 0 -1em;\n  }\n}\n@media (min-width: 40em) {\n  .cards__grid &gt; * {\n    width: 50%;\n    max-width: 50%;\n    flex-basis: 50%;\n    padding: 1em;\n  }\n}\n\n.card {\n  position: relative;\n  display: block;\n  margin-bottom: 1em;\n}\n.card__link {\n  position: relative;\n  display: block;\n  margin-bottom: 2em;\n  transition: transform 0.5s ease-in-out;\n}\n.card__link:hover {\n  transform: translate3d(0, -0.4em, 0);\n}\n.card__link:before {\n  content: &quot;&quot;;\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  box-shadow: 0 0 4em rgba(0, 0, 0, 0.35);\n  opacity: 0;\n  transition: opacity 0.3s ease-in-out;\n}\n.card__link:hover:before {\n  opacity: 1;\n}\n.card__figure {\n  margin: 0;\n}\n.card__figure img {\n  display: block;\n  width: 100%;\n  max-width: 100%;\n}\n.card__content {\n  padding: 2em 2em;\n  background: #fff;\n  min-height: 21em;\n}\n.card__meta {\n  margin-bottom: 1em;\n  font-size: 0.9em;\n  text-transform: uppercase;\n  letter-spacing: 0.1em;\n}\n.card__title {\n  margin: 0 0 0.25em;\n  font-size: 1.7em;\n  line-height: 1.4;\n}\n.card__text {\n  margin-bottom: 1em;\n  color: #aaa;\n}\n.card__btn {\n  display: block;\n  margin: 1em 0;\n  text-transform: uppercase;\n  letter-spacing: 0.1em;\n  color: #111;\n}\n@media (min-width: 40em) {\n  .card__btn {\n    position: absolute;\n    bottom: 1em;\n  }\n}<\/pre><\/div>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;javascript&quot;,&quot;mime&quot;:&quot;text\/javascript&quot;,&quot;theme&quot;:&quot;cobalt&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;JavaScript&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;js&quot;}\">var NestedLinks = (function () {\n    var nestedLinks = document.querySelectorAll(&quot;[data-nested-link]&quot;);\n  \n    return {\n      \/**\n       * Init\n       *\/\n      init: function () {\n        this.buildLink();\n      },\n  \n      \/**\n       * Build Link\n       * Constructs our nested link from our data attribute\n       *\/\n      buildLink: function () {\n        Array.from(nestedLinks).forEach(function (nestedLink) {\n          nestedLink.addEventListener(&quot;click&quot;, function (e) {\n            var fakieLink = this.dataset.nestedLink;\n            fakieLink &amp;&amp;\n              (e.preventDefault(),\n              e.stopPropagation(),\n              window.open &amp;&amp; e.metaKey\n                ? window.open(fakieLink)\n                : window.location.assign(fakieLink));\n          });\n        });\n      }\n    };\n  })();\n  NestedLinks.init();<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[41],"class_list":["post-539","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cards","tag-cards"],"_links":{"self":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/comments?post=539"}],"version-history":[{"count":0,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/posts\/539\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media\/541"}],"wp:attachment":[{"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/media?parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/categories?post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.profidev.online\/ru\/wp-json\/wp\/v2\/tags?post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}