Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create componente dead #24

Merged
merged 3 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 13 additions & 0 deletions src/components/DeadComponent/DeadComponent.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react';
import { DeadComponent } from "./DeadComponent"

export type Story = StoryObj<typeof DeadComponent>

const meta: Meta<typeof DeadComponent> = {
title: 'Components/DeadComponent',
component: DeadComponent,
} satisfies Meta<typeof DeadComponent>

export default meta;

export const Default: Story = {}
8 changes: 8 additions & 0 deletions src/components/DeadComponent/DeadComponent.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render } from '@testing-library/react';
import { DeadComponent } from './DeadComponent';

test('renders DeadComponent', () => {
const { getByText } = render(<DeadComponent />);
const element = getByText(/DeadComponent/i);
expect(element).toBeInTheDocument();
});
12 changes: 12 additions & 0 deletions src/components/DeadComponent/DeadComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export const DeadComponent = () => {
return (
<div className="flex flex-col items-center justify-center h-screen">
<div className="bg-[#261537] w-full sm:w-[620px] h-[62px] rounded-[8px] p-4 sm:p-12 flex items-center justify-start">
<div className="text-[#E6D5F7] text-xl sm:text-3xl flex items-center">
<span className="text-[#9888A8] mr-5">08:00</span>
<p>Abertura</p>
</div>
</div>
</div>
);
};
3 changes: 3 additions & 0 deletions src/components/DeadComponent/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DeadComponent } from "./DeadComponent"

export { DeadComponent }
Loading