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

Alais29/sanity footer #46

Merged
merged 5 commits into from
Jun 11, 2024
Merged

Alais29/sanity footer #46

merged 5 commits into from
Jun 11, 2024

Conversation

Alais29
Copy link
Contributor

@Alais29 Alais29 commented Jun 5, 2024

Summary

  • Footer and header data is now dinamically fetched from sanity
  • Add social icons options to sanity schema to render the one selected
  • Add 2 new variants to Link component to reuse it to render social links and section links on footer and the header links
  • Make repo commitizen friendly for a better experience when creating a new commit

UI

Before:

image

After:

image

@Alais29 Alais29 requested a review from joseglego June 5, 2024 22:56
Copy link

socket-security bot commented Jun 5, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] eval Transitive: environment, filesystem, shell +26 1.17 MB commitizen-bot
npm/[email protected] environment Transitive: eval, filesystem +14 1.34 MB commitizen-bot

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link

cloudflare-workers-and-pages bot commented Jun 6, 2024

Deploying 2024 with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce18a59
Status: ✅  Deploy successful!
Preview URL: https://0f6c71c0.2024-9yz.pages.dev
Branch Preview URL: https://alais29-sanity-footer.2024-9yz.pages.dev

View logs

@Alais29
Copy link
Contributor Author

Alais29 commented Jun 6, 2024

Replaced Header code for the one merged in #47

@@ -1,35 +1,50 @@
import { defineField, defineType } from 'sanity'
import { defineField, defineType } from "sanity";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me gusto esto! Muchas gracias 👍

@@ -14,7 +14,8 @@
"lint:fix": "eslint ./src --cache --fix",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que este tipo de cambios es mejor discutirlos antes. Para hacer sync :)

href={link.url ?? ""}
target={link.target ?? ""}
className={cn(
"flex font-barlow justify-center gap-2 p-4 py-2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muchos espacios en blanco innecesarios. Quizás deberíamos tener algo para esto automatizado 🤔 (noté que la versión anterior también tiene.

@@ -14,6 +14,8 @@ const linkVariants = cva(
default: "bg-jsconf-yellow text-black hover:bg-[#C8BC4F]",
outline:
"border border-jsconf-yellow bg-stone-950 text-white hover:bg-stone-900",
link: "mb-0 w-auto p-0 text-base font-normal hover:text-jsconf-yellow",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me gustó esto

Copy link
Member

@joseglego joseglego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Alais29 Alais29 merged commit 3c0b310 into main Jun 11, 2024
4 checks passed
@Alais29 Alais29 deleted the alais29/sanity-footer branch June 11, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants