Skip to content

Commit

Permalink
fix: new layout wrong expansion, title color
Browse files Browse the repository at this point in the history
  • Loading branch information
fran-ink committed Feb 5, 2025
1 parent 6dec51e commit 41a9586
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/app/[locale]/_components/MainContent/MainContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const MainContent: React.FC<{
disableRotating={disableRotating}
/>
}
variant="reverse-purple"
/>
<div className="flex flex-col items-center gap-5 sm:gap-6">
<div className="flex gap-4 flex-col md:flex-row">
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/new/dashboard/_components/AppsContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function AppsContent({ currentCategory }: AppsContentProps) {

return (
<>
<div className="flex flex-col gap-8 max-w-[2000px]">
<div className="flex flex-col gap-8 w-full max-w-[2000px]">
{/* Floating section on desktop */}
<div className="lg:fixed lg:flex left-[20%] right-[20%] top-8 justify-center flex-wrap gap-4 mx-4 z-10">
<SearchInput
Expand Down
6 changes: 4 additions & 2 deletions src/app/[locale]/new/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export default async function InfoLayout({
return (
<OnlyWithFeatureFlag flag="newNav">
<RoutedLayout>
<div className="relative pt-24 sm:pt-0 overflow-hidden flex flex-col gap-8 hd:flex-1 hd:items-center">
<div className="flex flex-col">{children}</div>
<div className="relative pt-24 sm:pt-0 overflow-hidden flex flex-col gap-8 w-full items-center">
<div className="flex flex-col w-full justify-center items-center">
{children}
</div>
<div>
<Footer />
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/components/BigScallableTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

import { classNames } from "@/util/classes";

import { ColoredText } from "./ColoredText";
import { ColoredText, ColoredTextProps } from "./ColoredText";

export interface BigScalableTitleProps {
title: React.ReactNode;
Expand All @@ -15,13 +15,15 @@ export interface BigScalableTitleProps {
* Community page title "Join the Ink Community" is 4vw
* */
ratio?: 2 | 4 | 8;
variant?: ColoredTextProps["variant"];
}

export const BigScalableTitle: React.FC<BigScalableTitleProps> = ({
title,
subtitle,
ratio = 8,
align = "center",
variant = "purple",
}) => {
return (
<div
Expand All @@ -40,7 +42,7 @@ export const BigScalableTitle: React.FC<BigScalableTitleProps> = ({
>
<ColoredText
noisy
variant="reverse-purple"
variant={variant}
className="font-medium antialiased"
pulse="md"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ColoredText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PropsWithChildren } from "react";

import { classNames } from "@/util/classes";

interface ColoredTextProps extends PropsWithChildren {
export interface ColoredTextProps extends PropsWithChildren {
variant:
| "purple"
| "purple-light"
Expand Down

0 comments on commit 41a9586

Please sign in to comment.