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

responsiveness improvements #50

Open
wants to merge 1 commit into
base: dev
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
76 changes: 38 additions & 38 deletions app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GitHubButton from 'react-github-btn'

const Header = () => {
return (
<header className="flex flex-row w-full justify-between items-center m-4">
<header className="flex flex-col sm:flex-row w-full justify-between items-center m-4">
<div>
<p className="font-bold text-3xl leading-7 text-dark dark:text-light">
STORYBOOK GPT
Expand All @@ -14,43 +14,43 @@ const Header = () => {
Generate Storybook stories from React components
</p>
</div>
<div className="flex flex-col">
<div className="flex items-center gap-5">
<DarkModeSwitch />
<GitHubButton
href="https://github.com/eduardconstantin/storybook-gpt"
data-color-scheme="no-preference: dark; light: light; dark: dark;"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star Storybook GPT on GitHub"
>
Star
</GitHubButton>
</div>
<div className="flex items-center justify-center gap-3 mt-2">
<a href="mailto:[email protected]" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/email-open.png"
alt="Email"
className="h-6 w-6"
/>
</a>
<a href="https://eduardconstantin.github.io" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/github.png"
alt="GitHub"
className="h-6 w-6"
/>
</a>
<a href="https://x.com/_Eduard26" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/twitter.png"
alt="Twitter"
className="h-6 w-6"
/>
</a>
</div>
<div className="flex flex-row sm:flex-col gap-5 sm:gap-0">
<div className="flex items-center gap-5">
<DarkModeSwitch />
<GitHubButton
href="https://github.com/eduardconstantin/storybook-gpt"
data-color-scheme="no-preference: dark; light: light; dark: dark;"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star Storybook GPT on GitHub"
>
Star
</GitHubButton>
</div>
<div className="flex items-center justify-center gap-3 mt-2">
<a href="mailto:[email protected]" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/email-open.png"
alt="Email"
className="h-6 w-6"
/>
</a>
<a href="https://eduardconstantin.github.io" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/github.png"
alt="GitHub"
className="h-6 w-6"
/>
</a>
<a href="https://x.com/_Eduard26" target="_blank">
<img
src="https://img.icons8.com/fluent/32/000000/twitter.png"
alt="Twitter"
className="h-6 w-6"
/>
</a>
</div>
</div>
</header>
)
Expand Down
4 changes: 2 additions & 2 deletions app/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const Form = ({ form, items, setItems }: Prop) => {
return (
<form
onSubmit={handleSubmit(onSubmit)}
className="flex flex-col sm:flex-row gap-12 p-12 mb-8 bg-slate-100 shadow-lg dark:bg-[#292930] rounded-2xl"
className="flex flex-col sm:flex-row gap-12 p-12 mb-8 bg-slate-100 shadow-lg dark:bg-[#292930] rounded-2xl w-full"
>
<div className="flex flex-col items-center gap-4 w-72 md:w-64 lg:w-96 ">
<div className="flex flex-col items-center gap-4 ">
<div className="flex flex-col w-full gap-1">
<label className="text-sm text-dark dark:text-zinc-300 ">
OPENAI API KEY
Expand Down