Skip to content

Commit f421e6c

Browse files
Merge pull request #135 from raazseth/PR87
[Done] Not-allowed alert in tailwind #87
2 parents 805d989 + 5f7d60a commit f421e6c

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import not_allowed_alert from "./not_allowed_alert";
12
import infoAlert from "./info_alert";
23
import tickAlert from "./tick_alert";
34
import 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+
];
1112
export default alertCollections;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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;

tailwind_components/alerts/report_alert.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import {stripIndent} from "react-codepen-prefill-embed";
33
const 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>

0 commit comments

Comments
 (0)