mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-12 15:41:53 +02:00
🎨 Remove default margins on elements
This commit is contained in:
parent
7e1efd5c20
commit
385d9e9e67
9 changed files with 37 additions and 35 deletions
|
@ -53,13 +53,13 @@ const VerifyCode: React.FunctionComponent<{
|
||||||
>
|
>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div className="mb-1 text-2xl font-bold">{t("verifyYourEmail")}</div>
|
<div className="mb-1 text-2xl font-bold">{t("verifyYourEmail")}</div>
|
||||||
<p className="text-slate-500">
|
<div className="mb-4 text-slate-500">
|
||||||
{t("stepSummary", {
|
{t("stepSummary", {
|
||||||
current: 2,
|
current: 2,
|
||||||
total: 2,
|
total: 2,
|
||||||
})}
|
})}
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<p className="mb-4">
|
||||||
<Trans
|
<Trans
|
||||||
t={t}
|
t={t}
|
||||||
i18nKey="verificationCodeSent"
|
i18nKey="verificationCodeSent"
|
||||||
|
@ -90,7 +90,7 @@ const VerifyCode: React.FunctionComponent<{
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
{formState.errors.code?.message ? (
|
{formState.errors.code?.message ? (
|
||||||
<p className="mt-2 text-sm text-rose-500">
|
<p className="mb-4 mt-2 text-sm text-rose-500">
|
||||||
{formState.errors.code.message}
|
{formState.errors.code.message}
|
||||||
</p>
|
</p>
|
||||||
) : null}
|
) : null}
|
||||||
|
@ -200,14 +200,14 @@ export const RegisterForm: React.FunctionComponent<{
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<div className="mb-1 text-2xl font-bold">{t("createAnAccount")}</div>
|
<div className="mb-1 text-2xl font-bold">{t("createAnAccount")}</div>
|
||||||
<p className="text-slate-500">
|
<p className="mb-4 text-slate-500">
|
||||||
{t("stepSummary", {
|
{t("stepSummary", {
|
||||||
current: 1,
|
current: 1,
|
||||||
total: 2,
|
total: 2,
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
<fieldset className="mb-4">
|
<fieldset className="mb-4">
|
||||||
<label htmlFor="name" className="text-slate-500">
|
<label htmlFor="name" className="mb-1 text-slate-500">
|
||||||
{t("name")}
|
{t("name")}
|
||||||
</label>
|
</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -226,7 +226,7 @@ export const RegisterForm: React.FunctionComponent<{
|
||||||
) : null}
|
) : null}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset className="mb-4">
|
<fieldset className="mb-4">
|
||||||
<label htmlFor="email" className="text-slate-500">
|
<label htmlFor="email" className="mb-1 text-slate-500">
|
||||||
{t("email")}
|
{t("email")}
|
||||||
</label>
|
</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -362,14 +362,14 @@ export const LoginForm: React.FunctionComponent<{
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<div className="mb-1 text-2xl font-bold">{t("login")}</div>
|
<div className="mb-1 text-2xl font-bold">{t("login")}</div>
|
||||||
<p className="text-slate-500">
|
<p className="mb-4 text-slate-500">
|
||||||
{t("stepSummary", {
|
{t("stepSummary", {
|
||||||
current: 1,
|
current: 1,
|
||||||
total: 2,
|
total: 2,
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
<fieldset className="mb-4">
|
<fieldset className="mb-4">
|
||||||
<label htmlFor="email" className="text-slate-500">
|
<label htmlFor="email" className="mb-1 text-slate-500">
|
||||||
{t("email")}
|
{t("email")}
|
||||||
</label>
|
</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
|
|
@ -39,7 +39,9 @@ export const PollDetailsForm: React.FunctionComponent<
|
||||||
onSubmit={handleSubmit(onSubmit)}
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
>
|
>
|
||||||
<div className="formField">
|
<div className="formField">
|
||||||
<label htmlFor="title">{t("title")}</label>
|
<label htmlFor="title" className="mb-1">
|
||||||
|
{t("title")}
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="title"
|
id="title"
|
||||||
|
@ -51,7 +53,9 @@ export const PollDetailsForm: React.FunctionComponent<
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="formField">
|
<div className="formField">
|
||||||
<label htmlFor="location">{t("location")}</label>
|
<label htmlFor="location" className="mb-1">
|
||||||
|
{t("location")}
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="location"
|
id="location"
|
||||||
|
@ -61,7 +65,9 @@ export const PollDetailsForm: React.FunctionComponent<
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="description">{t("description")}</label>
|
<label htmlFor="description" className="mb-1">
|
||||||
|
{t("description")}
|
||||||
|
</label>
|
||||||
<textarea
|
<textarea
|
||||||
id="description"
|
id="description"
|
||||||
className="input w-full"
|
className="input w-full"
|
||||||
|
|
|
@ -37,7 +37,7 @@ export const UserDetailsForm: React.FunctionComponent<
|
||||||
<form id={name} className={className} onSubmit={handleSubmit(onSubmit)}>
|
<form id={name} className={className} onSubmit={handleSubmit(onSubmit)}>
|
||||||
<h2>{t("yourDetails")}</h2>
|
<h2>{t("yourDetails")}</h2>
|
||||||
<div className="formField">
|
<div className="formField">
|
||||||
<label className="text-slate-500" htmlFor="name">
|
<label className="mb-1 text-slate-500" htmlFor="name">
|
||||||
{t("name")}
|
{t("name")}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
|
@ -53,7 +53,7 @@ export const UserDetailsForm: React.FunctionComponent<
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="formField">
|
<div className="formField">
|
||||||
<label className="text-slate-500" htmlFor="contact">
|
<label className="mb-1 text-slate-500" htmlFor="contact">
|
||||||
{t("email")}
|
{t("email")}
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
|
|
|
@ -15,7 +15,7 @@ const Hero: React.FunctionComponent = () => {
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto max-w-7xl items-end p-8 lg:flex lg:justify-between">
|
<div className="mx-auto max-w-7xl items-end p-8 lg:flex lg:justify-between">
|
||||||
<div className="my-8 text-center lg:text-left">
|
<div className="my-8 text-center lg:text-left">
|
||||||
<h1 className="text-4xl font-bold text-slate-800 sm:text-5xl">
|
<h1 className="mb-4 text-4xl font-bold text-slate-800 sm:text-5xl">
|
||||||
<Trans
|
<Trans
|
||||||
t={t}
|
t={t}
|
||||||
i18nKey="heroText"
|
i18nKey="heroText"
|
||||||
|
|
|
@ -100,7 +100,7 @@ export const NewParticipantModal = (props: NewParticipantModalProps) => {
|
||||||
className="space-y-4"
|
className="space-y-4"
|
||||||
>
|
>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label htmlFor="name" className="text-slate-500">
|
<label htmlFor="name" className="mb-1 text-slate-500">
|
||||||
{t("name")}
|
{t("name")}
|
||||||
</label>
|
</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -117,7 +117,7 @@ export const NewParticipantModal = (props: NewParticipantModalProps) => {
|
||||||
) : null}
|
) : null}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label htmlFor="email" className="text-slate-500">
|
<label htmlFor="email" className="mb-1 text-slate-500">
|
||||||
{t("email")} ({t("optional")})
|
{t("email")} ({t("optional")})
|
||||||
</label>
|
</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -139,7 +139,7 @@ export const NewParticipantModal = (props: NewParticipantModalProps) => {
|
||||||
) : null}
|
) : null}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label className="text-slate-500">{t("response")}</label>
|
<label className="mb-1 text-slate-500">{t("response")}</label>
|
||||||
<VoteSummary votes={props.votes} />
|
<VoteSummary votes={props.votes} />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
|
|
|
@ -8,7 +8,7 @@ const OpenBeta = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="max-w-3xl p-3 sm:p-6">
|
<div className="max-w-3xl p-3 sm:p-6">
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p className="mb-4">
|
||||||
The open beta allows you to test out new features before they are
|
The open beta allows you to test out new features before they are
|
||||||
officially released to the general public. By participating you,
|
officially released to the general public. By participating you,
|
||||||
will have the opportunity to provide feedback and help shape the
|
will have the opportunity to provide feedback and help shape the
|
||||||
|
@ -16,8 +16,7 @@ const OpenBeta = () => {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h2>Feedback</h2>
|
<h2 className="mb-4">Feedback</h2>
|
||||||
<p></p>
|
|
||||||
<ul className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
<ul className="grid grid-cols-1 gap-4 md:grid-cols-2">
|
||||||
<a
|
<a
|
||||||
href="https://github.com/lukevella/rallly/issues/new?assignees=&labels=bug&template=---bug-report.md&title="
|
href="https://github.com/lukevella/rallly/issues/new?assignees=&labels=bug&template=---bug-report.md&title="
|
||||||
|
@ -44,15 +43,15 @@ const OpenBeta = () => {
|
||||||
✉️ Send an email
|
✉️ Send an email
|
||||||
</a>
|
</a>
|
||||||
</ul>
|
</ul>
|
||||||
<div className="bg-patte mt-4 rounded border bg-slate-50 p-4">
|
<div className="mt-4 rounded border bg-slate-50 p-4">
|
||||||
<h2 className="text-slate-800">Important</h2>
|
<h2 className="mb-4 text-slate-800">Important</h2>
|
||||||
<p>
|
<p className="mb-4">
|
||||||
<strong>
|
<strong>
|
||||||
You should not rely on the beta for any important data or
|
You should not rely on the beta for any important data or
|
||||||
information.
|
information.
|
||||||
</strong>
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p className="mb-4">
|
||||||
The beta should be used exclusively for testing purposes.
|
The beta should be used exclusively for testing purposes.
|
||||||
Features, polls, accounts, or data may be removed at any time
|
Features, polls, accounts, or data may be removed at any time
|
||||||
without prior notice.
|
without prior notice.
|
||||||
|
|
|
@ -147,7 +147,7 @@ const ChangeNameModal = (props: {
|
||||||
<div>{t("changeNameDescription")}</div>
|
<div>{t("changeNameDescription")}</div>
|
||||||
</div>
|
</div>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label className="text-slate-500">{t("name")}</label>
|
<label className="mb-1 text-slate-500">{t("name")}</label>
|
||||||
<TextInput
|
<TextInput
|
||||||
className="w-full"
|
className="w-full"
|
||||||
error={!!errors.name}
|
error={!!errors.name}
|
||||||
|
|
|
@ -68,7 +68,7 @@ export const UserDetails: React.FunctionComponent<UserDetailsProps> = ({
|
||||||
</div>
|
</div>
|
||||||
<div className="divide-y">
|
<div className="divide-y">
|
||||||
<div className="flex p-4 pr-8">
|
<div className="flex p-4 pr-8">
|
||||||
<label htmlFor="name" className="w-1/3 text-slate-500">
|
<label htmlFor="name" className="mb-1 w-1/3 text-slate-500">
|
||||||
{t("name")}
|
{t("name")}
|
||||||
</label>
|
</label>
|
||||||
<div className="w-2/3">
|
<div className="w-2/3">
|
||||||
|
@ -90,7 +90,7 @@ export const UserDetails: React.FunctionComponent<UserDetailsProps> = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex p-4 pr-8">
|
<div className="flex p-4 pr-8">
|
||||||
<label htmlFor="random-8904" className="w-1/3 text-slate-500">
|
<label htmlFor="random-8904" className="mb-1 w-1/3 text-slate-500">
|
||||||
{t("email")}
|
{t("email")}
|
||||||
</label>
|
</label>
|
||||||
<div className="w-2/3">
|
<div className="w-2/3">
|
||||||
|
|
|
@ -10,15 +10,12 @@
|
||||||
#__next {
|
#__next {
|
||||||
@apply h-full;
|
@apply h-full;
|
||||||
}
|
}
|
||||||
p {
|
|
||||||
@apply mb-4;
|
|
||||||
}
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
h4,
|
h4,
|
||||||
h5 {
|
h5 {
|
||||||
@apply mb-4 font-sans font-semibold text-slate-800;
|
@apply font-sans font-semibold text-slate-800;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
@apply text-2xl;
|
@apply text-2xl;
|
||||||
|
@ -28,7 +25,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
@apply mb-1 block text-sm text-slate-800;
|
@apply block text-sm text-slate-800;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
|
@ -139,13 +136,13 @@
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
.heading {
|
.heading {
|
||||||
@apply text-primary-600 text-xl;
|
@apply text-primary-600 mb-4 text-xl;
|
||||||
}
|
}
|
||||||
.subheading {
|
.subheading {
|
||||||
@apply mb-16 text-4xl font-bold text-slate-800;
|
@apply mb-16 text-4xl font-bold text-slate-800;
|
||||||
}
|
}
|
||||||
.heading-sm {
|
.heading-sm {
|
||||||
@apply text-xl font-bold text-slate-800;
|
@apply mb-4 text-xl font-bold text-slate-800;
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
@apply text-lg leading-relaxed text-slate-500;
|
@apply text-lg leading-relaxed text-slate-500;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue