Skip to content

Commit

Permalink
Merge pull request #192 from CodeitFESI4-Team1/Fix/191/storybook-img
Browse files Browse the repository at this point in the history
Fix/191/storybook img
  • Loading branch information
minkyung5x5 authored Nov 25, 2024
2 parents b488fd6 + d56b48a commit a411220
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/app/(crew)/crew/detail/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function CrewDetailPage({ params }: CrewDetailPageProps) {
const id = Number(params.id);

return (
<div className="mx-auto min-h-screen w-full max-w-full overflow-x-hidden">
<div className="mx-auto w-full max-w-full overflow-x-hidden">
{/* Detail Section */}
<section className="mx-3 my-7 md:mx-7 md:my-11 lg:mx-11 lg:my-16">
<article>
Expand Down
10 changes: 4 additions & 6 deletions src/app/(crew)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<>
<div className="min-h-screen">
<Header />
<div className="flex min-h-screen flex-col items-center bg-gray-50">
<main className="container flex min-h-screen max-w-pc flex-1 flex-col md:shadow-bg">
{children}
</main>
<div className="flex flex-col items-center bg-gray-50">
<main className="container flex max-w-pc flex-1 flex-col md:shadow-bg">{children}</main>
</div>
</>
</div>
);
}
2 changes: 1 addition & 1 deletion src/app/(crew)/my-page/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReviewTabs from './_components/review-tabs';

export default function MyPage({ children }: { children: React.ReactNode }) {
return (
<div className="container mx-auto my-0 min-h-screen max-w-pc bg-gray-50 px-3 py-11 md:px-8 lg:px-11">
<div className="container mx-auto my-0 max-w-pc bg-gray-50 px-3 py-11 md:px-8 lg:px-11">
<div className="lg:gap-4.5 flex flex-col gap-3 md:gap-4">
<ProfileCardContainer />
</div>
Expand Down
47 changes: 21 additions & 26 deletions src/stories/Configure.mdx
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import Image from 'next/image';
import { Meta } from '@storybook/blocks';
import Accessibility from './assets/accessibility.png';
import AddonLibrary from './assets/addon-library.png';
import Assets from './assets/assets.png';
import Context from './assets/context.png';
import FindCrew from './assets/1-find-crew.png';
import Login from './assets/2-login.png';
import Crew from './assets/3-crew.png';
import Gathering from './assets/4-gathering.png';
import MyCrew from './assets/5-my-crew.png';
import MyPage from './assets/6-my-page.png';
import Cbd from './assets/development-cbd.png';
import Pattern from './assets/development-pattern.png';
import Discord from './assets/discord.svg';
import Docs from './assets/docs.png';
import FigmaPlugin from './assets/figma-plugin.png';
import Github from './assets/github.svg';
import Share from './assets/share.png';
import Styling from './assets/styling.png';
import Testing from './assets/testing.png';
import Theming from './assets/theming.png';
import Tutorials from './assets/tutorials.svg';
import Youtube from './assets/youtube.svg';

export const RightArrow = () => (
Expand Down Expand Up @@ -88,8 +82,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={Docs}
style={{ width: '100%', height: '250px', objectPosition: 'top', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={FindCrew}
alt="A screenshot showing the autodocs tag being set, pointing a docs page being generated"
/>
<h4 className="sb-section-item-heading">크루 찾기</h4>
Expand All @@ -100,8 +94,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={Share}
style={{ width: '100%', height: '250px', objectPosition: 'top', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={Login}
alt="A browser window showing a Storybook being published to a chromatic.com URL"
/>
<h4 className="sb-section-item-heading">로그인/회원가입</h4>
Expand All @@ -112,8 +106,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={FigmaPlugin}
style={{ width: '100%', height: '250px', objectPosition: 'top', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={Crew}
alt="Windows showing the Storybook plugin in Figma"
/>
<h4 className="sb-section-item-heading">크루</h4>
Expand All @@ -124,8 +118,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={Testing}
style={{ width: '100%', height: '250px', objectFit: 'contain', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={Gathering}
alt="Screenshot of tests passing and failing"
/>
<h4 className="sb-section-item-heading">약속</h4>
Expand All @@ -136,8 +130,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={Accessibility}
style={{ width: '100%', height: '250px', objectPosition: 'top', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={MyCrew}
alt="Screenshot of accessibility tests passing and failing"
/>
<h4 className="sb-section-item-heading">나의 크루/약속</h4>
Expand All @@ -148,8 +142,8 @@ export const RightArrow = () => (
<Image
width={0}
height={0}
style={{ width: '100%', height: 'auto' }}
src={Theming}
style={{ width: '100%', height: '250px', objectPosition: 'top', borderRadius: '5px', borderWidth: '2px', borderColor: '#DBEAFE'}}
src={MyPage}
alt="Screenshot of Storybook in light and dark mode"
/>
<h4 className="sb-section-item-heading">마이페이지</h4>
Expand All @@ -172,9 +166,11 @@ export const RightArrow = () => (
<Image
width={650}
height={347}
src={AddonLibrary}
src={FindCrew}
alt="Integrate your tools with Storybook to connect workflows."
style={{ borderRadius: '10px', borderWidth: '2px', borderColor: '#DBEAFE'}}
/>

</div>
</div>

Expand Down Expand Up @@ -311,7 +307,6 @@ export const RightArrow = () => (
top: 0;
height: 100%;
width: 200%;
overflow: hidden;
}
.sb-addon-img img {
Expand Down
Binary file added src/stories/assets/1-find-crew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/stories/assets/2-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/stories/assets/3-crew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/stories/assets/4-gathering.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/stories/assets/5-my-crew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/stories/assets/6-my-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/stories/assets/accessibility.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/stories/assets/accessibility.svg

This file was deleted.

Binary file removed src/stories/assets/addon-library.png
Binary file not shown.
Binary file removed src/stories/assets/assets.png
Binary file not shown.
Binary file removed src/stories/assets/avif-test-image.avif
Binary file not shown.
Binary file removed src/stories/assets/context.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/stories/assets/discord.svg

This file was deleted.

Binary file removed src/stories/assets/docs.png
Binary file not shown.
Binary file removed src/stories/assets/figma-plugin.png
Binary file not shown.
Binary file removed src/stories/assets/share.png
Binary file not shown.
Binary file removed src/stories/assets/styling.png
Binary file not shown.
Binary file removed src/stories/assets/testing.png
Binary file not shown.
Binary file removed src/stories/assets/theming.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/stories/assets/tutorials.svg

This file was deleted.

0 comments on commit a411220

Please sign in to comment.