diff --git a/src/components/AccountStreak/AccountStreakHeatmap.tsx b/src/components/AccountStreak/AccountStreakHeatmap.tsx deleted file mode 100644 index 5d05e4df6..000000000 --- a/src/components/AccountStreak/AccountStreakHeatmap.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import CalendarHeatmap from 'react-calendar-heatmap'; -import dayjs from 'dayjs'; -import { formatActivityDate } from '../../lib/date'; -import { Tooltip as ReactTooltip } from 'react-tooltip'; -import 'react-calendar-heatmap/dist/styles.css'; -import './AccountStreakHeatmap.css'; - -const legends = [ - { count: 1, color: 'bg-slate-600' }, - { count: 3, color: 'bg-slate-500' }, - { count: 5, color: 'bg-slate-400' }, - { count: 10, color: 'bg-slate-300' }, - { count: 20, color: 'bg-slate-200' }, -]; - -type AccountStreakHeatmapProps = {}; - -export function AccountStreakHeatmap(props: AccountStreakHeatmapProps) { - const startDate = dayjs().subtract(6, 'months').toDate(); - const endDate = dayjs().toDate(); - - return ( -
{text}
-- Progress will appear here as you start tracking your{' '} - - Roadmaps - {' '} - or{' '} - - Best Practices - {' '} - progress. -
-- {selectedCount} {singularOrPlural} selected -
-- Click to add or change selection -
-- Click to select {pluralName} -
-- Create and edit a custom roadmap from this roadmap? - - / - -
- ); - } - - return ( - - ); -} diff --git a/src/components/DeleteAccount/DeleteAccount.astro b/src/components/DeleteAccount/DeleteAccount.astro deleted file mode 100644 index ffe8e2b7e..000000000 --- a/src/components/DeleteAccount/DeleteAccount.astro +++ /dev/null @@ -1,16 +0,0 @@ ---- -import DeleteAccountPopup from "./DeleteAccountPopup.astro"; ---- -- Permanently remove your account from the roadmap.sh. This cannot be undone and all your progress and data will be lost. -
- - diff --git a/src/components/DeleteAccount/DeleteAccountForm.tsx b/src/components/DeleteAccount/DeleteAccountForm.tsx deleted file mode 100644 index c448c7aa5..000000000 --- a/src/components/DeleteAccount/DeleteAccountForm.tsx +++ /dev/null @@ -1,89 +0,0 @@ -import { type FormEvent, useEffect, useState } from 'react'; -import { httpDelete } from '../../lib/http'; -import { logout } from '../../lib/auth'; - -export function DeleteAccountForm() { - const [isLoading, setIsLoading] = useState(false); - const [error, setError] = useState(''); - const [confirmationText, setConfirmationText] = useState(''); - - useEffect(() => { - setError(''); - setConfirmationText(''); - }, []); - - const handleSubmit = async (e: FormEvent- This will permanently delete your account and all your associated data - including your progress. -
- -Please type "delete" to confirm.
- -- Share the unique link below with your friends to track their skills - and progress. -
- -{friend.email}
-- Invite your friends to join you on Roadmap -
- -- Share the link below with your friends to invite them. -
- -Manage your notifications
-- No notifications, you can{' '} - - create a team - {' '} - and invite your friends to join. -
-- {notification.name} -
-- Add this badge to your{' '} - - GitHub profile readme. - -
- ); -} diff --git a/src/components/RoadCard/RoadCardPage.tsx b/src/components/RoadCard/RoadCardPage.tsx deleted file mode 100644 index 6ada8c408..000000000 --- a/src/components/RoadCard/RoadCardPage.tsx +++ /dev/null @@ -1,197 +0,0 @@ -import { useState } from 'react'; - -import { useCopyText } from '../../hooks/use-copy-text'; -import { useAuth } from '../../hooks/use-auth'; -import { RoadmapSelect } from './RoadmapSelect'; -import { GitHubReadmeBanner } from './GitHubReadmeBanner'; -import { downloadImage } from '../../helper/download-image'; -import { SelectionButton } from './SelectionButton'; -import { StepCounter } from './StepCounter'; -import { Editor } from './Editor'; -import { CopyIcon } from 'lucide-react'; -import { httpPatch } from '../../lib/http'; -import { useToast } from '../../hooks/use-toast'; - -type StepLabelProps = { - label: string; -}; -function StepLabel(props: StepLabelProps) { - const { label } = props; - - return ( - - {label} - - ); -} - -export function RoadCardPage() { - const user = useAuth(); - const toast = useToast(); - - const { isCopied, copyText } = useCopyText(); - const [roadmaps, setRoadmaps] = useState- No progress tracked so far. -
- )} - - {allProgress?.map((progress) => { - const isSelected = selectedRoadmaps.includes(progress.resourceId); - const canSelect = isSelected || canSelectMore; - - return ( -{memberProgress?.email}
-- Progress will appear here as they start tracking their roadmaps. -
-- You will lose access to the team, the roadmaps and progress of other team members. -
-- Please type "leave" to confirm. -
- -- {member.invitedEmail} -
-- {teamMembers.length} people in the team. -
-- {teamMembers.length} members -
-- You have reached the maximum number of members in a team. Please reach - out to us if you need more. -
- )} -- Select the role to update for this member -
- - -- {canManageCurrentTeam - ? 'Add a roadmap to start tracking your team' - : 'Ask your team admin to add some roadmaps'} -
- - {canManageCurrentTeam && ( - - )} -- {resourceConfig.title} -
- - Placeholder roadmap - -- {resourceConfig.title} -
- -- {resourceConfig.title} -
- - {resourceConfig?.removed?.length > 0 && ( - <> -- Only team admins can update team information. -
- )} - - {isCurrentTeamAdmin && ( - <> -- Permanently delete this team and all of its resources. -
- - - > - )} -- You have used {authProvider} when signing up. Please set your password - first. -
- -- Please set your password first to update your email. -
-- Use the form below to update your email. -
-- Create your skill profile to showcase your skills or learning progress. - Here are some of the ways you can use your skill profile: -
- -
-
- Make sure to mark your expertise{' '} - - in the roadmaps. - -
-- Update and set up your public profile below. -
-- Create your skill profile to showcase your skills. -
- -