Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Mar 20, 2024
1 parent 429d722 commit 5d6741a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion locales/en-US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
}
},
"footer": {
"headline": "Digital Seem - the world's largest Islamic library",
"headline": "Digital Seem - the World's largest Islamic library",
"description": "Digitalseem.org serves over 8,000 Islamic texts from the OpenITI corpus. Our goal is to make it easy to read, search, and research classical texts. Subscribe below to receive monthly updates on our work.",
"email-address": "Email Address",
"subscribe": "Subscribe",
Expand Down
14 changes: 11 additions & 3 deletions src/app/_components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NewsletterForm from "@/components/newsletter-form";
import Container from "@/components/ui/container";
import { getLocaleDirection } from "@/lib/locale/client";
import { navigation as urls } from "@/lib/urls";
import { cn } from "@/lib/utils";
import { Link } from "@/navigation";
import type { NamespaceTranslations } from "@/types/NamespaceTranslations";
import { useLocale, useTranslations } from "next-intl";
Expand All @@ -16,8 +17,11 @@ type NavItem = {
const navigation = {
tools: [
{ label: "navigation.tools.advanced-search.title" },
{ label: "navigation.tools.text-explorer.title" },
{ label: "navigation.tools.author-explorer.title" },
{ label: "navigation.tools.text-explorer.title", href: urls.books.all() },
{
label: "navigation.tools.author-explorer.title",
href: urls.authors.all(),
},
] satisfies NavItem[],
explore: [
{ label: "navigation.explore.texts.title", href: urls.books.all() },
Expand Down Expand Up @@ -74,7 +78,11 @@ const FooterRow = ({ title, items }: { title: string; items: NavItem[] }) => {
} else {
link = (
<ComingSoonModal
trigger={<p className={linkClassName}>{t(item.label)}</p>}
trigger={
<p className={cn(linkClassName, "cursor-pointer")}>
{t(item.label)}
</p>
}
/>
);
}
Expand Down
11 changes: 7 additions & 4 deletions src/app/_components/navbar/navigation-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
NavigationMenuList,
NavigationMenuTrigger,
} from "@/components/ui/navigation-menu";
import { navigation } from "@/lib/urls";
import { cn } from "@/lib/utils";
import { Link } from "@/navigation";
import type { NamespaceTranslations } from "@/types/NamespaceTranslations";
Expand All @@ -29,31 +30,33 @@ const toolsItems: NavItem[] = [
{
title: "navigation.tools.text-explorer.title",
description: "navigation.tools.text-explorer.description",
href: navigation.books.all(),
},
{
title: "navigation.tools.author-explorer.title",
description: "navigation.tools.author-explorer.description",
href: navigation.authors.all(),
},
];

const exploreItems: NavItem[] = [
{
href: "/texts",
href: navigation.books.all(),
title: "navigation.explore.texts.title",
description: "navigation.explore.texts.description",
},
{
href: "/authors",
href: navigation.authors.all(),
title: "navigation.explore.authors.title",
description: "navigation.explore.authors.description",
},
{
href: "/regions",
href: navigation.regions.all(),
title: "navigation.explore.regions.title",
description: "navigation.explore.regions.description",
},
{
href: "/genres",
href: navigation.genres.all(),
title: "navigation.explore.genres.title",
description: "navigation.explore.genres.description",
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/dropdown-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const DropdownMenuItem = React.forwardRef<
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
inset && "ltr:pl-8 rtl:pr-8",
className,
)}
Expand All @@ -104,7 +104,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
className={cn(
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ltr:pl-8 rtl:pr-8",
"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ltr:pl-8 rtl:pr-8",
className,
)}
checked={checked}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const SelectItem = React.forwardRef<
<SelectPrimitive.Item
ref={ref}
className={cn(
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ltr:pl-2 ltr:pr-8 rtl:pl-8 rtl:pr-2",
"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ltr:pl-2 ltr:pr-8 rtl:pl-8 rtl:pr-2",
className,
)}
{...props}
Expand Down

0 comments on commit 5d6741a

Please sign in to comment.