Feat : Footer 컴포넌트 ui 구현 - S11P21S002-62

This commit is contained in:
정현조 2024-08-28 09:22:15 +09:00
parent dd0bdfbd5c
commit e30d88c2be
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import type { Meta, StoryObj } from '@storybook/react';
import Footer from './index';
const meta: Meta<typeof Footer> = {
title: 'Components/Footer',
component: Footer,
};
export default meta;
type Story = StoryObj<typeof Footer>;
export const Default: Story = {};

View File

@ -0,0 +1,27 @@
import * as React from 'react';
import { cn } from '@/lib/utils';
export interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {}
export default function Footer({ className, ...props }: FooterProps) {
return (
<footer
className={cn('mt-[100px] border-t border-gray-200 bg-gray-100', className)}
{...props}
>
<div className="container py-10">
<div className="flex flex-col items-start gap-5">
<div className="relative">
<div className="text-lg text-gray-600 font-heading md:text-xl">WorLabel</div>
<p className="mt-2 text-gray-500 font-body-small">Copyright © 2024 WorLabel All rights reserved</p>
</div>
<div className="inline-flex items-center gap-4">
<div className="text-gray-500 font-body-small"> </div>
<div className="w-px h-4 bg-gray-400" />
<div className="text-gray-500 font-body-small"> </div>
</div>
</div>
</div>
</footer>
);
}