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

Fix ui/ux at Contact Form #20

Open
wants to merge 4 commits into
base: master
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
38 changes: 38 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,41 @@ html.dark {
.borderBlack {
@apply border border-black/10;
}

/* Create Custom Scrollbar */
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #222831 #222831;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
width: 10px;
width: 10px;
}

*::-webkit-scrollbar-track {
background-color: #ffffff00;
}

*::-webkit-scrollbar-track:hover {
background-color: #ffffff00;
}

*::-webkit-scrollbar-track:active {
background-color: #ffffff00;
}

*::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: #ffffff4f;
}

*::-webkit-scrollbar-thumb:hover {
background-color: #ffffffbb;
}

*::-webkit-scrollbar-thumb:active {
background-color: #ffffff;
}
4 changes: 2 additions & 2 deletions components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ export default function Contact() {
}}
>
<input
className="h-14 px-4 rounded-lg borderBlack dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
className="h-14 px-4 rounded-lg borderBlack dark:bg-white dark:bg-opacity-10 dark:focus:bg-opacity-15 dark:text-white transition-all dark:outline-none"
name="senderEmail"
type="email"
required
maxLength={500}
placeholder="Your email"
/>
<textarea
className="h-52 my-3 rounded-lg borderBlack p-4 dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
className="h-52 my-3 rounded-lg borderBlack p-4 dark:bg-white dark:bg-opacity-10 dark:focus:bg-opacity-15 dark:text-white transition-all dark:outline-none"
name="message"
placeholder="Your message"
required
Expand Down
3 changes: 2 additions & 1 deletion components/intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export default function Intro() {
duration: 0.7,
}}
>
👋
{/* 👋 */}
<img src="https://fonts.gstatic.com/s/e/notoemoji/latest/1f44b/512.gif" alt="👋" width="42" height="42" />
</motion.span>
</div>
</div>
Expand Down