File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed
tailwind_components/alerts Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 1+ import not_allowed_alert from "./not_allowed_alert" ;
12import infoAlert from "./info_alert" ;
23import tickAlert from "./tick_alert" ;
34import report_alert from "./report_alert" ;
@@ -6,6 +7,6 @@ const alertCollections = [
67 { componentName : "Info Alert" , component : infoAlert } ,
78 { componentName : "Tick Alert" , component : tickAlert } ,
89 { componentName : "Report Alert" , component : report_alert } ,
9- ]
10-
10+ { componentName : "Not-Allowed Alert" , component : not_allowed_alert } ,
11+ ] ;
1112export default alertCollections ;
Original file line number Diff line number Diff line change 1+ import { stripIndent } from "react-codepen-prefill-embed" ;
2+
3+ const not_allowed_alert = stripIndent `
4+ <div className="flex justify-center mt-56 bg-slate-300 w-1/2 mx-auto p-4">
5+ <div class="flex flex-row bg-[#ffdede] w-11/12 mr-auto mt-40 ml-auto h-11 text-[#c6473b] rounded-xl p-2 border-[#c6473b]">
6+
7+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="flex w-1 h-1 mt-20 mb-20">
8+ <path strokeLinecap="round" strokeLinejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
9+ </svg>
10+
11+ <h3 class="mr-auto">This is a not allowed alert!</h3>
12+
13+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6 mt-auto mb-auto ml-auto text-right cursor-pointer">
14+ <path strokeLinecap="round" class="ml-10" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
15+ </svg>
16+
17+ </div>
18+ </div>` ;
19+
20+ export default not_allowed_alert ;
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ import {stripIndent} from "react-codepen-prefill-embed";
33const check_box = stripIndent `
44<div className="flex justify-center mt-56 bg-slate-300 w-1/2 mx-auto p-4">
55 <div class="flex flex-row bg-[#fff6ef] w-11/12 mr-auto mt-40 ml-auto h-11 text-[#d4975c] rounded-xl p-2 border-x-orange-500">
6-
7- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="flex w-1 h-1 mt-20 mb-20">
6+
7+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="flex w-1 h-1 mt-20 mb-20">
88 <path strokeLinecap="round" strokeLinejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" />
99 </svg>
1010
1111 <h3 class="mr-auto">This is a warning alert!</h3>
1212
13- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6 mt-auto mb-auto ml-auto text-right ">
14- <path strokeLinecap="round" class="ml-10" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
13+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 27 27" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6 mt-auto mb-auto ml-auto text-right cursor-pointer ">
14+ <path strokeLinecap="round" class="ml-10" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
1515 </svg>
1616
1717 </div>
You can’t perform that action at this time.
0 commit comments