Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 💄 Privacy page added #24

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/CustomStyles.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'swiper/css/pagination';
---

<style is:inline>

@font-face {
font-family: 'Rethink Sans';
src: url('/fonts/RethinkSans-Regular.ttf');
Expand Down
8 changes: 1 addition & 7 deletions src/components/common/Analytics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ import { ANALYTICS } from 'astrowind:config';
) : null
}

{
ANALYTICS?.vendors?.googleAnalytics?.id ? (
<FacebookPixel
id={String(ANALYTICS.vendors.facebookPixel.id)}
/>
) : null
}
{ANALYTICS?.vendors?.googleAnalytics?.id ? <FacebookPixel id={String(ANALYTICS.vendors.facebookPixel.id)} /> : null}
43 changes: 27 additions & 16 deletions src/components/common/FacebookPixel.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,39 @@ export interface Props {
partytown?: boolean;
}

const { id = "" } = Astro.props;

const { id = '' } = Astro.props;
---

{/* <ShowIf id={id}> */}
<noscript><img height="1" width="1" style="display:none"
<noscript
><img
height="1"
width="1"
style="display:none"
src="https://www.facebook.com/tr?id=818276990270615&ev=PageView&noscript=1"
/></noscript>
/></noscript
>

<script is:inline define:vars={{ id }}>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '818276990270615');
fbq('track', 'PageView');
!(function (f, b, e, v, n, t, s) {
if (f.fbq) return;
n = f.fbq = function () {
n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments);
};
if (!f._fbq) f._fbq = n;
n.push = n;
n.loaded = !0;
n.version = '2.0';
n.queue = [];
t = b.createElement(e);
t.async = !0;
t.src = v;
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s);
})(window, document, 'script', 'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '818276990270615');
fbq('track', 'PageView');
</script>
{/* </ShowIf> */}


<!-- Meta Pixel Code -->
<!-- Meta Pixel Code -->
18 changes: 16 additions & 2 deletions src/components/widgets/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface Props {
theme?: string;
}

const { socialLinks = [], links = [], theme = 'dark' } = Astro.props;
const { socialLinks = [], secondaryLinks = [], links = [], theme = 'dark' } = Astro.props;
---

<footer class:list={[{ dark: theme === 'dark' }, 'relative border-t dark:border-gray-200 border-slate-800 not-prose']}>
Expand Down Expand Up @@ -89,7 +89,21 @@ const { socialLinks = [], links = [], theme = 'dark' } = Astro.props;
</div>
<div class="grid grid-cols-1 md:grid-cols-5 gap-4 relative min-h-3 p-4 lg:px-12 sm:px-6 bg-dark-lime text-lime">
<div class="flex flex-col md:col-span-3 items-center md:items-start py-6 md:py-8">
<h4 class="font-semibold mt-2 mb-6">Términos y condiciones</h4>
<ul class="md:flex content-around">
{
secondaryLinks.map(({ text, href, ariaLabel }) => (
<li class="mb-3">
<a
class="text-muted hover:underline dark:text-lime transition duration-150 ease-in-out"
href={href}
aria-label={ariaLabel}
>
<Fragment set:html={text} />
</a>
</li>
))
}
</ul>
<p class="text-xs text-center md:text-left">
Los términos que regulan la relación entre Qompa con sus usuarios, con sus colaboradores, con sus proveedores u
otros contratistas, con sus accionistas, con sus miembros de órganos de gobierno corporativo, con sus acreedores
Expand Down
4 changes: 2 additions & 2 deletions src/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
title:
default: Qompa
template: '%s — Qompa'
description: "Transformamos a las empresas con soluciones financieras innovadoras basadas en Inteligencia Artificial"
description: 'Transformamos a las empresas con soluciones financieras innovadoras basadas en Inteligencia Artificial'
robots:
index: true
follow: true
Expand Down Expand Up @@ -71,4 +71,4 @@ analytics:
id: '818276990270615'

ui:
theme: 'dark:only' # Values: "system" | "light" | "dark" | "light:only" | "dark:only"
theme: 'dark:only' # Values: "system" | "light" | "dark" | "light:only" | "dark:only"
2 changes: 1 addition & 1 deletion src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const metadata: MetaData = {
<section class="px-4 py-16 sm:px-6 mx-auto lg:px-8 lg:py-20 max-w-4xl">
<h1 class="font-bold font-heading text-4xl md:text-5xl leading-tighter tracking-tighter">{frontmatter.title}</h1>
<div
class="mx-auto prose prose-lg max-w-4xl dark:prose-invert dark:prose-headings:text-slate-300 prose-md prose-headings:font-heading prose-headings:leading-tighter prose-headings:tracking-tighter prose-headings:font-bold prose-a:text-blue-600 dark:prose-a:text-blue-400 prose-img:rounded-md prose-img:shadow-lg mt-8"
class="mx-auto prose-lg max-w-4xl dark:prose-invert dark:prose-headings:text-dark-lime prose-md prose-headings:font-heading prose-headings:leading-tighter prose-headings:tracking-tighter prose-headings:font-bold prose-a:text-lime dark:prose-a:text-lime prose-img:rounded-md prose-img:shadow-lg mt-8"
>
<slot />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const footerData = {
],
secondaryLinks: [
// { text: 'Terms', href: getPermalink('/terms') },
// { text: 'Privacy Policy', href: getPermalink('/privacy') },
{ text: 'Políticas de privacidad', href: getPermalink('/privacy') },
],
socialLinks: [
{ ariaLabel: 'Facebook', icon: 'tabler:brand-facebook', href: 'https://www.facebook.com/qompaio' },
Expand Down
17 changes: 12 additions & 5 deletions src/pages/continue-in-app.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ import Favicons from '~/components/Favicons.astro';
<div class="absolute top-5 text-[18px] flex flex-row items-center justify-center gap-6 leading-tight">
<div class="max-w-[20%]">
<svg width="55" height="60" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.33301 19.334C3.33301 10.4974 10.4965 3.33398 19.333 3.33398H44.6663C53.5029 3.33398 60.6663 10.4974 60.6663 19.334V44.6673C60.6663 53.5039 53.5029 60.6673 44.6663 60.6673H19.333C10.4965 60.6673 3.33301 53.5039 3.33301 44.6673V19.334Z" fill="#B7E400"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M31.9993 11.917C32.5298 11.917 33.0385 12.1277 33.4136 12.5028L46.7469 25.8361C47.5279 26.6172 47.5279 27.8835 46.7469 28.6645C45.9658 29.4456 44.6995 29.4456 43.9185 28.6645L33.9993 18.7454V50.1075C33.9993 51.212 33.1039 52.1075 31.9993 52.1075C30.8948 52.1075 29.9993 51.212 29.9993 50.1075V18.7454L20.0802 28.6645C19.2992 29.4456 18.0329 29.4456 17.2518 28.6645C16.4708 27.8835 16.4708 26.6172 17.2518 25.8361L30.5851 12.5028C30.9602 12.1277 31.4689 11.917 31.9993 11.917Z" fill="#083433"/>
<path
d="M3.33301 19.334C3.33301 10.4974 10.4965 3.33398 19.333 3.33398H44.6663C53.5029 3.33398 60.6663 10.4974 60.6663 19.334V44.6673C60.6663 53.5039 53.5029 60.6673 44.6663 60.6673H19.333C10.4965 60.6673 3.33301 53.5039 3.33301 44.6673V19.334Z"
fill="#B7E400"></path>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M31.9993 11.917C32.5298 11.917 33.0385 12.1277 33.4136 12.5028L46.7469 25.8361C47.5279 26.6172 47.5279 27.8835 46.7469 28.6645C45.9658 29.4456 44.6995 29.4456 43.9185 28.6645L33.9993 18.7454V50.1075C33.9993 51.212 33.1039 52.1075 31.9993 52.1075C30.8948 52.1075 29.9993 51.212 29.9993 50.1075V18.7454L20.0802 28.6645C19.2992 29.4456 18.0329 29.4456 17.2518 28.6645C16.4708 27.8835 16.4708 26.6172 17.2518 25.8361L30.5851 12.5028C30.9602 12.1277 31.4689 11.917 31.9993 11.917Z"
fill="#083433"></path>
</svg>
</div>

Expand All @@ -31,12 +37,13 @@ import Favicons from '~/components/Favicons.astro';
<div class="flex flex-col items-center justify-center gap-8 mb-20">
<Image width={220} height={150} src="~/assets/images/ship.webp" alt="ship" />

<h1 class="font-heading text-[64px] text-[#083433] text-center leading-none tracking-normal" style={{ fontFamily: 'MDNichrome' }}>
<h1
class="font-heading text-[64px] text-[#083433] text-center leading-none tracking-normal"
style={{ fontFamily: 'MDNichrome' }}
>
Completa tu registro en la APP Qompa.
</h1>
</div>
</main>
</body>
</html>


Loading
Loading