Changes for page Academy
Last modified by Erik Bakker on 2024/09/24 16:12
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.GadgetClass[1]
-
- content
-
... ... @@ -1,198 +1,48 @@ 1 -{{code}} 2 -@import url('https://fonts.googleapis.com/css?family=Heebo:400,700|Open+Sans:400,700'); 3 - 4 -:root { 5 - --color: #3c3163; 6 - --transition-time: 0.5s; 7 -} 8 - 9 -* { 10 - box-sizing: border-box; 11 -} 12 - 13 -body { 14 - margin: 0; 15 - min-height: 100vh; 16 - font-family: 'Open Sans'; 17 - background: #fafafa; 18 -} 19 - 20 -a { 21 - color: inherit; 22 -} 23 - 24 -.cards-wrapper { 25 - display: grid; 26 - justify-content: center; 27 - align-items: center; 28 - grid-template-columns: 1fr 1fr 1fr; 29 - grid-gap: 4rem; 30 - padding: 4rem; 31 - margin: 0 auto; 32 - width: max-content; 33 -} 34 - 35 -.card { 36 - font-family: 'Heebo'; 37 - --bg-filter-opacity: 0.5; 38 - background-image: linear-gradient(rgba(0,0,0,var(--bg-filter-opacity)),rgba(0,0,0,var(--bg-filter-opacity))), var(--bg-img); 39 - height: 20em; 40 - width: 15em; 41 - font-size: 1.5em; 42 - color: white; 43 - border-radius: 1em; 44 - padding: 1em; 45 - /*margin: 2em;*/ 46 - display: flex; 47 - align-items: flex-end; 48 - background-size: cover; 49 - background-position: center; 50 - box-shadow: 0 0 5em -1em black; 51 - transition: all, var(--transition-time); 52 - position: relative; 53 - overflow: hidden; 54 - border: 10px solid #ccc; 55 - text-decoration: none; 56 -} 57 - 58 -.card:hover { 59 - transform: rotate(0); 60 -} 61 - 62 -.card h1 { 63 - margin: 0; 64 - font-size: 1.5em; 65 - line-height: 1.2em; 66 -} 67 - 68 -.card p { 69 - font-size: 0.75em; 70 - font-family: 'Open Sans'; 71 - margin-top: 0.5em; 72 - line-height: 2em; 73 -} 74 - 75 -.card .tags { 76 - display: flex; 77 -} 78 - 79 -.card .tags .tag { 80 - font-size: 0.75em; 81 - background: rgba(255,255,255,0.5); 82 - border-radius: 0.3rem; 83 - padding: 0 0.5em; 84 - margin-right: 0.5em; 85 - line-height: 1.5em; 86 - transition: all, var(--transition-time); 87 -} 88 - 89 -.card:hover .tags .tag { 90 - background: var(--color); 91 - color: white; 92 -} 93 - 94 -.card .date { 95 - position: absolute; 96 - top: 0; 97 - right: 0; 98 - font-size: 0.75em; 99 - padding: 1em; 100 - line-height: 1em; 101 - opacity: .8; 102 -} 103 - 104 -.card:before, .card:after { 105 - content: ''; 106 - transform: scale(0); 107 - transform-origin: top left; 108 - border-radius: 50%; 109 - position: absolute; 110 - left: -50%; 111 - top: -50%; 112 - z-index: -5; 113 - transition: all, var(--transition-time); 114 - transition-timing-function: ease-in-out; 115 -} 116 - 117 -.card:before { 118 - background: #ddd; 119 - width: 250%; 120 - height: 250%; 121 -} 122 - 123 -.card:after { 124 - background: white; 125 - width: 200%; 126 - height: 200%; 127 -} 128 - 129 -.card:hover { 130 - color: var(--color); 131 -} 132 - 133 -.card:hover:before, .card:hover:after { 134 - transform: scale(1); 135 -} 136 - 137 -.card-grid-space .num { 138 - font-size: 3em; 139 - margin-bottom: 1.2rem; 140 - margin-left: 1rem; 141 -} 142 - 143 -.info { 144 - font-size: 1.2em; 145 - display: flex; 146 - padding: 1em 3em; 147 - height: 3em; 148 -} 149 - 150 -.info img { 151 - height: 3em; 152 - margin-right: 0.5em; 153 -} 154 - 155 -.info h1 { 156 - font-size: 1em; 157 - font-weight: normal; 158 -} 159 - 160 -/* MEDIA QUERIES */ 161 -@media screen and (max-width: 1285px) { 162 - .cards-wrapper { 163 - grid-template-columns: 1fr 1fr; 164 - } 165 -} 166 - 167 -@media screen and (max-width: 900px) { 168 - .cards-wrapper { 169 - grid-template-columns: 1fr; 170 - } 171 - .info { 172 - justify-content: center; 173 - } 174 - .card-grid-space .num { 175 - /margin-left: 0; 176 - /text-align: center; 177 - } 178 -} 179 - 180 -@media screen and (max-width: 500px) { 181 - .cards-wrapper { 182 - padding: 4rem 2rem; 183 - } 184 - .card { 185 - max-width: calc(100vw - 4rem); 186 - } 187 -} 188 - 189 -@media screen and (max-width: 450px) { 190 - .info { 191 - display: block; 192 - text-align: center; 193 - } 194 - .info h1 { 195 - margin: 0; 196 - } 197 -} 198 -{{/code}} 1 +{{html}} 2 +<section class="info"> 3 + <img src="https://codetheweb.blog/assets/img/icon2.png"> 4 + <h1>Learn HTML — <a href="https://codetheweb.blog/" target="_blank">Code The Web</a></h1> 5 +</section> 6 +<section class="cards-wrapper"> 7 + <div class="card-grid-space"> 8 + <div class="num">01</div> 9 + <a class="card" href="https://codetheweb.blog/2017/10/06/html-syntax/" style="--bg-img: url(https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&resize_w=1500&url=https://codetheweb.blog/assets/img/posts/html-syntax/cover.jpg)"> 10 + <div> 11 + <h1>HTML Syntax</h1> 12 + <p>The syntax of a language is how it works. How to actually write it. Learn HTML syntax…</p> 13 + <div class="date">6 Oct 2017</div> 14 + <div class="tags"> 15 + <div class="tag">HTML</div> 16 + </div> 17 + </div> 18 + </a> 19 + </div> 20 + <div class="card-grid-space"> 21 + <div class="num">02</div> 22 + <a class="card" href="https://codetheweb.blog/2017/10/09/basic-types-of-html-tags/" style="--bg-img: url('https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&resize_w=1500&url=https://codetheweb.blog/assets/img/posts/basic-types-of-html-tags/cover.jpg')"> 23 + <div> 24 + <h1>Basic types of HTML tags</h1> 25 + <p>Learn about some of the most common HTML tags…</p> 26 + <div class="date">9 Oct 2017</div> 27 + <div class="tags"> 28 + <div class="tag">HTML</div> 29 + </div> 30 + </div> 31 + </a> 32 + </div> 33 + <div class="card-grid-space"> 34 + <div class="num">03</div> 35 + <a class="card" href="https://codetheweb.blog/2017/10/14/links-images-about-file-paths/" style="--bg-img: url('https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&resize_w=1500&url=https://codetheweb.blog/assets/img/posts/links-images-about-file-paths/cover.jpg')"> 36 + <div> 37 + <h1>Links, images and about file paths</h1> 38 + <p>Learn how to use links and images along with file paths…</p> 39 + <div class="date">14 Oct 2017</div> 40 + <div class="tags"> 41 + <div class="tag">HTML</div> 42 + </div> 43 + </div> 44 + </a> 45 + </div> 46 + <!-- https://images.unsplash.com/photo-1520839090488-4a6c211e2f94?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=38951b8650067840307cba514b554ba5&auto=format&fit=crop&w=1350&q=80 --> 47 +</section> 48 +{{/html}} - title
-
... ... @@ -1,1 +1,1 @@ 1 -$services.localization.render('rendering.macro. code.name')1 +$services.localization.render('rendering.macro.html.name')