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

Hover effect #30

Open
wants to merge 3 commits into
base: main
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
6 changes: 3 additions & 3 deletions web/src/components/contact-modal/contact-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export default function ContactModal({ onRequestClose }: Props) {
<br />

<Localized id="email-input" attrs={{ label: true }}>
<LabeledInput label="Email" name="email" required type="email" />
<LabeledInput label="Email" placeholder="Enter your Email" name="email" required type="email" />
</Localized>

<Localized id="contact-form-name" attrs={{ label: true }}>
<LabeledInput label="Name" name="name" type="text" />
<LabeledInput label="Name" placeholder="Enter your Name" name="name" type="text" />
</Localized>

<Localized id="contact-form-message" attrs={{ label: true }}>
<LabeledTextArea label="Message" name="message" required rows={6} />
<LabeledTextArea label="Message" placeholder="Enter your Message" name="message" required rows={6} />
</Localized>

<div className="actions">
Expand Down
44 changes: 42 additions & 2 deletions web/src/components/layout/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,49 @@ footer {
}

&:hover {
opacity: 0.6;
color: rgb(21, 21, 114);
font-size: 1.1rem;
transition: .6s;
}
}

& a {
position: relative;
text-decoration: none;
}
& button {
position: relative;
text-decoration: none;
}

& a:after {
content: '';
position: absolute;
left: 0;
bottom: -2px; /* Adjust based on desired distance from the text */
width: 0;
height: 2px; /* Adjust the thickness of the underline */
background-color: rgb(44, 44, 116); /* Color of the underline */
transition: width .6s;
}
& button:after {
content: '';
position: absolute;
left: 0;
bottom: -2px; /* Adjust based on desired distance from the text */
width: 0;
height: 2px; /* Adjust the thickness of the underline */
background-color: rgb(44, 44, 116); /* Color of the underline */
transition: width .6s;
}

& a:hover:after {
width: 100%;
}
& button:hover:after {
width: 100%;
}
}

& img {
margin-bottom: var(--standard-margin);
Expand Down Expand Up @@ -219,4 +259,4 @@ footer {
@media (--xl-up) {
padding: 1.5rem 2rem;
}
}
}