Update images

images-fix
Kamran Ahmed 1 year ago
parent 40357f7956
commit 76d1ca1333
  1. 8
      src/components/CustomRoadmap/PersonalRoadmapActionDropdown.tsx
  2. 6
      src/components/RoadCard/Editor.tsx
  3. 14
      src/components/RoadCard/RoadCardPage.tsx
  4. 4
      src/components/TeamMembers/MemberActionDropdown.tsx

@ -1,7 +1,7 @@
import MoreIcon from '../../icons/more-vertical.svg';
import { useRef, useState } from 'react'; import { useRef, useState } from 'react';
import { useOutsideClick } from '../../hooks/use-outside-click'; import { useOutsideClick } from '../../hooks/use-outside-click';
import { Lock, MoreVertical, Shapes, Trash2 } from 'lucide-react'; import { Lock, MoreVertical, Shapes, Trash2 } from 'lucide-react';
import { MoreVerticalIcon } from '../ReactIcons/MoreVerticalIcon.tsx';
type PersonalRoadmapActionDropdownProps = { type PersonalRoadmapActionDropdownProps = {
onDelete?: () => void; onDelete?: () => void;
@ -9,7 +9,9 @@ type PersonalRoadmapActionDropdownProps = {
onUpdateSharing?: () => void; onUpdateSharing?: () => void;
}; };
export function PersonalRoadmapActionDropdown(props: PersonalRoadmapActionDropdownProps) { export function PersonalRoadmapActionDropdown(
props: PersonalRoadmapActionDropdownProps,
) {
const { onDelete, onUpdateSharing, onCustomize } = props; const { onDelete, onUpdateSharing, onCustomize } = props;
const menuRef = useRef<HTMLDivElement>(null); const menuRef = useRef<HTMLDivElement>(null);
@ -26,7 +28,7 @@ export function PersonalRoadmapActionDropdown(props: PersonalRoadmapActionDropdo
onClick={() => setIsOpen(!isOpen)} onClick={() => setIsOpen(!isOpen)}
className="hidden items-center opacity-60 transition-opacity hover:opacity-100 disabled:cursor-not-allowed disabled:opacity-30 sm:flex" className="hidden items-center opacity-60 transition-opacity hover:opacity-100 disabled:cursor-not-allowed disabled:opacity-30 sm:flex"
> >
<img alt="menu" src={MoreIcon.src} className="h-4 w-4" /> <MoreVerticalIcon className={'h-4 w-4'} />
</button> </button>
<button <button

@ -1,5 +1,5 @@
import { useCopyText } from '../../hooks/use-copy-text'; import { useCopyText } from '../../hooks/use-copy-text';
import CopyIcon from '../../icons/copy.svg'; import { CopyIcon } from 'lucide-react';
type EditorProps = { type EditorProps = {
title: string; title: string;
@ -20,11 +20,11 @@ export function Editor(props: EditorProps) {
<button className="flex items-center" onClick={() => copyText(text)}> <button className="flex items-center" onClick={() => copyText(text)}>
{isCopied && ( {isCopied && (
<span className="mr-1 text-xs leading-none text-gray-700"> <span className="mr-1 text-xs leading-none text-gray-700">
Copied! Copied!&nbsp;
</span> </span>
)} )}
<img src={CopyIcon.src} alt="Copy" className="inline-block h-4 w-4" /> <CopyIcon className="inline-block h-4 w-4" />
</button> </button>
</div> </div>
<textarea <textarea

@ -2,13 +2,13 @@ import { useState } from 'react';
import { useCopyText } from '../../hooks/use-copy-text'; import { useCopyText } from '../../hooks/use-copy-text';
import { useAuth } from '../../hooks/use-auth'; import { useAuth } from '../../hooks/use-auth';
import CopyIcon from '../../icons/copy.svg';
import { RoadmapSelect } from './RoadmapSelect'; import { RoadmapSelect } from './RoadmapSelect';
import { GitHubReadmeBanner } from './GitHubReadmeBanner'; import { GitHubReadmeBanner } from './GitHubReadmeBanner';
import { downloadImage } from '../../helper/download-image'; import { downloadImage } from '../../helper/download-image';
import { SelectionButton } from './SelectionButton'; import { SelectionButton } from './SelectionButton';
import { StepCounter } from './StepCounter'; import { StepCounter } from './StepCounter';
import { Editor } from './Editor'; import { Editor } from './Editor';
import { CopyIcon } from 'lucide-react';
type StepLabelProps = { type StepLabelProps = {
label: string; label: string;
@ -34,7 +34,7 @@ export function RoadCardPage() {
} }
const badgeUrl = new URL( const badgeUrl = new URL(
`${import.meta.env.PUBLIC_API_URL}/v1-badge/${version}/${user?.id}` `${import.meta.env.PUBLIC_API_URL}/v1-badge/${version}/${user?.id}`,
); );
badgeUrl.searchParams.set('variant', variant); badgeUrl.searchParams.set('variant', variant);
@ -44,7 +44,7 @@ export function RoadCardPage() {
return ( return (
<> <>
<div className="flex items-start gap-4 mx-0 sm:-mx-10 px-0 sm:px-10 border-b pt-2 pb-4"> <div className="mx-0 flex items-start gap-4 border-b px-0 pb-4 pt-2 sm:-mx-10 sm:px-10">
<StepCounter step={1} /> <StepCounter step={1} />
<div> <div>
<StepLabel label="Pick progress to show (Max. 4)" /> <StepLabel label="Pick progress to show (Max. 4)" />
@ -58,7 +58,7 @@ export function RoadCardPage() {
</div> </div>
</div> </div>
<div className="flex items-start gap-4 mx-0 sm:-mx-10 px-0 sm:px-10 border-b py-4"> <div className="mx-0 flex items-start gap-4 border-b px-0 py-4 sm:-mx-10 sm:px-10">
<StepCounter step={2} /> <StepCounter step={2} />
<div> <div>
<StepLabel label="Select Mode (Dark vs Light)" /> <StepLabel label="Select Mode (Dark vs Light)" />
@ -85,7 +85,7 @@ export function RoadCardPage() {
</div> </div>
</div> </div>
<div className="flex items-start gap-4 mx-0 sm:-mx-10 px-0 sm:px-10 border-b py-4"> <div className="mx-0 flex items-start gap-4 border-b px-0 py-4 sm:-mx-10 sm:px-10">
<StepCounter step={3} /> <StepCounter step={3} />
<div> <div>
<StepLabel label="Select Version" /> <StepLabel label="Select Version" />
@ -111,7 +111,7 @@ export function RoadCardPage() {
</div> </div>
</div> </div>
<div className="flex items-start gap-4 mx-0 sm:-mx-10 px-0 sm:px-10 border-b py-4"> <div className="mx-0 flex items-start gap-4 border-b px-0 py-4 sm:-mx-10 sm:px-10">
<StepCounter step={4} /> <StepCounter step={4} />
<div className="flex-grow"> <div className="flex-grow">
<StepLabel label="Share your #RoadCard with others" /> <StepLabel label="Share your #RoadCard with others" />
@ -146,7 +146,7 @@ export function RoadCardPage() {
className="flex cursor-pointer items-center justify-center rounded border border-gray-300 p-1.5 px-2 text-sm font-medium disabled:bg-blue-50" className="flex cursor-pointer items-center justify-center rounded border border-gray-300 p-1.5 px-2 text-sm font-medium disabled:bg-blue-50"
onClick={() => copyText(badgeUrl.toString())} onClick={() => copyText(badgeUrl.toString())}
> >
<img alt="Copy" src={CopyIcon.src} className="mr-1" /> <CopyIcon size={16} className="inline-block h-4 w-4 mr-1" />
{isCopied ? 'Copied!' : 'Copy Link'} {isCopied ? 'Copied!' : 'Copy Link'}
</button> </button>

@ -1,7 +1,7 @@
import { useRef, useState } from 'react'; import { useRef, useState } from 'react';
import type { TeamMemberDocument } from './TeamMembersPage'; import type { TeamMemberDocument } from './TeamMembersPage';
import MoreIcon from '../../icons/more-vertical.svg';
import { useOutsideClick } from '../../hooks/use-outside-click'; import { useOutsideClick } from '../../hooks/use-outside-click';
import { MoreVerticalIcon } from '../ReactIcons/MoreVerticalIcon.tsx';
export function MemberActionDropdown({ export function MemberActionDropdown({
member, member,
@ -79,7 +79,7 @@ export function MemberActionDropdown({
onClick={() => setIsOpen(!isOpen)} onClick={() => setIsOpen(!isOpen)}
className="ml-2 flex items-center opacity-60 transition-opacity hover:opacity-100 disabled:cursor-not-allowed disabled:opacity-30" className="ml-2 flex items-center opacity-60 transition-opacity hover:opacity-100 disabled:cursor-not-allowed disabled:opacity-30"
> >
<img alt="menu" src={MoreIcon.src} className="h-4 w-4" /> <MoreVerticalIcon className="h-4 w-4" />
</button> </button>
{isOpen && ( {isOpen && (

Loading…
Cancel
Save