Skip to content

Commit 90aec6b

Browse files
add jwt wordmark and rotating animation
1 parent a97e979 commit 90aec6b

File tree

4 files changed

+53
-8
lines changed

4 files changed

+53
-8
lines changed

src/features/common/assets/jwt-text-logo.component.tsx

Whitespace-only changes.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export const JwtWordmarkComponent: React.FC = () => {
2+
return (
3+
<svg
4+
width="51"
5+
height="20"
6+
viewBox="0 0 51 20"
7+
fill="none"
8+
xmlns="http://www.w3.org/2000/svg"
9+
>
10+
<path
11+
d="M7 0V12C7 15.3137 4.31371 18 1 18V18"
12+
stroke="black"
13+
style={{ stroke: 'black', strokeOpacity: 1 }}
14+
strokeWidth="4"
15+
/>
16+
<path
17+
d="M13.8932 0V14.5C13.8932 16.433 15.4602 18 17.3932 18V18C19.3262 18 20.8932 16.433 20.8932 14.5V5C20.8932 3.34315 22.2363 2 23.8932 2V2C25.55 2 26.8932 3.34315 26.8932 5V14.5C26.8932 16.433 28.4602 18 30.3932 18V18C32.3262 18 33.8932 16.433 33.8932 14.5V0"
18+
stroke="black"
19+
style={{ stroke: 'black', strokeOpacity: 1 }}
20+
strokeWidth="4"
21+
/>
22+
<path
23+
d="M38.8932 2H44.8932M44.8932 2V20M44.8932 2H50.8932"
24+
stroke="black"
25+
style={{ stroke: 'black', strokeOpacity: 1 }}
26+
strokeWidth="4"
27+
/>
28+
</svg>
29+
);
30+
};

src/features/common/components/site-brand/site-brand.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getImageDictionary } from "@/features/localization/services/images-dict
55
import { SecondaryFont } from "@/libs/theme/fonts";
66
import clsx from "clsx";
77
import { JwtLogoComponent } from "../../assets/jwt-logo.component";
8+
import { JwtWordmarkComponent } from "../../assets/jwt-wordmark.component";
89

910
interface SiteBrandComponentProps extends PropsWithChildren {
1011
path: string;
@@ -23,7 +24,7 @@ export const SiteBrandComponent: React.FC<SiteBrandComponentProps> = ({
2324
<JwtLogoComponent />
2425
</div>
2526
<div className={styles.brand__logoText}>
26-
27+
<JwtWordmarkComponent />
2728
</div>
2829
<div className={clsx(SecondaryFont.className, styles.brand__headline)}>
2930
<span className={styles.brand__subtitle}>Debugger</span>

src/features/common/components/site-brand/site-brand.module.scss

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
.brand {
2-
display: flex;
3-
align-items: center;
4-
height: 2rem;
5-
position: relative;
2+
width: 100%;
3+
display: flex;
4+
align-items: center;
5+
height: 1.5rem;
6+
gap: .5rem;
7+
position: relative;
8+
cursor: pointer;
69

710
svg {
811
height: inherit;
@@ -24,9 +27,20 @@
2427
}
2528

2629
.brand__logo {
27-
position: relative;
28-
display: flex;
29-
align-items: center;
30+
position: relative;
31+
display: flex;
32+
align-items: center;
33+
height: 1.5rem;
34+
animation: rotate 10s linear infinite;
35+
}
36+
37+
@keyframes rotate {
38+
0% {
39+
transform: rotate(0deg);
40+
}
41+
100% {
42+
transform: rotate(1turn);
43+
}
3044
}
3145

3246
.brand__headline {

0 commit comments

Comments
 (0)