Skip to content

Commit

Permalink
Merge pull request #64 from nafiuishaaq/feature/copywrite
Browse files Browse the repository at this point in the history
created the copywrite component and added it to the footer and settings…
  • Loading branch information
BigBen-7 authored Jan 28, 2025
2 parents 50de1b4 + 0d6eed9 commit d310049
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions frontend/components/Copywrite.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'

const Copywrite = () => {
return (
<div>
<span className="whitespace-nowrap"> &copy; {new Date().getFullYear()} Lead Studios</span>
</div>
)
}

export default Copywrite
5 changes: 2 additions & 3 deletions frontend/components/Settings.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import { X } from "lucide-react";
import { Switch } from "@headlessui/react";
import { Copyright } from "lucide-react";
import Copywrite from "./Copywrite";

export const Setting = ({ isOpen, onClose }) => {
if (!isOpen) return null;
Expand Down Expand Up @@ -76,9 +76,8 @@ export const Setting = ({ isOpen, onClose }) => {
))}

<div className='flex items-center gap-1 py-3'>
<Copyright className='w-4' />

<p className='text-sm'>2025 Lead Studios</p>
<Copywrite/>
</div>

</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/footer.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"use client"
import Link from "next/link"
import Copywrite from "./Copywrite"
// update code to implement corrections
export default function Footer() {
return (
<footer className="bg-[#282c34] text-white/90 py-2 px-1 sm:py-4 sm:px-6 min-w-[280px]">
<div className="container mx-auto max-w-[280px] sm:max-w-none px-1">
<nav className="flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-[9px] xxs:text-[10px] xs:text-xs sm:text-sm text-center">
<span className="whitespace-nowrap">© {new Date().getFullYear()} Lead Studios</span>
<Copywrite/>
<span aria-hidden="true">|</span>
<Link href="#" className="hover:text-white transition-colors whitespace-nowrap" aria-label="View Sitemap">
Sitemap
Expand Down

0 comments on commit d310049

Please sign in to comment.