-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed files and improved responsivity
- Loading branch information
Showing
11 changed files
with
141 additions
and
88 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { userEvent, within } from '@storybook/testing-library'; | ||
import { expect } from '@storybook/jest'; | ||
import EventHexagon from './EventHexagon.svelte'; | ||
|
||
export default { | ||
title: 'Atoms/Hexagons/EventHexagon', | ||
component: EventHexagon, | ||
parameters: { | ||
layout: 'centered', | ||
controls: { exclude: ['event'] } | ||
} | ||
}; | ||
|
||
export const EventPageHexagon = { | ||
args: { | ||
event: { | ||
title: 'Jantar de Curso', | ||
description: 'Muito fixe', | ||
teamMemberIds: [], | ||
registerUrl: 'https://www.google.com/intl/pt-PT/forms/about/', | ||
dateInterval: { startDate: new Date('2023-12-10'), endDate: new Date('2023-12-05') }, | ||
location: 'Cervejaria Diu', | ||
thumbnailPath: 'images/previews/bruno-rosendo.png' | ||
} | ||
}, | ||
play: async ({ canvasElement, step }) => { | ||
const canvas = within(canvasElement); | ||
|
||
await step('Hover over hexagon', async () => { | ||
await userEvent.hover(await canvas.findByTestId('event-hexagon')); | ||
const role = canvas.queryByText('Co-Gestor de Projetos'); | ||
await expect(role).toBeTruthy(); | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +0,0 @@ | ||
<script lang="ts"> | ||
import HexagonEvent from '@/components/hexagons/HexagonEvent.svelte'; | ||
import HexagonGrid from '@/lib/layout/hexagons/HexagonGrid.svelte'; | ||
import type { Event } from '@/model/event'; | ||
const event: Event = { | ||
title: 'Jantar de Curso', | ||
description: 'Muito fixe', | ||
teamMemberIds: [], | ||
registerUrl: 'forms.com', | ||
dateInterval: { startDate: new Date('2023-12-10'), endDate: new Date('2023-12-05') }, | ||
location: 'Cervejaria Diu', | ||
thumbnailPath: '/members/bruno-rosendo.png' | ||
}; | ||
</script> | ||
|
||
<div class="min-h-screen bg-gray-800 px-20 py-10"> | ||
<HexagonGrid | ||
cols={5} | ||
items={[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]} | ||
orientation="vertical" | ||
gap="small" | ||
let:item | ||
let:col | ||
let:row | ||
> | ||
<HexagonEvent {event} /> | ||
</HexagonGrid> | ||
</div> | ||
File renamed without changes