forked from rupali-codes/LinksHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81c395b
commit 4903f4c
Showing
10 changed files
with
1,103 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { CollapsElement } from "./CollapsElement"; | ||
import { dataList,ICollapsProps } from "../../types"; | ||
|
||
export const Collaps = ({elements,title}:ICollapsProps) => { | ||
return ( | ||
<div tabIndex={0} className="collapse collapse-arrow border-b border-base-100"> | ||
<div className="collapse-title text-[17px] font-medium"> | ||
{title} | ||
</div> | ||
<div className="collapse-content flex flex-col gap-3"> | ||
{ | ||
elements.map((element:dataList, i:number) => ( | ||
<CollapsElement name={element.name} description={element.description} url={element.url} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from "react" | ||
import {dataList} from "../../types" | ||
export const CollapsElement = ({name,description,url}:dataList) => { | ||
return ( | ||
<a href={url}> | ||
<div className="border-b-2 border-base-200 py-2 cursor-pointer"> | ||
<h4 className="text-violet-500 font-semibold text-[17px]">{name}</h4> | ||
<p> | ||
{description} | ||
</p> | ||
</div> | ||
</a> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './Collaps'; | ||
export * from './CollapsElement'; |
Oops, something went wrong.