Skip to content

Commit 4a600ac

Browse files
iLavrukfshabanov
andauthored
feat: contact scroll and vertical align element ml-383 (#386)
Co-authored-by: Farid Shabanov <[email protected]>
1 parent 1ec8c3b commit 4a600ac

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

apps/frontend/src/libs/enums/landing-section.enum.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ContactInfo } from "./enums.js";
22

33
const LandingSection = {
4+
CONTACTS: "#contacts",
45
EMAIL: ContactInfo.EMAIL,
56
FEATURES: "#features",
67
HOME: "#home",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { AppRoute, LandingSection } from "~/libs/enums/enums.js";
1+
import { LandingSection } from "~/libs/enums/enums.js";
22
import { type NavLinkType } from "~/modules/landing/landing.js";
33

44
const HEADER_LINKS: NavLinkType[] = [
55
{ label: "Features", to: LandingSection.FEATURES },
6-
{ label: "Contacts", to: AppRoute.ROOT },
6+
{ label: "Contacts", to: LandingSection.CONTACTS },
77
];
88

99
export { HEADER_LINKS };

apps/frontend/src/pages/landing/components/landing-footer/landing-footer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ const LandingFooter: React.FC<Properties> = ({ className }: Properties) => {
1414
const year = new Date().getFullYear();
1515

1616
return (
17-
<footer className={getValidClassNames(styles["landing-footer"], className)}>
17+
<footer
18+
className={getValidClassNames(styles["landing-footer"], className)}
19+
id="contacts"
20+
>
1821
<div className={styles["landing-footer__inner"]}>
1922
<div aria-label="Brand" className={styles["landing-footer__brand"]}>
2023
<Logo hasLink size={LogoSize.SMALL} theme={LogoTheme.LIGHT} />

apps/frontend/src/pages/landing/components/landing-header/styles.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
display: grid;
77
grid-template-columns: auto 1fr auto;
88
column-gap: 52px;
9-
align-items: start;
9+
align-items: center;
1010
max-width: var(--container-max);
1111
padding: 24px var(--container-gutter-lg) 34px;
1212
margin: 0 auto;
@@ -54,7 +54,6 @@
5454
display: flex;
5555
gap: 17px;
5656
align-items: center;
57-
transform: translateY(12px);
5857
}
5958

6059
.landing-header__button {
@@ -85,6 +84,7 @@
8584
.landing-header__inner {
8685
grid-template-columns: auto 1fr;
8786
column-gap: 0;
87+
align-items: start;
8888
padding: 24px var(--container-gutter-sm) 34px;
8989
}
9090

0 commit comments

Comments
 (0)