use constants.APP_NAME

This commit is contained in:
2024-12-13 12:16:29 -05:00
parent b4d91ea36a
commit 49cbc11a94
11 changed files with 30 additions and 28 deletions

View File

@@ -1,13 +1,12 @@
//import { Provider } from "../components/ui/provider"
import "../styles/globals.css"; import "../styles/globals.css";
import Navbar from "../components/Navbar"; import Navbar from "../components/Navbar";
import PopNav from "@src/components/PopNav/page"; import PopNav from "@src/components/PopNav/page";
import { Roboto } from 'next/font/google' import { Roboto } from 'next/font/google'
import constants from "@src/lib/constants";
export const metadata = { export const metadata = {
title: 'Ballistic Builder', title: constants.APP_NAME,
description: 'Freedom On', description: constants.DESCRIPTION,
} }
const roboto = Roboto({ const roboto = Roboto({

View File

@@ -1,6 +1,7 @@
import constants from "@src/lib/constants"
export const metadata = { export const metadata = {
title: 'Ballistic Bu8ilder', title: constants.APP_NAME,
description: 'Generated by Forward Group, LLC', description: constants.DESCRIPTION,
} }
export default function RootLayout({ export default function RootLayout({

View File

@@ -1,6 +1,7 @@
'use client'; 'use client';
import React, { useState } from 'react'; import React, { useState } from 'react';
import { useRouter } from 'next/navigation'; import { useRouter } from 'next/navigation';
import constants from '@src/lib/constants';
export default function SignupPage() { export default function SignupPage() {
const router = useRouter(); const router = useRouter();
@@ -49,7 +50,7 @@ export default function SignupPage() {
<div className="mx-auto w-full max-w-sm lg:w-96"> <div className="mx-auto w-full max-w-sm lg:w-96">
<div> <div>
<img <img
alt="Ballistic Builder" alt={constants.APP_NAME}
src="https://tailwindui.com/plus/img/logos/mark.svg?color=lime&shade=600" src="https://tailwindui.com/plus/img/logos/mark.svg?color=lime&shade=600"
className="h-10 w-auto" className="h-10 w-auto"
/> />

View File

@@ -5,7 +5,7 @@ import Brand from "./brand";
import AddBrand from "./addBrand"; import AddBrand from "./addBrand";
import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions"; import { addBrand, deleteBrand, editBrand } from "../../actions/brandActions";
import Footer from "@components/site/Footer"; import Footer from "@components/site/Footer";
import constants from "@src/lib/constants";
interface Props { interface Props {
brands: brandType[]; brands: brandType[];
} }
@@ -38,7 +38,7 @@ const BrandsList: FC<Props> = ({ brands }) => {
// Rendering the brand List component // Rendering the brand List component
return ( return (
<main className="flex mx-auto max-w-xl w-full min-h-screen flex-col items-center p-16"> <main className="flex mx-auto max-w-xl w-full min-h-screen flex-col items-center p-16">
<div className="text-5xl text-gray-800 font-medium">Ballistic Builder Brand</div> <div className="text-5xl text-gray-800 font-medium">{constants.APP_NAME} Brand</div>
<div className="w-full flex flex-col mt-8 gap-2"> <div className="w-full flex flex-col mt-8 gap-2">
{/* Mapping through brand items and rendering brand component for each */} {/* Mapping through brand items and rendering brand component for each */}
{brandItems.map((brand) => ( {brandItems.map((brand) => (

View File

@@ -4,6 +4,7 @@ import { componentTypeType } from "src/types/componentTypeType";
import { componentType } from './componentType' import { componentType } from './componentType'
// import AddBrand from "./addBrand"; // import AddBrand from "./addBrand";
import { getData } from "src/actions/componentTypeActions"; import { getData } from "src/actions/componentTypeActions";
import constants from "@src/lib/constants";
interface Props { interface Props {
componentType: componentType[]; componentType: componentType[];
@@ -37,7 +38,7 @@ const ComponentTypeList: FC<Props> = ({ componentType }) => {
// Rendering the brand List component // Rendering the brand List component
return ( return (
<main className="flex mx-auto max-w-xl w-full min-h-screen flex-col items-center p-16"> <main className="flex mx-auto max-w-xl w-full min-h-screen flex-col items-center p-16">
<div className="text-5xl text-gray-800 font-medium">Ballistic Builder Brand</div> <div className="text-5xl text-gray-800 font-medium">{constants.APP_NAME} Brand</div>
<div className="w-full flex flex-col mt-8 gap-2"> <div className="w-full flex flex-col mt-8 gap-2">
{/* Mapping through brand items and rendering brand component for each */} {/* Mapping through brand items and rendering brand component for each */}
{brandItems.map((brand) => ( {brandItems.map((brand) => (

View File

@@ -1,4 +1,5 @@
import Link from "next/link"; import Link from "next/link";
import constants from '@lib/constants';
export default function Header() { export default function Header() {
{/* Header Section */ } {/* Header Section */ }
@@ -6,7 +7,7 @@ export default function Header() {
( (
<header className="bg-gray-800 text-white py-4 shadow-md"> <header className="bg-gray-800 text-white py-4 shadow-md">
<div className="container mx-auto px-6 flex justify-between items-center"> <div className="container mx-auto px-6 flex justify-between items-center">
<h1 className="text-2xl font-bold">Ballistic Builder</h1> <h1 className="text-2xl font-bold">{constants.APP_NAME}</h1>
<nav> <nav>
<ul className="flex space-x-4"> <ul className="flex space-x-4">
<li><Link href="#features" className="hover:underline">Features</Link></li> <li><Link href="#features" className="hover:underline">Features</Link></li>

View File

@@ -1,4 +1,5 @@
import NextLink from 'next/link'; import NextLink from 'next/link';
import constants from '@src/lib/constants';
const Header: React.FC = () => { const Header: React.FC = () => {
return ( return (
@@ -6,7 +7,7 @@ const Header: React.FC = () => {
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', maxWidth: '80rem', margin: '0 auto' }}> <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', maxWidth: '80rem', margin: '0 auto' }}>
<h1 style={{ fontSize: '1.5rem', }}> <h1 style={{ fontSize: '1.5rem', }}>
<NextLink href="/" passHref style={{ color: '#FFFFFF', textDecoration: 'none' }}> <NextLink href="/" passHref style={{ color: '#FFFFFF', textDecoration: 'none' }}>
Ballistic Builder {constants.APP_NAME}
</NextLink> </NextLink>
</h1> </h1>
<nav style={{ display: 'flex', gap: '24px' }}> <nav style={{ display: 'flex', gap: '24px' }}>

View File

@@ -1,4 +1,4 @@
import { Button } from "@components/ui/button" import constants from "@src/lib/constants";
export default function About() { export default function About() {
@@ -9,11 +9,11 @@ export default function About() {
<div className="container mx-auto px-6 text-center"> <div className="container mx-auto px-6 text-center">
<h3 className="text-3xl text-gray-700 font-bold mb-6 ">About Us</h3> <h3 className="text-3xl text-gray-700 font-bold mb-6 ">About Us</h3>
<p className="text-gray-700"> <p className="text-gray-700">
Ballistic Builder is your go-to platform for customizing, building, {constants.APP_NAME} is your go-to platform for customizing, building,
and exploring firearm parts. Designed for enthusiasts by and exploring firearm parts. Designed for enthusiasts by
enthusiasts, we make firearm building easy and accessible. enthusiasts, we make firearm building easy and accessible.
</p> </p>
<Button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Click me test</Button> <button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Click me test</button>
{/* <Button className="bg-gray-950 text-grey-100 hover:translate-y-[-2px] transition duration-300">Click me test</Button> */} {/* <Button className="bg-gray-950 text-grey-100 hover:translate-y-[-2px] transition duration-300">Click me test</Button> */}
</div> </div>
</section> </section>

View File

@@ -1,10 +1,12 @@
import constants from "@src/lib/constants";
export default function Footer() { export default function Footer() {
return ( return (
( (
<footer className="bg-gray-950 text-white py-4"> <footer className="bg-gray-950 text-white py-4">
<div className="container mx-auto px-6 text-center"> <div className="container mx-auto px-6 text-center">
<p>&copy; {new Date().getFullYear()} Ballistic Builder. All rights reserved.</p> <p>&copy; {new Date().getFullYear()} {constants.APP_NAME}. All rights reserved.</p>
<p>Built by Forward Group </p> <p>Built by Forward Group </p>
</div> </div>

View File

@@ -1,17 +1,13 @@
export const APP_NAME = "Ballistic Builder";
export const COMPANY_NAME = "Forward Group, LLC";
export const COMPANY_URL = "https://goforward.group";
export const AUTHOR = "Forward Group, LLC";
export const META_KEYWORDS = "Pew Pew";
export const META_DESCRIPTION = "Pow Pow";
export default { export default {
APP_NAME: 'Ballistic Builder', APP_NAME: 'Ballistic Builder',
SITE_NAME: 'Ballistic Builder', SITE_NAME: 'Ballistic Builder',
COMPANY_NAME: 'Forward Group, LLC', COMPANY_NAME: 'Forward Group, LLC',
COMPANY_URL: 'https://goforward.group', COMPANY_URL: 'https://goforward.group',
AUTHOR: 'Forward Group,, LLC', AUTHOR: 'Forward Group, LLC',
META_KEYWORDS: 'Pew Pew', META_KEYWORDS: 'Pew Pew',
META_DESCRIPTION: 'Pow Pow', META_DESCRIPTION: 'Pow Pow',
DESCRIPTION: 'Generated by Forward Group, LLC',
PJAM_RAINIER: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8713', PJAM_RAINIER: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8713',
PJAM_BARRETTA: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8342' PJAM_BARRETTA: 'https://api.pepperjamnetwork.com/20120402/publisher/creative/product?apiKey=17c11367569cc10dce51e6a5900d0c7c8b390c9cb2d2cecc25b3ed53a3b8649b&format=json&programIds=8342'
} }

View File

@@ -1,12 +1,12 @@
import Link from "next/link"; import Link from "next/link";
import constants from "@src/lib/constants";
export default function Home() { export default function Home() {
return ( return (
(<div className="bg-gray-100 min-h-screen flex flex-col"> (<div className="bg-gray-100 min-h-screen flex flex-col">
{/* Header Section */} {/* Header Section */}
<header className="bg-gray-800 text-white py-4 shadow-md"> <header className="bg-gray-800 text-white py-4 shadow-md">
<div className="container mx-auto px-6 flex justify-between items-center"> <div className="container mx-auto px-6 flex justify-between items-center">
<h1 className="text-2xl font-bold">Ballistic Builder</h1> <h1 className="text-2xl font-bold">{constants.APP_NAME}</h1>
<nav> <nav>
<ul className="flex space-x-4"> <ul className="flex space-x-4">
<li><Link href="#features" className="hover:underline">Features</Link></li> <li><Link href="#features" className="hover:underline">Features</Link></li>
@@ -64,7 +64,7 @@ export default function Home() {
<div className="container mx-auto px-6 text-center"> <div className="container mx-auto px-6 text-center">
<h3 className="text-3xl font-bold mb-6">About Us</h3> <h3 className="text-3xl font-bold mb-6">About Us</h3>
<p className="text-gray-700"> <p className="text-gray-700">
Ballistic Builderis your go-to platform for customizing, building, {constants.APP_NAME} is your go-to platform for customizing, building,
and exploring firearm parts. Designed for enthusiasts by and exploring firearm parts. Designed for enthusiasts by
enthusiasts, we make firearm building easy and accessible. enthusiasts, we make firearm building easy and accessible.
</p> </p>
@@ -89,7 +89,7 @@ export default function Home() {
{/* Footer Section */} {/* Footer Section */}
<footer className="bg-gray-800 text-white py-4"> <footer className="bg-gray-800 text-white py-4">
<div className="container mx-auto px-6 text-center"> <div className="container mx-auto px-6 text-center">
<p>&copy; {new Date().getFullYear()} Ballistic Builder. All rights reserved.</p> <p>&copy; {new Date().getFullYear()} {constants.APP_NAME}. All rights reserved.</p>
</div> </div>
</footer> </footer>
</div>) </div>)