Skip to content

Commit 8526186

Browse files
committed
style: update logo, home section components and auth styles
1 parent 7220503 commit 8526186

6 files changed

Lines changed: 615 additions & 576 deletions

File tree

‎client/src/assets/logo.svg‎

Lines changed: 548 additions & 552 deletions
Loading

‎client/src/components/homeSection/Features/Features.tsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { FeatureCard } from "./FeatureCard";
2-
import { Button } from "../../ui/button/Button";
32
import HomeSection1Icon from "../../icons/HomeSection1Icon";
43
import HomeSection1Icon2 from "../../icons/HomeSection1Icon2";
54
import HomeSection1Icon3 from "../../icons/HomeSection1Icon3";
@@ -54,10 +53,6 @@ export const Features = () => {
5453
/>
5554
))}
5655
</div>
57-
58-
<div className="flex justify-center mt-12 sm:mt-16 lg:mt-20">
59-
<Button variant="secondary">More</Button>
60-
</div>
6156
</div>
6257
</section>
6358
);

‎client/src/components/homeSection/PopularSubjects/PopularSubjects.tsx‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@ import { SubjectCard } from "./SubjectCard";
22
import { Button } from "../../ui/button/Button";
33
import bgImage from "../../../assets/images/bg-popular-subjects.png";
44
import { Subjects } from "../../../constants/subjects";
5+
import { useNavigate } from "react-router-dom";
6+
import { publicRoutesVariables } from "../../../router/routesVariables/pathVariables";
57

68
const subjectLabels = Subjects.map((subject) => subject.label);
79

810
export const PopularSubjects = () => {
11+
const navigate = useNavigate();
12+
13+
const handleStartClick = () => {
14+
navigate(publicRoutesVariables.teachers);
15+
window.scrollTo(0, 0);
16+
};
917
return (
1018
<section className="relative section-spacing overflow-hidden">
1119
<div className="absolute inset-0 z-0 px-4 sm:px-6 lg:px-8 hidden xl:block">
@@ -27,7 +35,11 @@ export const PopularSubjects = () => {
2735
programming subjects — all in one place.
2836
</p>
2937

30-
<Button variant="secondary" className="mb-8">
38+
<Button
39+
onClick={handleStartClick}
40+
variant="secondary"
41+
className="mb-8"
42+
>
3143
Start
3244
</Button>
3345

@@ -45,7 +57,9 @@ export const PopularSubjects = () => {
4557
On our platform, you can learn a wide range of foreign languages
4658
and programming subjects — all in one place.
4759
</p>
48-
<Button variant="secondary">Start</Button>
60+
<Button onClick={handleStartClick} variant="secondary">
61+
Start
62+
</Button>
4963
</div>
5064

5165
<h2 className="text-[74px] font-bold w-[394px] leading-tight">
Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
import { Button } from "../ui/button/Button";
21
import { NavLink } from "react-router-dom";
32
import { publicRoutesVariables } from "../../router/routesVariables/pathVariables";
43
import { twMerge } from "tailwind-merge";
4+
import logoImage from "../../assets/logo.svg";
55

66
type LogoProps = {
77
className?: string;
88
};
99

1010
export const Logo = ({ className }: LogoProps) => {
1111
return (
12-
<Button
13-
as={NavLink}
12+
<NavLink
1413
to={publicRoutesVariables.home}
15-
className={twMerge(
16-
`
17-
font-bold text-[25.2px]
18-
leading-[100%]
19-
tracking-[-0.14px]
20-
text-light-100
21-
`,
22-
className,
23-
)}
24-
variant="link"
14+
className={twMerge("inline-flex items-center gap-2", className)}
2515
>
26-
StudyBridge
27-
</Button>
16+
<img src={logoImage} alt="StudyBridge" className="h-16 w-auto" />
17+
<span className="text-white text-2xl font-bold">Study Bridge</span>
18+
</NavLink>
2819
);
2920
};

‎client/src/components/teacherSection/Reviews/AddReview.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const AddReview = ({
6767
month: "short",
6868
year: "numeric",
6969
},
70-
)}`,
70+
)} • ${app.time}`,
7171
}));
7272

7373
// Find the selected booking details for use in the review

‎client/src/styles/auth.css‎

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,50 @@
44
}
55

66
.auth-form {
7-
@apply w-full max-w-[1326px] px-[20px] py-[100px] md:px-[150px] md:py-[100px] bg-bg-secondary mt-[30px] rounded-[20px] border border-dark-600;
7+
@apply w-full max-w-[1326px] px-[20px] py-[100px] md:px-[150px] md:py-[100px] bg-bg-secondary mt-[30px] rounded-[20px] relative;
8+
border: 2px solid transparent;
9+
background:
10+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
11+
padding-box,
12+
conic-gradient(from 0deg, #7186ff, #fe7587, #00d4ff, #7186ff) border-box;
13+
animation: spinBorder 4s linear infinite;
14+
}
15+
16+
@keyframes spinBorder {
17+
0% {
18+
background:
19+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
20+
padding-box,
21+
conic-gradient(from 0deg, #7186ff, #fe7587, #00d4ff, #7186ff) border-box;
22+
}
23+
25% {
24+
background:
25+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
26+
padding-box,
27+
conic-gradient(from 90deg, #7186ff, #fe7587, #00d4ff, #7186ff)
28+
border-box;
29+
}
30+
50% {
31+
background:
32+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
33+
padding-box,
34+
conic-gradient(from 180deg, #7186ff, #fe7587, #00d4ff, #7186ff)
35+
border-box;
36+
}
37+
75% {
38+
background:
39+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
40+
padding-box,
41+
conic-gradient(from 270deg, #7186ff, #fe7587, #00d4ff, #7186ff)
42+
border-box;
43+
}
44+
100% {
45+
background:
46+
linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary))
47+
padding-box,
48+
conic-gradient(from 360deg, #7186ff, #fe7587, #00d4ff, #7186ff)
49+
border-box;
50+
}
851
}
952

1053
.auth-title {

0 commit comments

Comments
 (0)