Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: onboarding usernames and vue logo (#609)
Browse files Browse the repository at this point in the history
* fix: metadata for views

* fix: revert logo to be svg

* fix(ui): vue image

* fix: username in onboarding

* fix: vue image to have svg
  • Loading branch information
Nabhag8848 authored Aug 13, 2024
1 parent 4e835c3 commit c56aeb7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function FrontendSdk({ userId, environment }: { userId: string; environme
onClick={() => (!customPreferenceView ? setCustomPreferenceView(true) : null)}
>
<div className="flex items-start justify-start gap-3">
<img src="/vuejs-icon.svg" alt="Vuejs" height={24} width={24} />
<Icons.vue />
<div className="flex flex-col gap-1">
<h4 className="text-left text-gray-50/70 text-base font-bold">Vue.js</h4>
</div>
Expand Down
4 changes: 3 additions & 1 deletion packages/revert-next/app/dashboard/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ export default async function Page() {
return null;
}

const userName = user?.firstName ?? user?.username ?? user?.fullName;

return (
<div>
<div className="relative">
<div className="w-auto h-32 border border-none rounded-lg bg-gradient-to-br from-accent-500 to-shade-800 mb-4">
<div className="absolute ml-8 mt-10">
<h1 className={`${inter.className} mb-2 text-xl md:text-2xl font-bold`}>
Welcome to Revert, {user.firstName}
Welcome to Revert{userName ? `, ${userName}` : ``}
</h1>
<p>Complete these following steps to get your integration up and running</p>
</div>
Expand Down
22 changes: 22 additions & 0 deletions packages/revert-next/components/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Icon } from '@tremor/react';

type IconProps = React.HTMLAttributes<SVGElement>;

export const Icons = {
Expand Down Expand Up @@ -382,6 +384,26 @@ export const Icons = {
</defs>
</svg>
),
vue: (props: IconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
aria-label="Vue"
role="img"
viewBox="0 0 64 64"
width={24}
height={24}
{...props}
>
<path
d="M 39.33333,5.5 32,18.33333 24.666667,5.5 H 0 L 32,61 64,5.5 Z"
style={{ fill: '#42b883', strokeWidth: 0.16666667 }}
/>
<path
d="M 39.33333,5.5 32,18.33333 24.666667,5.5 H 12.833333 L 32,38.83333 51.16667,5.5 Z"
style={{ fill: '#35495e', strokeWidth: 0.16666667 }}
/>
</svg>
),
};

export {
Expand Down
2 changes: 1 addition & 1 deletion packages/revert-next/components/ui/sidenav/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function SideNav({ value }: SideNavProps) {
</div>
<div className="flex items-center pl-2 h-12 revert-focus-outline rounded-lg">
<UserButton />
<p className="ml-3 hidden md:block">{user?.fullName ?? 'User Name'}</p>
<p className="ml-3 hidden md:block">{user?.fullName ?? user?.firstName ?? user?.username}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit c56aeb7

Please sign in to comment.