Skip to content

Commit

Permalink
Merge pull request #83 from jarrisondev/main
Browse files Browse the repository at this point in the history
improve responsive to all the web
  • Loading branch information
afordigital authored Oct 10, 2024
2 parents 53c6fac + cad99e1 commit 8665f64
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app/components/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const questions = [
export const FAQ = () => {
return (
<section>
<h2 className="mb-[4.5rem] text-center text-white text-[3.5rem] font-semibold">
<h2 className="mb-[4.5rem] text-center text-white text-5xl md:text-[3.5rem] font-semibold">
Preguntas frecuentes
</h2>
<div className="flex flex-col items-center justify-center gap-4 w-4/5 md:w-3/5 m-auto">
Expand Down
2 changes: 1 addition & 1 deletion app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Footer = () => {
"max-w-7xl w-full mx-auto text-center mb-10 flex flex-col justify-between items-center"
),
socialIcon: cn("inline-flex"),
copyRight: cn("text-sm mt-5 inset-x-0 bottom-2"),
copyRight: cn("text-sm mt-5 inset-x-0 bottom-2 text-center px-2"),
};

const renderSocialIcons = () =>
Expand Down
15 changes: 2 additions & 13 deletions app/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@ export const Nav = () => {
</div>
)}
</div>
<Link
href="https://docs.google.com/forms/d/e/1FAIpQLSc-tddK0-eUZODZr8ErbFHkthVZdzQTyI-xDPRRFsZN76NGzw/viewform"
className="transition-all duration-300 hover:scale-105"
>
Votar charlas
</Link>
{user ? (
<div ref={trigger}>
<button
Expand All @@ -139,7 +133,7 @@ export const Nav = () => {
alt="user avatar image"
width={40}
height={40}
className="relative rounded-full border-2 border-caSecondary-500 hover:scale-105 cursor-pointer transition-all duration-300"
className="relative overflow-hidden rounded-full border-2 border-caSecondary-500 hover:scale-105 cursor-pointer transition-all duration-300"
/>
</button>
{isOpen && (
Expand Down Expand Up @@ -191,12 +185,7 @@ export const Nav = () => {
: "max-h-0 opacity-0 overflow-hidden"
}`}
>
<Link
href="https://docs.google.com/forms/d/e/1FAIpQLSc-tddK0-eUZODZr8ErbFHkthVZdzQTyI-xDPRRFsZN76NGzw/viewform"
className="transition-all duration-300 hover:scale-105"
>
Votar charlas
</Link>

{user ? (
<Button
variant="secondary"
Expand Down
2 changes: 1 addition & 1 deletion app/components/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Schedule = () => {
const timezone = useTimezone();
return (
<section className="w-full mx-auto max-w-sm md:max-w-6xl">
<h2 className="text-center font-semibold text-[56px] text-hero ">
<h2 className="text-center font-semibold text-[56px] text-5xl sm:text-hero ">
Horarios y charlas
</h2>
<span className="flex justify-center my-12 text-sm">
Expand Down
2 changes: 1 addition & 1 deletion app/components/Ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Ticket = forwardRef<HTMLDivElement, TicketProps>(function Ticket(
<div className="flex gap-5 items-center">
<img
data-atropos-offset="2"
className="w-8 lg:w-16 sm:w-28 aspect-square rounded-full p-[0.1rem] bg-gradient-to-rb from-caPrimary-600 to-caSecondary-500"
className="w-8 lg:w-16 sm:w-28 overflow-hidden aspect-square rounded-full p-[0.1rem] bg-gradient-to-rb from-caPrimary-600 to-caSecondary-500"
src={avatar}
id="avatar"
alt={`Avatar de ${name}`}
Expand Down
2 changes: 1 addition & 1 deletion app/components/TicketDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const TicketDownload = () => {
id="ticket"
className="w-full min-h-[600px] max-w-6xl items-center mx-auto flex gap-12 flex-col py-7"
>
<p className="text-3xl font-semibold">
<p className="text-2xl md:text-3xl font-semibold text-center">
Descarga tu ticket y compártelo en redes sociales
</p>
{user && (
Expand Down
9 changes: 4 additions & 5 deletions app/components/WelcomeHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,18 @@ export const WelcomeHero: FC<Props> = ({ variant, children }) => {
>
<div className="relative z-20 flex flex-col gap-10 items-center text-center">
<div className="flex flex-col gap-2">
<p className="text-balance text-hero font-semibold lg:text-wrap">
¡Gracias por estar presente en el
<p className="text-center md:text-balance text-5xl sm:text-hero font-semibold lg:text-wrap">
¡Gracias por estar presente en el {' '}
<a
href="https://x.com/search?q=%23Aforshow" target="_blank"
rel="noreferrer"
className="inline-block bg-gradient-to-r from-caPrimary-500 to-caSecondary-500 text-transparent bg-clip-text font-[800]">
Aforshow
Aforshow!
</a>
!
</p>
{children}
</div>
<div className="md:w-5/6 w-full px-3">
<div className="md:w-5/6 w-full px-4">
<h2 className="text-caTextSecondary text-lg mb-3">
Puedes ver la repetición del evento aquí:
</h2>
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/Contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Contributors = () => {

return (
<section className="text-center my-10">
<h4 className="text-3xl text-white">Contribuidores del desarrollo</h4>
<h4 className="text-2xl md:text-3xl text-white">Contribuidores del desarrollo</h4>
<div className="mt-10">
{contributors.length > 0 && (
<div
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Summary = ({
return (
<div className={cn("w-full group", className)}>
<div
className="font-bold text-[1.75rem] text-white cursor-pointer relative flex items-center justify-between"
className="font-bold text-xl md:text-[1.75rem] text-white cursor-pointer relative flex items-center justify-between"
onClick={toggleOpen}
>
{title}
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Table = ({ title, authors, timestamp }: TableProps) => {
return (
<article className="grid items-center">
<footer className="flex flex-col items-center gap-2 md:row-span-2 lg:row-auto">
<p className="font-semibold md:text-3xl leading-7 md:leading-10 text-scheduleTitle text-wrap">
<p className="font-semibold md:text-3xl leading-7 md:leading-10 text-scheduleTitle text-wrap text-center">
{title}
</p>
<p className="text-[#B3B3B3] text-scheduleAuthor md:text-3xl italic">
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface ButtonProps
const Button = ({ className, variant, size, ...props }: ButtonProps) => {
return (
<button
className={cn(buttonVariants({ variant, size, className }))}
className={cn(buttonVariants({ variant, size, className }), 'max-sm:text-sm')}
{...props}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Home({

return (
<CursorsContextProvider room={room} host={host}>
<main className="font-dmSans">
<main className="font-dmSans overflow-x-hidden">
<Cursors />
<Hero />
<section className="flex flex-col gap-[72px]">
Expand Down

0 comments on commit 8665f64

Please sign in to comment.