@@ -20,7 +20,7 @@ import { useState } from "react";
20
20
import scholar from "../assets/scholar.png" ;
21
21
import axios from "axios" ;
22
22
import { toast } from "react-toastify" ;
23
- import SendIcon from "@mui/icons-material/Send" ;
23
+ // import SendIcon from "@mui/icons-material/Send";
24
24
import AppLayout from "../layout/AppLayout" ;
25
25
const Announcement = ( ) => {
26
26
const [ category , setCategory ] = useState ( "" ) ;
@@ -71,10 +71,10 @@ const Announcement = () => {
71
71
< div className = "flex flex-col items-center justify-center" > { /* This parent ensures children can be centered or full width as needed */ }
72
72
< div className = "text-center mb-5 w-full" > { /* Added w-full to allow content below to be properly centered or max-width constrained */ }
73
73
< div className = "inline-flex flex-col sm:flex-row justify-center items-center gap-4 bg-white px-6 py-3 rounded-xl shadow-md border border-violet-100 max-w-xl mx-auto" > { /* Removed ml-56, added max-w-xl mx-auto, responsive flex direction */ }
74
- < h1 className = "text-2xl sm:text-3xl font-semibold text-violet-700 " > { /* Removed ml-10, responsive text */ }
74
+ < h1 className = "text-2xl sm:text-3xl font-semibold text-black max-md:text-xl " > { /* Removed ml-10, responsive text */ }
75
75
Post College Announcement
76
76
</ h1 >
77
- < img className = "w-12 h-12 sm:w-16 sm:h-16 object-contain" src = { scholar } alt = "Scholar icon" /> { /* Responsive image size */ }
77
+ < img className = "w-12 max-md:hidden h-12 sm:w-16 sm:h-16 object-contain" src = { scholar } alt = "Scholar icon" /> { /* Responsive image size */ }
78
78
</ div >
79
79
</ div >
80
80
@@ -85,7 +85,7 @@ const Announcement = () => {
85
85
name = "announcement category"
86
86
value = { category }
87
87
onChange = { ( e ) => setCategory ( e . target . value ) }
88
- className = "w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-violet -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100"
88
+ className = "w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100 outline-none "
89
89
>
90
90
< option value = "chose" > Choose Category </ option >
91
91
< option value = "Exams" > Exams</ option >
@@ -110,7 +110,7 @@ const Announcement = () => {
110
110
name = "studentCourse"
111
111
value = { course }
112
112
onChange = { ( e ) => setCourse ( e . target . value ) }
113
- className = "w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-violet -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100"
113
+ className = "w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100 outline-none "
114
114
required
115
115
>
116
116
< option value = "Branch" > Choose Course For Announcement</ option >
@@ -137,7 +137,7 @@ const Announcement = () => {
137
137
onChange = { ( e ) => {
138
138
setBranch ( e . target . value ) ;
139
139
} }
140
- className = "w-full outline-none p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-violet -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100"
140
+ className = "w-full outline-none p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100 "
141
141
/>
142
142
143
143
< textarea
@@ -148,15 +148,15 @@ const Announcement = () => {
148
148
} }
149
149
placeholder = "Enter Announcement Description"
150
150
rows = "6"
151
- className = "w-full outline-none p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-violet -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100 resize-none"
151
+ className = "w-full outline-none p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue -500 focus:border-transparent transition-all duration-200 bg-gray-50 hover:bg-gray-100 resize-none"
152
152
> </ textarea >
153
153
</ div >
154
154
155
155
< div className = "flex gap-4 pt-4" >
156
156
< button
157
157
type = "submit"
158
158
disabled = { loading }
159
- className = "flex-1 bg-gradient-to-r from-green-600 to-green-500 text-white py-3 px-6 rounded-lg font-medium hover:from-green-500 hover:to-green-400 transition-all duration-200 flex items-center justify-center gap-2 disabled:opacity-70"
159
+ className = "flex-1 bg-gradient-to-r from-green-600 to-green-500 text-white py-3 px-6 rounded-lg font-medium hover:from-green-500 hover:to-green-400 transition-all duration-200 flex items-center justify-center gap-2 disabled:opacity-70 max-md:p-2 "
160
160
>
161
161
{ loading ? (
162
162
< span className = "flex items-center gap-2" >
@@ -168,16 +168,16 @@ const Announcement = () => {
168
168
</ span >
169
169
) : (
170
170
< >
171
- Post Announcement
172
- < SendIcon sx = { { height : "20px" } } />
171
+ Post
172
+ { /* <SendIcon sx={{ height: "20px" }} className="max-md:hidden" /> */ }
173
173
</ >
174
174
) }
175
175
</ button >
176
176
177
177
< button
178
178
onClick = { handleClick }
179
179
type = "button"
180
- className = "flex-1 bg-gradient-to-r from-blue-600 to-blue-500 text-white py-3 px-6 rounded-lg font-medium hover:from-blue-500 hover:to-blue-400 transition-all duration-200"
180
+ className = "flex-1 bg-gradient-to-r from-blue-600 to-blue-500 text-white py-3 px-6 rounded-lg font-medium hover:from-blue-500 hover:to-blue-400 transition-all duration-200 max-md:p-2 max-md:h-14 "
181
181
>
182
182
Clear Form
183
183
</ button >
0 commit comments