|
4 | 4 |
|
5 | 5 | <script setup> |
6 | 6 | import VideoModal from '@theme/components/shared/VideoModal.vue' |
| 7 | +import Button from '@theme/components/shared/Button.vue' |
7 | 8 | </script> |
8 | 9 |
|
9 | 10 | Blade is Laravel's own templating engine that makes creating dynamic views easy. It lets you mix regular PHP code with its own features for more flexibility, has a clean syntax and caches your views for faster performance. |
@@ -89,6 +90,135 @@ Blade views are a pretty sweet mixture of HTML, PHP, and clean syntax. You can c |
89 | 90 |
|
90 | 91 | This should look pretty familiar if you know HTML (of course you do). The only difference is the <span v-pre>`{{ $name }}`</span> part. This is Blade's way of creating a variable in your view. When you render this view, Blade will allow you pass in a variable called `$name` and it will be displayed in place of <span v-pre>`{{ $name }}`</span>. Let's see how you can render this view. |
91 | 92 |
|
| 93 | +<section id="leaf-zero" class="rounded-2xl shadow-md outline outline-gray-100 p-4 md:p-10"> |
| 94 | + <p |
| 95 | + class="mt-4 text-3xl sm:text-4xl text-slate-900 font-extrabold tracking-tight dark:text-slate-50" |
| 96 | + > |
| 97 | + Ship even faster with Leaf Zero. |
| 98 | + </p> |
| 99 | + <p class="mt-4 max-w-3xl space-y-6"> |
| 100 | + Zero is a collection of free pre-built components, page sections, and templates powered by Blade, Tailwind and Alpine JS to help you build your UIs faster. |
| 101 | + </p> |
| 102 | + <Button as="a" href="/docs/frontend/zero" class="!text-white bg-red-500 hover:bg-red-600">View Leaf Zero</Button> |
| 103 | + <div class="relative pt-10 xl:pt-0 mt-10"> |
| 104 | + <div |
| 105 | + class="hidden dark:block absolute top-0 inset-x-0 h-[37.5rem] bg-gradient-to-b from-[#0c1120] xl:top-18" |
| 106 | + ></div> |
| 107 | + <div |
| 108 | + class="absolute inset-x-0 bg-top bg-no-repeat GridLockup_beams-0___8Vns top-0 xl:top-18" |
| 109 | + ></div> |
| 110 | + <div |
| 111 | + class="absolute inset-x-0 h-[37.5rem] bg-grid-slate-900/[0.04] bg-top [mask-image:linear-gradient(0deg,transparent,black)] dark:bg-grid-slate-100/[0.03] dark:bg-[center_top_-1px] dark:border-t dark:border-slate-100/5 top-0 xl:top-18" |
| 112 | + ></div> |
| 113 | + <div |
| 114 | + style=" |
| 115 | + mask-image: linear-gradient( |
| 116 | + to bottom, |
| 117 | + white, |
| 118 | + white, |
| 119 | + transparent |
| 120 | + ); |
| 121 | + -webkit-mask-image: linear-gradient( |
| 122 | + to bottom, |
| 123 | + white, |
| 124 | + white, |
| 125 | + transparent |
| 126 | + ); |
| 127 | + " |
| 128 | + class="max-w-7xl mx-auto sm:px-6 md:px-8" |
| 129 | + > |
| 130 | + <div class="flex justify-center"> |
| 131 | + <div class="w-[216%] ml-[28%] flex-none sm:w-[76rem] sm:ml-0"> |
| 132 | + <div |
| 133 | + class="relative" |
| 134 | + style="padding-top: 30.647155812036274%" |
| 135 | + > |
| 136 | + <img |
| 137 | + alt="" |
| 138 | + loading="lazy" |
| 139 | + decoding="async" |
| 140 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 141 | + class="absolute shadow-xl rounded-lg" |
| 142 | + style=" |
| 143 | + top: 3.55556%; |
| 144 | + left: 2.22589%; |
| 145 | + width: 19.4559%; |
| 146 | + opacity: 1; |
| 147 | + transform: none; |
| 148 | + " |
| 149 | + /><img |
| 150 | + alt="" |
| 151 | + loading="lazy" |
| 152 | + decoding="async" |
| 153 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 154 | + class="absolute shadow-xl rounded-lg" |
| 155 | + style=" |
| 156 | + top: 0%; |
| 157 | + left: 23.6603%; |
| 158 | + width: 46.7436%; |
| 159 | + opacity: 1; |
| 160 | + transform: none; |
| 161 | + " |
| 162 | + /><img |
| 163 | + alt="" |
| 164 | + loading="lazy" |
| 165 | + decoding="async" |
| 166 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 167 | + class="absolute shadow-xl rounded-lg" |
| 168 | + style=" |
| 169 | + top: 6.96296%; |
| 170 | + left: 72.3825%; |
| 171 | + width: 25.3916%; |
| 172 | + opacity: 1; |
| 173 | + transform: none; |
| 174 | + " |
| 175 | + /><img |
| 176 | + alt="" |
| 177 | + loading="lazy" |
| 178 | + decoding="async" |
| 179 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 180 | + class="absolute shadow-xl rounded-lg" |
| 181 | + style=" |
| 182 | + top: 42.8148%; |
| 183 | + left: 0%; |
| 184 | + width: 38.9118%; |
| 185 | + opacity: 1; |
| 186 | + transform: none; |
| 187 | + " |
| 188 | + /><img |
| 189 | + alt="" |
| 190 | + loading="lazy" |
| 191 | + decoding="async" |
| 192 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 193 | + class="absolute shadow-xl rounded-lg" |
| 194 | + style=" |
| 195 | + top: 42.8148%; |
| 196 | + left: 40.8904%; |
| 197 | + width: 36.3561%; |
| 198 | + opacity: 1; |
| 199 | + transform: none; |
| 200 | + " |
| 201 | + /><img |
| 202 | + alt="" |
| 203 | + loading="lazy" |
| 204 | + decoding="async" |
| 205 | + src="https://zero.leafphp.dev/assets/img/hero.png" |
| 206 | + class="absolute shadow-xl rounded-lg" |
| 207 | + style=" |
| 208 | + top: 42.8148%; |
| 209 | + left: 79.2251%; |
| 210 | + width: 20.7749%; |
| 211 | + opacity: 1; |
| 212 | + transform: none; |
| 213 | + " |
| 214 | + /> |
| 215 | + </div> |
| 216 | + </div> |
| 217 | + </div> |
| 218 | + </div> |
| 219 | + </div> |
| 220 | +</section> |
| 221 | + |
92 | 222 | ## Rendering Blade Views |
93 | 223 |
|
94 | 224 | Remember we set up Blade earlier? Now we can use it to render our Blade views. Here's how you can render the `hello.blade.php` view we created earlier: |
|
0 commit comments