Skip to content

Commit

Permalink
iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jan 11, 2025
1 parent f72b917 commit f697769
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 17 deletions.
12 changes: 8 additions & 4 deletions web-app/next.config.js
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down Expand Up @@ -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:
Expand Down
Binary file added web-app/public/images/apple-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions web-app/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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"] });

Expand Down Expand Up @@ -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 (
<html lang="en" id={page}>
<html lang="en" id="landing">
<body className={inter.className}>
{children}
{children}
</body>
</html>
);
Expand Down
31 changes: 24 additions & 7 deletions web-app/src/components/new/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ const AppHeader = () => {
/>
<div className="hidden md:flex gap-24 items-center">
<ul className="flex md:gap-4 lg:gap-12 text-white text-sm">
<li>
<a href="https://index.network" className="hover:underline">
HOME
</a>
</li>

<li>
<a
Expand All @@ -71,13 +66,35 @@ const AppHeader = () => {
</ul>
<Button onClick={() => {
router.push("https://testflight.apple.com/join/e6sekS5x");
}}>Download Beta App</Button>
}}>
<div className="flex items-center gap-2">
<Image
width={16}
height={16}
style={{ marginRight: "8px" }}
src="/images/apple-logo.png"
alt="Apple logo"
/>
Download Beta
</div>
</Button>
</div>

<div className="md:hidden flex flex-row gap-4 items-center">
<Button onClick={() => {
router.push("https://testflight.apple.com/join/e6sekS5x");
}}>Download Beta App</Button>
}}>
<div className="flex items-center gap-2">
<Image
width={16}
height={16}
style={{ marginRight: "8px" }}
src="/images/apple-logo.png"
alt="Apple logo"
/>
Download Beta
</div>
</Button>
<button
className="text-white"
onClick={() => setIsMenuOpen(!isMenuOpen)}
Expand Down
13 changes: 12 additions & 1 deletion web-app/src/components/sections/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@ const HeroSection = () => {
<div className="flex gap-4">
<Button onClick={() => {
router.push("https://testflight.apple.com/join/e6sekS5x");
}}>Download Beta App</Button>
}}>
<div className="flex items-center gap-2">
<Image
width={16}
height={16}
style={{ marginRight: "8px" }}
src="/images/apple-logo.png"
alt="Apple logo"
/>
Download Beta
</div>
</Button>
<Button
variant="outline"
onClick={() => {
Expand Down

0 comments on commit f697769

Please sign in to comment.