mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-14 21:27:59 +02:00
Roadmap action button color
This commit is contained in:
@@ -60,7 +60,7 @@ function writeTopicContent(currTopicUrl) {
|
|||||||
|
|
||||||
const roadmapTitle = roadmapId.replace(/-/g, ' ');
|
const roadmapTitle = roadmapId.replace(/-/g, ' ');
|
||||||
|
|
||||||
let prompt = `I am reading a guide about "${roadmapTitle}". I am on the topic "${parentTopic}". I want to know more about "${childTopic}". Write me with a brief summary of that. Content should be in markdown. I already know the benefits of each so do not add benefits in the output. Also include the code examples if applicable to this topic.`;
|
let prompt = `I am reading a guide about "${roadmapTitle}". I am on the topic "${parentTopic}". I want to know more about "${childTopic}". Write me a brief summary of that. Content should be in markdown. I already know the benefits of each so do not add benefits in the output. Also include the code examples if applicable to this topic.`;
|
||||||
if (!childTopic) {
|
if (!childTopic) {
|
||||||
prompt = `I am reading a guide about "${roadmapTitle}". I am on the topic "${parentTopic}". I want to know more about "${parentTopic}". Write me with a brief summary of that. Content should be in markdown. I already know the benefits of each so do not add benefits in the output. Also include the code examples if applicable to this topic.`;
|
prompt = `I am reading a guide about "${roadmapTitle}". I am on the topic "${parentTopic}". I want to know more about "${parentTopic}". Write me with a brief summary of that. Content should be in markdown. I already know the benefits of each so do not add benefits in the output. Also include the code examples if applicable to this topic.`;
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,7 @@ export function RoadmapActionButton(props: RoadmapActionButtonProps) {
|
|||||||
<button
|
<button
|
||||||
disabled={false}
|
disabled={false}
|
||||||
onClick={() => setIsOpen(!isOpen)}
|
onClick={() => setIsOpen(!isOpen)}
|
||||||
className="inline-flex items-center justify-center rounded-md bg-gray-500 py-1.5 pl-2 pr-2 text-xs font-medium text-white hover:bg-gray-600 sm:pl-1.5 sm:pr-3 sm:text-sm"
|
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white py-1.5 pl-2 pr-2 text-xs font-medium text-black hover:border-gray-300 hover:bg-gray-300 sm:pl-1.5 sm:pr-3 sm:text-sm"
|
||||||
>
|
>
|
||||||
<MoreVertical className="mr-0 h-4 w-4 stroke-[2.5] sm:mr-1.5" />
|
<MoreVertical className="mr-0 h-4 w-4 stroke-[2.5] sm:mr-1.5" />
|
||||||
<span className="hidden sm:inline">Actions</span>
|
<span className="hidden sm:inline">Actions</span>
|
||||||
@@ -32,7 +32,7 @@ export function RoadmapActionButton(props: RoadmapActionButtonProps) {
|
|||||||
{isOpen && (
|
{isOpen && (
|
||||||
<div
|
<div
|
||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
className="align-right absolute right-0 top-full z-50 mt-1 w-[140px] rounded-md bg-slate-800 px-2 py-2 text-white shadow-md"
|
className="align-right absolute right-0 top-full mt-1 w-[140px] rounded-md bg-slate-800 px-2 py-2 text-white shadow-md z-[9999]"
|
||||||
>
|
>
|
||||||
<ul>
|
<ul>
|
||||||
{onUpdateSharing && (
|
{onUpdateSharing && (
|
||||||
|
@@ -174,7 +174,7 @@ export function RoadmapHeader(props: RoadmapHeaderProps) {
|
|||||||
</a>
|
</a>
|
||||||
<button
|
<button
|
||||||
onClick={() => setIsSharing(true)}
|
onClick={() => setIsSharing(true)}
|
||||||
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white py-1.5 pl-2 pr-2 text-xs font-medium text-black hover:border-gray-300 hover:bg-gray-300 sm:px-3 sm:text-sm"
|
className="inline-flex items-center justify-center rounded-md border border-gray-300 bg-white py-1.5 pl-2 pr-2 text-xs font-medium text-black hover:border-gray-300 hover:bg-gray-300 sm:px-3 sm:text-sm"
|
||||||
>
|
>
|
||||||
<Lock className="mr-1.5 h-4 w-4 stroke-[2.5]" />
|
<Lock className="mr-1.5 h-4 w-4 stroke-[2.5]" />
|
||||||
Sharing
|
Sharing
|
||||||
|
Reference in New Issue
Block a user