Girish Jeswani commited on
Commit
cc972a5
·
1 Parent(s): fb9baed

add suggestions

Browse files
phd-advisor-frontend/src/components/SuggestionsPanel.js ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react';
2
+ import { BookOpen, FlaskConical, PenTool, Heart } from 'lucide-react';
3
+
4
+ const SuggestionsPanel = ({ onSuggestionClick }) => {
5
+ const suggestionCategories = [
6
+ {
7
+ title: "Orientation & Guidance",
8
+ icon: BookOpen,
9
+ color: "#3B82F6",
10
+ bgColor: "#EFF6FF",
11
+ suggestions: [
12
+ "How do I choose a research topic that's interesting and doable?",
13
+ "Meeting and Presentation Prep",
14
+ "What should I be doing my first semester?"
15
+ ]
16
+ },
17
+ {
18
+ title: "Research Design & Academic Skills",
19
+ icon: FlaskConical,
20
+ color: "#8B5CF6",
21
+ bgColor: "#F3E8FF",
22
+ suggestions: [
23
+ "Should I use qualitative, quantitative, or mixed methods for my research?",
24
+ "Is my research question too broad?",
25
+ "How do I defend a non-traditional methodology to my committee?"
26
+ ]
27
+ },
28
+ {
29
+ title: "Writing & Communication",
30
+ icon: PenTool,
31
+ color: "#10B981",
32
+ bgColor: "#ECFDF5",
33
+ suggestions: [
34
+ "What's the right tone for an introduction? Persuasive, cautious, or bold?",
35
+ "How should I respond when reviewers give conflicting feedback?",
36
+ "Should I prioritize journal articles or dissertation chapters when I write?"
37
+ ]
38
+ },
39
+ {
40
+ title: "Mental Health & Hidden Curriculum",
41
+ icon: Heart,
42
+ color: "#F59E0B",
43
+ bgColor: "#FFFBEB",
44
+ suggestions: [
45
+ "How do I cope when I feel behind compared to others in my cohort?",
46
+ "Should I speak up about unclear expectations or just try to figure it out quietly?",
47
+ "What are the unspoken expectations no one tells you about?"
48
+ ]
49
+ }
50
+ ];
51
+
52
+ return (
53
+ <div className="suggestions-panel">
54
+ <div className="suggestions-header">
55
+ <h2 className="suggestions-title">Getting Started</h2>
56
+ <p className="suggestions-subtitle">
57
+ Choose a topic to get advice from all personas
58
+ </p>
59
+ </div>
60
+
61
+ <div className="suggestions-grid">
62
+ {suggestionCategories.map((category, categoryIndex) => {
63
+ const Icon = category.icon;
64
+ return (
65
+ <div key={categoryIndex} className="suggestion-category">
66
+ <div className="category-header">
67
+ <div
68
+ className="category-icon"
69
+ style={{
70
+ backgroundColor: category.bgColor,
71
+ color: category.color
72
+ }}
73
+ >
74
+ <Icon size={20} />
75
+ </div>
76
+ <h3
77
+ className="category-title"
78
+ style={{ color: category.color }}
79
+ >
80
+ {category.title}
81
+ </h3>
82
+ </div>
83
+
84
+ <div className="suggestion-buttons">
85
+ {category.suggestions.map((suggestion, suggestionIndex) => (
86
+ <button
87
+ key={suggestionIndex}
88
+ onClick={() => onSuggestionClick(suggestion)}
89
+ className="suggestion-button"
90
+ style={{
91
+ borderColor: category.color + '20',
92
+ '--hover-bg': category.bgColor,
93
+ '--hover-border': category.color
94
+ }}
95
+ >
96
+ {suggestion}
97
+ </button>
98
+ ))}
99
+ </div>
100
+ </div>
101
+ );
102
+ })}
103
+ </div>
104
+ </div>
105
+ );
106
+ };
107
+
108
+ export default SuggestionsPanel;