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

adjusted styles to fix mobile issue #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
36 changes: 8 additions & 28 deletions apps/marketing/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,44 +30,29 @@ const Home: NextPage = () => {
<>
<Head>
<title>{`webhookthing`}</title>
<meta
name="description"
content="an easier way to develop with webhooks locally"
/>
<meta name="description" content="an easier way to develop with webhooks locally" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/favicon.png" />
</Head>
<main
className={classNames(
"relative z-10 flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-indigo-800/40 transition-all duration-1000 ease-in-out"
)}
>
<main className={classNames("relative z-10 flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-indigo-800/40 transition-all duration-1000 ease-in-out")}>
<div className="container flex h-full w-full flex-col items-center justify-center gap-12 px-4 py-16">
<div className="flex animate-fade-in flex-col items-center justify-center">
<h1 className="text-[3.5rem] font-medium tracking-tighter text-white sm:text-[5rem]">
<h1 className="text-[3rem] font-medium tracking-tighter text-white sm:text-[5rem]">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? I would prefer not to change the size of the text?

{`webhook`}
<span className="font-extrabold text-indigo-600 ">{`thing`}</span>
</h1>
<div className="flex w-96 max-w-sm flex-col items-center text-center text-white">
<div className="flex w-full max-w-sm flex-col items-center text-center text-white">
<div className="flex flex-col items-center gap-4">
<div className="flex items-center gap-2 text-xl">
{`Run webhooks locally with 1 click.`}
</div>
<div
className={classNames(
"flex animate-fade-in items-center gap-2"
)}
>
<div className="flex items-center gap-2 text-lg sm:text-xl">{`Run webhooks locally with 1 click.`}</div>
<div className={classNames("flex animate-fade-in items-center gap-2")}>
<div className="w-fullrounded-md bg-gray-900 p-2 text-white">
<div className="flex items-center justify-between px-2 py-1">
<pre>{`npx webhookthing@latest`}</pre>
<div className="flex gap-1">
<button
className="group"
onClick={() => {
void navigator.clipboard.writeText(
"npx webhookthing@latest"
);
void navigator.clipboard.writeText("npx webhookthing@latest");
setCopied();
}}
>
Expand All @@ -94,12 +79,7 @@ const Home: NextPage = () => {
{"Docs"}
</a>
{"|"}
<a
className="gh-link group relative hover:underline"
target="_blank"
href="https://github.com/pingdotgg/webhookthing"
rel="noreferrer"
>
<a className="gh-link group relative hover:underline" target="_blank" href="https://github.com/pingdotgg/webhookthing" rel="noreferrer">
<span className="invisible absolute -top-8 left-1/2 -translate-x-1/2 scale-[0.2] whitespace-nowrap rounded bg-indigo-500/10 px-4 py-2 text-sm font-bold delay-150 duration-150 ease-[cubic-bezier(0.95,0.05,0.795,0.035)] hover:transition-all group-hover:visible group-hover:-top-16 group-hover:scale-100 motion-reduce:transition-none">
{"Now Open Source!"}
<br />
Expand Down