From 8a51e00029f9e87c9b637defb970491798df35ca Mon Sep 17 00:00:00 2001 From: Pruthvi Bhat Date: Mon, 11 Nov 2024 19:04:24 +0530 Subject: [PATCH 1/2] C:/Program Files/Git/question-type layout changed --- eduaid_web/src/pages/Question_Type.jsx | 196 +++++++++++++------------ 1 file changed, 99 insertions(+), 97 deletions(-) diff --git a/eduaid_web/src/pages/Question_Type.jsx b/eduaid_web/src/pages/Question_Type.jsx index 2068620..f38da0f 100644 --- a/eduaid_web/src/pages/Question_Type.jsx +++ b/eduaid_web/src/pages/Question_Type.jsx @@ -16,109 +16,111 @@ const Question_Type = () => { }; return ( -
-
- -
- logo -
- - Edu - - - Aid - -
-
-
-
- Whatโ€™s on your Mind? +
+
+ +
+ logo +
+ + Edu + + + Aid +
-
- Choose one +
+
+
+ Whatโ€™s on your Mind? +
+
+ Choose one +
+
+
handleOptionClick("get_shortq")} + className="flex my-5 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-4 sm:px-6 py-4 sm:py-6 bg-opacity-50 bg-[#202838]" + > +
+
+ Short-Answer Type Questions
-
-
handleOptionClick("get_shortq")} - className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-6 py-6 bg-opacity-50 bg-[#202838]" - > -
-
- Short-Answer Type Questions -
-
-
handleOptionClick("get_mcq")} - className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-6 py-6 bg-opacity-50 bg-[#202838]" - > -
-
- Multiple Choice Questions -
-
-
handleOptionClick("get_boolq")} - className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-6 py-6 bg-opacity-50 bg-[#202838]" - > -
-
- True/False Questions -
-
-
handleOptionClick("get_problems")} - className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-6 py-6 bg-opacity-50 bg-[#202838]" - > -
-
All Questions
-
+
+
handleOptionClick("get_mcq")} + className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-4 sm:px-6 py-4 sm:py-6 bg-opacity-50 bg-[#202838]" + > +
+
+ Multiple Choice Questions
-
- {selectedOption ? ( - - - - ) : ( - - )} +
+
+
+
handleOptionClick("get_boolq")} + className="flex my-5 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-4 sm:px-6 py-4 sm:py-6 bg-opacity-50 bg-[#202838]" + > +
+
+ True/False Questions
+
handleOptionClick("get_problems")} + className="flex my-3 items-center w-full max-w-lg cursor-pointer rounded-xl gap-6 px-4 sm:px-6 py-4 sm:py-6 bg-opacity-50 bg-[#202838]" + > +
+
All Questions
+
+
+
+ {selectedOption ? ( + + + + ) : ( + + )}
+
+
); }; From f492e48c4187a9167769c5d7802c72695c56f3e7 Mon Sep 17 00:00:00 2001 From: Pruthvi Bhat Date: Mon, 18 Nov 2024 19:08:33 +0530 Subject: [PATCH 2/2] dockerfile added --- eduaid_web/dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 eduaid_web/dockerfile diff --git a/eduaid_web/dockerfile b/eduaid_web/dockerfile new file mode 100644 index 0000000..9d0e0a3 --- /dev/null +++ b/eduaid_web/dockerfile @@ -0,0 +1,29 @@ + +FROM node:22-alpine + + +WORKDIR /app + + +COPY package*.json ./ + + +RUN npm install + + +COPY . . + + +RUN npm run build + + +FROM nginx:alpine + + +COPY --from=build /app/build /usr/share/nginx/html + + +EXPOSE 3000 + + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file