Skip to content

Commit

Permalink
lint: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanatpakornS committed Jun 26, 2024
1 parent 809bef4 commit 8cbdd18
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 47 deletions.
18 changes: 10 additions & 8 deletions src/app/test/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import Footer from "@/components/Footer";

export default function Test() {
return <main className="w-full">
This is text.
<Footer />
</main>;
}
import Footer from '@/components/Footer';

export default function Test() {
return (
<main className="w-full">
This is text.
<Footer />
</main>
);
}
105 changes: 66 additions & 39 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,66 @@
import Image from "next/image";
import Link from "next/link";
import INSTAGRAM from "@public/footer/instagram-logo.svg";
import ISD_LOGO from "@public/footer/isd-logo.svg";
import SGCU_LOGO from "@public/footer/sgcu-logo.svg";

export default function Footer() {
return (
<footer className="relative w-full bg-blue-400 text-center">
<section className="bg-gradient-footer text-xs font-medium grid grid-cols-1 gap-y-4 p-4">
<div className="flex gap-4 justify-center">
<Image src={ISD_LOGO} alt="ฝ่ายพัฒนาระบบสารสนเทศ" width={44} height={44} />
<Image src={SGCU_LOGO} alt="องค์การบริหารสโมสรนิสิตจุฬาลงกรณ์มหาวิทยาลัย" width={44} height={44} />
</div>
<p>พัฒนาโดยฝ่ายพัฒนาระบบสารสนเทศ<br />องค์การบริหารสโมสรนิสิตจุฬาลงกรณ์มหาวิทยาลัย</p>
<hr className="w-1/5 mx-auto" />
<p>Developed by Information System Development &lt;ISD&gt;,<br />Student Government Chulalongkorn University</p>

</section>
<section className="bg-white text-base pb-2 font-medium pt-1">
<h3 className="font-semibold mb-2">Contact us</h3>
<div className="flex justify-center text-xs gap-x-4">
<Link href="https://isd.sgcu.in.th">
<div className="flex flex-col items-center text-center gap-y-1">
<Image src={ISD_LOGO} alt="isd-website" width={28} height={28} />
<p className="underline underline-offset-2 text-xss">Website</p>
</div>
</Link>
<Link href="https://www.instagram.com/isd.sgcu/">
<div className="flex flex-col items-center text-center gap-y-1">
<Image src={INSTAGRAM} alt="instagram" width={28} height={28} />
<p className="underline underline-offset-2 text-xss">Instagram</p>
</div>
</Link>
</div>
</section>
</footer>
);
}
import Image from 'next/image';
import Link from 'next/link';
import INSTAGRAM from '@public/footer/instagram-logo.svg';
import ISD_LOGO from '@public/footer/isd-logo.svg';
import SGCU_LOGO from '@public/footer/sgcu-logo.svg';

export default function Footer() {
return (
<footer className="relative w-full bg-blue-400 text-center">
<section className="bg-gradient-footer text-xs font-medium grid grid-cols-1 gap-y-4 p-4">
<div className="flex gap-4 justify-center">
<Image
src={ISD_LOGO}
alt="ฝ่ายพัฒนาระบบสารสนเทศ"
width={44}
height={44}
/>
<Image
src={SGCU_LOGO}
alt="องค์การบริหารสโมสรนิสิตจุฬาลงกรณ์มหาวิทยาลัย"
width={44}
height={44}
/>
</div>
<p>
พัฒนาโดยฝ่ายพัฒนาระบบสารสนเทศ
<br />
องค์การบริหารสโมสรนิสิตจุฬาลงกรณ์มหาวิทยาลัย
</p>
<hr className="w-1/5 mx-auto" />
<p>
Developed by Information System Development &lt;ISD&gt;,
<br />
Student Government Chulalongkorn University
</p>
</section>
<section className="bg-white text-base pb-2 font-medium pt-1">
<h3 className="font-semibold mb-2">Contact us</h3>
<div className="flex justify-center text-xs gap-x-4">
<Link href="https://isd.sgcu.in.th">
<div className="flex flex-col items-center text-center gap-y-1">
<Image
src={ISD_LOGO}
alt="isd-website"
width={28}
height={28}
/>
<p className="underline underline-offset-2 text-xss">Website</p>
</div>
</Link>
<Link href="https://www.instagram.com/isd.sgcu/">
<div className="flex flex-col items-center text-center gap-y-1">
<Image
src={INSTAGRAM}
alt="instagram"
width={28}
height={28}
/>
<p className="underline underline-offset-2 text-xss">Instagram</p>
</div>
</Link>
</div>
</section>
</footer>
);
}

0 comments on commit 8cbdd18

Please sign in to comment.