diff --git a/README.md b/README.md index 0eb8ec4ef..2d3fdd151 100644 --- a/README.md +++ b/README.md @@ -101,16 +101,16 @@ This project includes a customized Sanity Studio desk structure to enhance conte ## Managing Content -### Site Settings +### Company Info -The `Site Settings` menu allows you to configure global settings for your site, including brand assets, tracking codes, and default SEO settings. +The `Company Info` menu allows you to configure global settings for your site, including brand assets, tracking codes, and default SEO settings. -#### Social Media Profiles +### Social Media Profiles - **Adding Social Media Links**: Editors can manage social media links under the `Social Media Profiles` menu. This allows visitors to connect with the website on various social platforms. - **Supported Platforms**: The 9 supported platforms include Facebook, Instagram, and LinkedIn, but more can be added to `SoMePlatforms` if needed. -#### Navigation Management +### Navigation Management - **Setting the Landing Page**: The `Navigation Manager` allows editors to set the landing page for the site, which is crucial for determining the primary page visitors see upon arrival. - **Adding Menu Items**: Within the `Navigation Manager`, editors can add items to various pre-defined menus: @@ -118,7 +118,7 @@ The `Site Settings` menu allows you to configure global settings for your site, - **Footer Menu**: Add items to the footer menu, which consists of different sections. Each section can contain either social media links, custom links, text, or images (e.g., logos). - **Sidebar Menu**: Add links to the sidebar menu, which will appear on smaller screens to aid mobile navigation. -#### Pages +### Pages - **Creating Pages**: Content editors can create and manage pages under the `Pages` menu in the Sanity Studio. - **Adding Sections**: Each page can be customized with structured content that includes various predefined sections such as hero, article, testimonials, features, callToAction, grid, and callout. diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index b78143f17..4affe6efd 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -1,9 +1,9 @@ import Footer from "src/components/navigation/footer/Footer"; import { NAV_QUERY } from "studio/lib/queries/navigation"; -import { SITESETTINGS_QUERY } from "studio/lib/queries/siteSettings"; +import { COMPANY_INFO_QUERY } from "studio/lib/queries/companyInfo"; import { Header } from "src/components/navigation/header/Header"; import { Navigation } from "studio/lib/payloads/navigation"; -import { SiteSettings } from "studio/lib/payloads/siteSettings"; +import { CompanyInfo } from "studio/lib/payloads/companyInfo"; import { loadQuery } from "studio/lib/store"; import HeaderPreview from "src/components/navigation/header/HeaderPreview"; import FooterPreview from "src/components/navigation/footer/FooterPreview"; @@ -24,22 +24,22 @@ export default async function Layout({ }>) { const { perspective, isDraftMode } = getDraftModeInfo(); - const [initialNav, initialSiteSettings, initialSoMe, initialLegal] = + const [initialNav, initialCompanyInfo, initialSoMe, initialLegal] = await Promise.all([ loadQuery(NAV_QUERY, {}, { perspective }), - loadQuery(SITESETTINGS_QUERY, {}, { perspective }), + loadQuery(COMPANY_INFO_QUERY, {}, { perspective }), loadQuery(SOMEPROFILES_QUERY, {}, { perspective }), loadQuery(LEGAL_DOCUMENTS_QUERY, {}, { perspective }), ]); const hasNavData = hasValidData(initialNav.data); - const hasSiteSettingsData = hasValidData(initialSiteSettings.data); + const hasCompanyInfoData = hasValidData(initialCompanyInfo.data); const hasHeaderData = hasNavData && (initialNav.data.main || initialNav.data.sidebar); const hasFooterData = hasNavData && initialNav.data.footer; - const hasMenuData = hasSiteSettingsData && (hasHeaderData || hasFooterData); + const hasMenuData = hasCompanyInfoData && (hasHeaderData || hasFooterData); if (!hasMenuData) { return ( @@ -55,12 +55,12 @@ export default async function Layout({ {hasHeaderData && isDraftMode ? ( ) : (
)}
@@ -69,14 +69,14 @@ export default async function Layout({ {hasFooterData && isDraftMode ? ( ) : (