docs: 📝 update docs

This commit is contained in:
Leifer Mendez
2022-12-22 13:49:37 +01:00
parent 160adee406
commit 65ffbc358d
10 changed files with 145 additions and 40 deletions

View File

@@ -0,0 +1,27 @@
import { component$ } from '@builder.io/qwik'
import { useLocation } from '@builder.io/qwik-city'
/**
* options = [] array con la lista de opciones de la documentacion
*/
export default component$(
({
options = [],
}: {
options: { link: string; name: string; class?: string }[]
}) => {
const { pathname } = useLocation()
const editUrl = ` https://github.com/codigoencasa/bot-whatsapp/edit/dev/packages/docs/src/routes${pathname}index.mdx`
return (
<div>
<ul>
{options.map((opt) => (
<li class={opt.class}>
<a href={editUrl}>{opt.name}</a>
</li>
))}
</ul>
</div>
)
}
)

View File

@@ -13,11 +13,6 @@ export default component$(() => {
items: [
{ title: 'Features', href: '#' },
{ title: 'Security', href: '#' },
{ title: 'Team', href: '#' },
{ title: 'Enterprise', href: '#' },
{ title: 'Customer stories', href: '#' },
{ title: 'Pricing', href: '#' },
{ title: 'Resources', href: '#' },
],
},
{
@@ -25,9 +20,6 @@ export default component$(() => {
items: [
{ title: 'Developer API', href: '#' },
{ title: 'Partners', href: '#' },
{ title: 'Atom', href: '#' },
{ title: 'Electron', href: '#' },
{ title: 'Qwind Desktop', href: '#' },
],
},
{
@@ -35,9 +27,6 @@ export default component$(() => {
items: [
{ title: 'Docs', href: '#' },
{ title: 'Community Forum', href: '#' },
{ title: 'Professional Services', href: '#' },
{ title: 'Skills', href: '#' },
{ title: 'Status', href: '#' },
],
},
{
@@ -45,11 +34,6 @@ export default component$(() => {
items: [
{ title: 'About', href: '#' },
{ title: 'Blog', href: '#' },
{ title: 'Careers', href: '#' },
{ title: 'Press', href: '#' },
{ title: 'Inclusion', href: '#' },
{ title: 'Social Impact', href: '#' },
{ title: 'Shop', href: '#' },
],
},
]
@@ -79,9 +63,10 @@ export default component$(() => {
</Link>
</div>
<div class="text-sm text-gray-600 dark:text-gray-400">
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Morbi sagittis, quam nec venenatis lobortis,
mi risus tempus nulla
Nos sentimos muy afortunados de poder contribuir a
este proyecto y esperamos poder seguir trabajando
juntos para ayudar a los pequeños comercios a
impulsar sus ventas y fortalecer la economía local.
</div>
</div>
{links.map(({ title, items }) => (

View File

@@ -81,16 +81,20 @@ export default component$(() => {
</li>
<li>
<a
target={'_blank'}
class="font-medium hover:text-gray-900 dark:hover:text-white px-4 py-3 flex items-center transition duration-150 ease-in-out"
href={'/blog'}
href={
'https://codigoencasa.com/tag/bot-whatsapp/'
}
>
Blog
</a>
</li>
<li class="md:hidden">
<a
target={'_blank'}
class="font-bold hover:text-gray-900 dark:hover:text-white px-4 py-3 flex items-center transition duration-150 ease-in-out"
href="https://github.com/onwidget/qwind"
href="https://github.com/codigoencasa/bot-whatsapp"
>
Github
</a>
@@ -100,7 +104,7 @@ export default component$(() => {
<div class="hidden items-center md:flex">
<ToggleTheme />
<a
href="https://github.com/onwidget/qwind"
href="https://github.com/codigoencasa/bot-whatsapp"
class="inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm p-2.5"
aria-label="Qwind Github"
>

View File

@@ -1,20 +1,28 @@
import { component$ } from '@builder.io/qwik'
import { useLocation } from '@builder.io/qwik-city'
/**
* options = [] array con la lista de opciones de la documentacion
*/
export default component$(
({
options = [],
}: {
options: { link: string; name: string; class?: string }[]
}) => {
({ options = [] }: { options: { link: string; name: string }[] }) => {
const location = useLocation()
const currentPage = location.pathname
return (
<div>
<ul>
{options.map((opt) => (
<li class={opt.class}>
<a href={opt.link}>{opt.name}</a>
<li>
<a
class={
currentPage === `${opt.link}/`
? 'font-semibold'
: ''
}
href={opt.link}
>
{opt.name}
</a>
</li>
))}
</ul>