react-quizifyy-component 1.0.1 โ†’ 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +30 -51
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A dynamic and interactive quiz application built with React. Features real-time answer selection, smooth timer animation, result tracking, and a detailed summary page. Ideal for assessments, learning platforms, or trivia games.
4
4
 
5
- ![screenshot](screenshot.png) <!-- Replace with an actual screenshot if available -->
5
+ ![screenshot](src/assets/Quizify-screenshot.PNG) <!-- Replace with an actual screenshot if available -->
6
6
 
7
7
  ---
8
8
 
@@ -40,50 +40,6 @@ function App() {
40
40
 
41
41
  ---
42
42
 
43
- ## ๐ŸŽฏ Component API
44
-
45
- ### `<Question />`
46
-
47
- Displays a single question with options.
48
-
49
- **Props:**
50
-
51
- | Prop | Type | Description |
52
- |-------------------|----------|------------------------------------------|
53
- | `question` | `object` | Question text and answer options |
54
- | `index` | `number` | Current question index |
55
- | `onSelectAnswer` | `func` | Callback when answer is selected |
56
-
57
- ---
58
-
59
- ## ๐Ÿ“ˆ Summary Page
60
-
61
- At the end of the quiz, the summary includes:
62
-
63
- - โœ… Number of correct answers
64
- - โŒ Number of wrong answers
65
- - ๐Ÿงพ List of all questions, selected answers, and correct answers
66
-
67
- Useful for review and performance insight.
68
-
69
- ---
70
-
71
- ## ๐ŸŽจ Theme Customization
72
-
73
- You can apply custom colors and styles via your own stylesheet or using Tailwind/CSS variables. Example:
74
-
75
- ```css
76
- :root {
77
- --primary-color: #00FFF7;
78
- --background-color: #0D0D0D;
79
- --text-color: #FFFFFF;
80
- }
81
- ```
82
-
83
- Or simply add class-based styles (e.g., `className="dark neon-theme"`).
84
-
85
- ---
86
-
87
43
  ## ๐Ÿ“‚ Using Custom Questions
88
44
 
89
45
  To add your own quiz content, create a `questions.js` file in your project and export an array of question objects like this:
@@ -140,6 +96,35 @@ function App() {
140
96
 
141
97
  ---
142
98
 
99
+ ## ๐ŸŽฏ Component API
100
+
101
+ ### `<Question />`
102
+
103
+ Displays a single question with options.
104
+
105
+ **Props:**
106
+
107
+ | Prop | Type | Description |
108
+ |-------------------|----------|------------------------------------------|
109
+ | `question` | `object` | Question text and answer options |
110
+ | `index` | `number` | Current question index |
111
+ | `onSelectAnswer` | `func` | Callback when answer is selected |
112
+
113
+ ---
114
+
115
+ ## ๐Ÿ“ˆ Summary Page
116
+
117
+ At the end of the quiz, the summary includes:
118
+
119
+ - โœ… Number of correct answers
120
+ - โŒ Number of wrong answers
121
+ - โŒ Number of skipped answers
122
+ - ๐Ÿงพ List of all questions, selected answers, and correct answers
123
+
124
+ Useful for review and performance insight.
125
+
126
+ ---
127
+
143
128
  ## ๐Ÿ›  Development Log
144
129
 
145
130
  - โœ… Designed and implemented summary page with result breakdown
@@ -149,9 +134,3 @@ function App() {
149
134
  - โœ… Improved progress bar transition for smoother experience
150
135
 
151
136
  ---
152
-
153
- ## ๐Ÿ“„ License
154
-
155
- This project is licensed under the MIT License.
156
-
157
- ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-quizifyy-component",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A reusable Quiz component for React",
5
5
  "type": "module",
6
6
  "private": false,