Remove configration notes and added to components code

This commit is contained in:
khatabwedaa
2021-05-28 11:08:06 +02:00
parent 1abb13481e
commit 6cbed66006
5 changed files with 44 additions and 2 deletions

View File

@@ -11,8 +11,6 @@
</div> </div>
</div> </div>
</div> </div>
<p class="mt-8 text-center text-gray-700 dark:text-gray-300"> Heros components require simple <span class="font-semibold">- don't panic please 😎 -</span><a href="https://gist.github.com/khatabwedaa/352573904a5b2d5ff3598bcd54ce9f04" target="_blank" class="text-blue-600 dark:text-blue-400 hover:underline"> configuration</a></p>
</div> </div>
<div class="flex justify-center mb-10"> <div class="flex justify-center mb-10">

View File

@@ -49,6 +49,17 @@
name: 'With Background Image', name: 'With Background Image',
isOpen: false, isOpen: false,
code: ` code: `
<!-- Add this to your tailwind.config.js -->
module.exports = {
theme: {
extend: {
spacing: {
128: '32rem',
},
},
},
}
<header> <header>
<nav class="bg-white shadow dark:bg-gray-800"> <nav class="bg-white shadow dark:bg-gray-800">
<div class="container px-6 py-4 mx-auto"> <div class="container px-6 py-4 mx-auto">

View File

@@ -108,6 +108,17 @@
name: 'With Image', name: 'With Image',
isOpen: false, isOpen: false,
code: ` code: `
<!-- Add this to your tailwind.config.js -->
module.exports = {
theme: {
extend: {
spacing: {
128: '32rem',
},
},
},
}
<header class="bg-white dark:bg-gray-800"> <header class="bg-white dark:bg-gray-800">
<nav class="border-b dark:border-gray-700"> <nav class="border-b dark:border-gray-700">
<div class="container px-6 py-4 mx-auto md:flex md:justify-between md:items-center"> <div class="container px-6 py-4 mx-auto md:flex md:justify-between md:items-center">

View File

@@ -58,6 +58,17 @@
return { return {
name: 'With Pattern', name: 'With Pattern',
code: ` code: `
<!-- Add this to your tailwind.config.js -->
module.exports = {
theme: {
extend: {
spacing: {
128: '32rem',
},
},
},
}
<!-- Require css --> <!-- Require css -->
<style> <style>
.pattern { .pattern {

View File

@@ -60,6 +60,17 @@
name: 'With Side Image', name: 'With Side Image',
isOpen: false, isOpen: false,
code: ` code: `
<!-- Add this to your tailwind.config.js -->
module.exports = {
theme: {
extend: {
spacing: {
128: '32rem',
},
},
},
}
<header class="bg-white dark:bg-gray-800"> <header class="bg-white dark:bg-gray-800">
<nav class="px-6 py-4 shadow"> <nav class="px-6 py-4 shadow">
<div class="items-center justify-between md:flex"> <div class="items-center justify-between md:flex">