From f697769a3cacbbb34e595d68837d5c344b25a3a3 Mon Sep 17 00:00:00 2001 From: serefyarar Date: Sat, 11 Jan 2025 12:50:37 -0500 Subject: [PATCH] iterate --- web-app/next.config.js | 12 ++++--- web-app/public/images/apple-logo.png | Bin 0 -> 5774 bytes web-app/src/app/layout.tsx | 9 +++-- web-app/src/components/new/AppHeader.tsx | 31 ++++++++++++++---- .../src/components/sections/landing/Hero.tsx | 13 +++++++- 5 files changed, 48 insertions(+), 17 deletions(-) create mode 100644 web-app/public/images/apple-logo.png diff --git a/web-app/next.config.js b/web-app/next.config.js index 1684fba9..649f106d 100644 --- a/web-app/next.config.js +++ b/web-app/next.config.js @@ -1,13 +1,17 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - async rewrites() { + async redirects() { return [ { - source: "/", - destination: "/home", + source: '/_error', + destination: '/', + permanent: false, }, ]; }, + async rewrites() { + return []; + }, reactStrictMode: false, images: { remotePatterns: [ @@ -85,7 +89,7 @@ module.exports = withSentryConfig( hideSourceMaps: true, // Automatically tree-shake Sentry logger statements to reduce bundle size - disableLogger: true, + disableLogger: false, // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.) // See the following for more information: diff --git a/web-app/public/images/apple-logo.png b/web-app/public/images/apple-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..31fa44e6ee5de172cff7c22e555bdf398a2215d0 GIT binary patch literal 5774 zcmeHL2U8Qk)&-H?AyO5H5J;pG=|!qQhzNu#BBA#ZDFLM@M8K#RB??lcgH!`ZlNv}= zI*KA44I)xQmlELN`+mmv?#!Nh_s-6l*)zL$XYWHROH)oZ5jHwHI!<#lV;efUGpFGh zIu?dg*Igp@>C`cV8JgR&u&_-2y#C{K${K3s6h=p{uJ~`zt3|vNI!y|Pn>dCeLcGJ# zZnwSY&}g)RUvNN}hg+zZLdb2OtTi2xQyw}ixUI>_$;s*Z|JnZ(`2VQ@yJX|f)19A$ z+gKv#=+7{mWn^MzVP#|I;N;@w;pO88oD&c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nl;TUI8L?puQ-q* znQraiZ@lM3eUUXNdlBy`VZWC5^}~dBO8WLVKGR~`aB8Lfxs695@0FYeYyUsfa-`u< z*g(wenVM~m;;RS1*KAixzjjKIzU6!2T@I84YgF&m$`)7gdT=8m^RH0ke8jv;OMo-G zF6QG8hc9&*ri{i@)$5*J5-X*p zgIa)Io`VIn{vmjixpUpTwjb|-yPYamOhcZxu}Zh;jn}z{ z51;yrj~9Ik_~s`6Ap0Kv+pcr3aS`EVpYVNoc5hv1M3=5QXUksYEg7+IJFOMe9Idc8 zbC9GmE2L`QJ*jMSq%=gc&5o%-CaAHY^y#aX7e6yGfX2ft4%2y2bS~OaEfQ2ZrwWA$ zWio%kE!Bz_-jx+w{7$F(oi_EbPdK3}QKIvkU3i)MZc5~v`ga~{&hU>f#X0vIUyJ_f z{ooh7Y3;B|-NSRWwQK*n!gc&y!Bz+Dt?+!r`>ScVC!FaQ^OM(J!{x3WMZkpN{T`!5VelnKwUO59)hVkY$@e1$Nb0;OdhH3F@&@3lG@!bb2H(Ju2 zv}LIQiMaWloMYVpnT?4>Kb(l>?z3x^`AcZi3(u0ko;y)dssVxI3x`Jj3h_U(rs_Gb zyN&^PVOKUron}$r?R7sxFW6XAtsTA8wm#~~NUP;(dp9a*`P#MT!i3i0`&~cW`%gN@ z?+a9EA$E^SxDQR}Im-S%;vMm6?+E9Que`JIsE|3LoY@@KcmJszY@PW9d+DvuWnz`R qGZilBP=$`j_2^hFag>!p|ADI|tUi8sxZe6-7tq|q(zx0XneZRc=4BZG literal 0 HcmV?d00001 diff --git a/web-app/src/app/layout.tsx b/web-app/src/app/layout.tsx index 50b9a382..f44ade61 100644 --- a/web-app/src/app/layout.tsx +++ b/web-app/src/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata, Viewport } from "next"; import { Inter } from "next/font/google"; import { headers } from "next/headers"; +import { redirect } from "next/navigation"; const inter = Inter({ subsets: ["latin"] }); @@ -47,19 +48,17 @@ export default function RootLayout({ const heads = headers(); const pathname = heads.get("x-url"); - let page = "landing"; if (pathname) { const urlObj1 = new URL(pathname); - if (urlObj1.pathname !== "/") { - page = "app"; + redirect("/"); } } return ( - + - {children} + {children} ); diff --git a/web-app/src/components/new/AppHeader.tsx b/web-app/src/components/new/AppHeader.tsx index cf954fb5..9655e205 100644 --- a/web-app/src/components/new/AppHeader.tsx +++ b/web-app/src/components/new/AppHeader.tsx @@ -44,11 +44,6 @@ const AppHeader = () => { />
+ }}> +
+ Apple logo + Download Beta +
+ + }}> +
+ Apple logo + Download Beta +
+