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

[DO NOT MERGE] Fix/26 tutorialstoriestsx #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 15 additions & 0 deletions src/components/Tutorial.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Meta, StoryObj } from "storybook-solidjs";
import { Tutorial } from "./Tutorial";

type Story = StoryObj<typeof Tutorial>;

const meta: Meta<typeof Tutorial> = {
title: "Components/Tutorial",
component: Tutorial,
args: {
version: "1.0.0",
},
};
export default meta;

export const Default: Story = {};
12 changes: 4 additions & 8 deletions src/components/Tutorial.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { Component } from "solid-js";
import { clsx } from "clsx";
import page1 from "@/asset/tutorial/page-1.png";
import page2 from "@/asset/tutorial/page-2.png";
import page3 from "@/asset/tutorial/page-3.png";
import page4 from "@/asset/tutorial/page-4.png";
import type { Content } from "@/components/Carousel";
import { Carousel } from "@/components/Carousel";
import { Modal } from "@/components/Modal";
Expand All @@ -19,7 +15,7 @@ export type Props = {
export const Tutorial: Component<Props> = (props) => {
const contents: Content[] = [
{
src: page1,
src: "",
body: (
<>
<Text size="sizeMedium" class={clsx({ [css.text]: true })}>
Expand All @@ -32,7 +28,7 @@ export const Tutorial: Component<Props> = (props) => {
),
},
{
src: page2,
src: "",
body: (
<>
<Text size="sizeMedium" class={clsx({ [css.text]: true })}>
Expand All @@ -52,15 +48,15 @@ export const Tutorial: Component<Props> = (props) => {
),
},
{
src: page3,
src: "",
body: (
<Text size="sizeMedium" class={clsx({ [css.text]: true })}>
To check the assigned numbers, select a group
</Text>
),
},
{
src: page4,
src: "",
body: (
<>
<div class={clsx({ [css.textWithIcon]: true })}>
Expand Down