Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 448 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 704 B After Width: | Height: | Size: 704 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 646 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@ -1,12 +0,0 @@ |
|||||||
.no-scrollbar::-webkit-scrollbar { |
|
||||||
display: none; |
|
||||||
} |
|
||||||
|
|
||||||
/* Hide scrollbar for IE, Edge and Firefox */ |
|
||||||
.no-scrollbar { |
|
||||||
-ms-overflow-style: none; |
|
||||||
/* IE and Edge */ |
|
||||||
scrollbar-width: none; |
|
||||||
/* Firefox */ |
|
||||||
} |
|
||||||
/*# sourceMappingURL=index.css.map */ |
|
@ -1,9 +0,0 @@ |
|||||||
{ |
|
||||||
"version": 3, |
|
||||||
"mappings": "AAAA,AAAA,aAAa,AAAA,mBAAmB,CAAC;EAC/B,OAAO,EAAE,IAAI;CACd;;AAED,6CAA6C;AAC7C,AAAA,aAAa,CAAC;EACZ,kBAAkB,EAAE,IAAI;EAAE,iBAAiB;EAC3C,eAAe,EAAE,IAAI;EAAE,aAAa;CACrC", |
|
||||||
"sources": [ |
|
||||||
"index.scss" |
|
||||||
], |
|
||||||
"names": [], |
|
||||||
"file": "index.css" |
|
||||||
} |
|
@ -0,0 +1,27 @@ |
|||||||
|
import React, { useState } from "react"; |
||||||
|
|
||||||
|
import SidebarMenu from "./SidebarMenu"; |
||||||
|
import SidebarDesign2 from "./SidebarDesign2"; |
||||||
|
|
||||||
|
function Advertisements() { |
||||||
|
const list = { |
||||||
|
1: <SidebarMenu />, |
||||||
|
2: <SidebarDesign2 />, |
||||||
|
}; |
||||||
|
const [type, setType] = useState(1); |
||||||
|
return ( |
||||||
|
<div className="w-full flex flex-col items-center"> |
||||||
|
<select |
||||||
|
className="mb-10 w-20 bg-gray-200" |
||||||
|
onChange={(e) => setType(e.target.value)} |
||||||
|
> |
||||||
|
{Object.keys(list).map((option, index) => ( |
||||||
|
<option key={index}>{option}</option> |
||||||
|
))} |
||||||
|
</select> |
||||||
|
{list[type]} |
||||||
|
</div> |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
export default Advertisements; |
@ -0,0 +1,15 @@ |
|||||||
|
// it has style inside index.scss ---> // Start Switch2 Component && end Switch2 Component
|
||||||
|
|
||||||
|
import React from "react"; |
||||||
|
|
||||||
|
export default function index() { |
||||||
|
return ( |
||||||
|
<div className="switch"> |
||||||
|
<input type="checkbox" id="toggle" /> |
||||||
|
<label |
||||||
|
className="relative w-[70px] h-[34px] rounded-full flex border-[3px] cursor-pointer" |
||||||
|
for="toggle" |
||||||
|
></label> |
||||||
|
</div> |
||||||
|
); |
||||||
|
} |