Skip to content
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
25 changes: 25 additions & 0 deletions src/components/BrandLogo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import { Logo, useTheme } from '@once-ui-system/core';

export default function BrandLogo() {

const { theme } = useTheme();

return (
<Logo
dark={theme === "dark"}
light={theme === "light"}
icon={
theme === "light"
? "/trademarks/wordmark-light.svg"
: "/trademarks/wordmark-dark.svg"
}
style={{
display: "inline-flex",
top: "0.25em",
marginLeft: "-0.25em",
}}
/>
)
}
9 changes: 3 additions & 6 deletions src/resources/content.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import BrandLogo from "@/components/BrandLogo";
import { About, Blog, Gallery, Home, Newsletter, Person, Social, Work } from "@/types";
import { Line, Logo, Row, Text } from "@once-ui-system/core";

Expand Down Expand Up @@ -66,11 +67,7 @@ const home: Home = {
subline: (
<>
I'm Selene, a design engineer at{" "}
<Logo
dark
icon="/trademarks/wordmark-dark.svg"
style={{ display: "inline-flex", top: "0.25em", marginLeft: "-0.25em" }}
/>
<BrandLogo />
, where I craft intuitive
<br /> user experiences. After hours, I build my own projects.
</>
Expand Down Expand Up @@ -223,7 +220,7 @@ const about: About = {
height: 9,
},
],
},
},
],
},
};
Expand Down