Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 58 additions & 58 deletions src/components/common/SettingsComponent.tsx

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/components/common/SolidLoadingState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useLayoutEffect } from "react";
import type { ReactNode } from "react";
import { SolidSpinner } from "../shad-cn-ui";
import { getDefaultThemeKey, isRegisteredThemeKey, type ThemeMode } from "../../theme/theme-registry";
import styles from "./SolidLoadingState.module.css";
import "./solid-loading-state.css";

const THEME_MODE_STORAGE_KEY = "solidx.theme.mode";
const LIGHT_THEME_STORAGE_KEY = "solidx.theme.light";
Expand Down Expand Up @@ -47,11 +47,11 @@ export function SolidLoadingState({
}, []);

return (
<section className={styles.solidLoadingState} aria-busy="true" aria-live="polite">
<div className={styles.card}>
<SolidSpinner size={28} className={styles.spinner} label={spinnerLabel} />
<h2 className={styles.title}>{title}</h2>
<p className={styles.description}>{description}</p>
<section className={"solid-loading-state"} aria-busy="true" aria-live="polite">
<div className={"solid-loading-card"}>
<SolidSpinner size={28} className={"solid-loading-spinner"} label={spinnerLabel} />
<h2 className={"solid-loading-title"}>{title}</h2>
<p className={"solid-loading-description"}>{description}</p>
{children}
</div>
</section>
Expand Down
21 changes: 10 additions & 11 deletions src/components/common/SolidModuleHome.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@


import { useSession } from "../../hooks/useSession";
import styles from './solidModuleHome.module.css'
import { DocsSvg } from '../Svg/DocsSvg';
import './solid-module-home.css';import { DocsSvg } from '../Svg/DocsSvg';
import { SettingsSvg } from '../Svg/SettingsSvg';
import { DevDocs } from '../Svg/DevDocs';
import { HomePageModuleSvg } from '../Svg/HomePageModuleSvg';
Expand Down Expand Up @@ -46,16 +45,16 @@ export const SolidModuleHome = ({ moduleName = "Dashboard" }: SolidModuleHomePro
</div>
</div>
<div className="p-6 md:p-8 flex flex-col gap-6">
<div className={styles.solidModuleWelcomeSection}>
<div className={"solid-module-welcome-section"}>
<div className='flex flex-col gap-2 pr-4 lg:pr-0'>
<h3 className={styles.solidModuleHomeTitle1}>
<h3 className={"solid-module-home-title1"}>
Welcome, {status === "loading" ? "." : user}
</h3>
<p className='m-0 w-35rem text-sl'>
This is the home page for the {moduleName} module. You can find documentation and settings below.
</p>
</div>
<div className={styles.homeSvg}>
<div className={"solid-module-home-home-svg"}>
<HomePageModuleSvg />
</div>
</div>
Expand All @@ -66,26 +65,26 @@ export const SolidModuleHome = ({ moduleName = "Dashboard" }: SolidModuleHomePro
icon: <DocsSvg />,
title: 'Admin Docs',
description: 'Explore the administrator documentation to manage and configure your system',
class: styles.dashboardCardOne,
class: "solid-module-home-dashboard-card-one",
url: 'https://docs.solidxai.com/docs/admin-docs/'
}, {
icon: <DevDocs />,
title: 'Dev Docs',
description: 'Dive into the developer documentation to build, extend, and integrate with the platform',
class: styles.dashboardCardTwo,
class: "solid-module-home-dashboard-card-two",
url: 'https://docs.solidxai.com/docs/developer-docs/'
}, {
icon: <SettingsSvg />,
title: 'Settings',
description: 'Access and update your account settings, preferences, and profile information',
class: styles.dashboardCardThree,
class: "solid-module-home-dashboard-card-three",
type: 'popup'
}].map((card, i) => (
<div className='w-full md:w-1/2 xl:w-1/3 px-2 pt-2' key={i}>
<div className={`${styles.solidModuleHomeColorCards} ${card.class}`}>
<div className={`${"solid-module-home-color-cards"} ${card.class}`}>
<div>
<div className={styles.solidModuleHomeCardSvgWrapper}>{card.icon}</div>
<h3 className={`${styles.solidModuleHomeTitle1} mt-6`}>{card.title}</h3>
<div className={"solid-module-home-card-svg-wrapper"}>{card.icon}</div>
<h3 className={`${"solid-module-home-title1"} mt-6`}>{card.title}</h3>
<p className='mb-0 mt-2 mr-2 text-xs'>
{card.description}
</p>
Expand Down
Loading