-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added search bar and cards in support
- Loading branch information
Showing
3 changed files
with
123 additions
and
16 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,31 @@ | ||
import React from "react"; | ||
|
||
const Card = ({ cardName, description }) => { | ||
return ( | ||
<div class="dark:text-cyan-100 dark:border-2 dark:border-cyan-100 mx-auto max-w-xs rounded-xl px-6 py-10 text-slate-900 shadow flex flex-col justify-between h-64"> | ||
<div> | ||
<p class="mb-2 text-2xl">{cardName}</p> | ||
<p class="dark:text-cyan-400 mb-6 text-slate-500">{description}</p> | ||
</div> | ||
<button class="dark:text-cyan-100 dark:border-cyan-100 flex items-center space-x-2 rounded-md border-2 border-slate-900 px-4 py-2 font-medium text-slate-900 transition hover:bg-slate-900 hover:text-white dark:hover:bg-cyan-100 dark:hover:text-slate-900 w-fit"> | ||
<span> Learn more </span> | ||
<span> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 24 24" | ||
fill="currentColor" | ||
class="h-6 w-6" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
d="M16.72 7.72a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-3.75 3.75a.75.75 0 11-1.06-1.06l2.47-2.47H3a.75.75 0 010-1.5h16.19l-2.47-2.47a.75.75 0 010-1.06z" | ||
clip-rule="evenodd" | ||
/> | ||
</svg> | ||
</span> | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Card; |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
import './index.css' | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App"; | ||
import "./index.css"; | ||
|
||
ReactDOM.createRoot(document.getElementById('root')).render( | ||
ReactDOM.createRoot(document.getElementById("root")).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
) | ||
</React.StrictMode> | ||
); |
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