File tree Expand file tree Collapse file tree 4 files changed +23
-10
lines changed
Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1- # Bit-scripts
1+ # Bit-scripts v2
Original file line number Diff line number Diff line change 1+ import { GUILDID } from "../config/globals" ;
2+ import { getDiscordGuildInfo } from "../utils/helpers" ;
13import CardsWrapper from "./components/CardsWrapper" ;
24import Header from "./components/Header" ;
35import Info from "./components/Info" ;
46import LangageSwitcher from "./components/LangSwitcher" ;
57
8+ getDiscordGuildInfo ( GUILDID ) ;
9+
610function App ( ) {
711 // useEffect(() => {
812 // fetchReposData(ORGNAME);
Original file line number Diff line number Diff line change 11import { useTranslation } from "react-i18next" ;
22import { FaGithub } from "react-icons/fa" ;
3- // h-[calc(100%-200px)]
3+ import { MdOutlineRemoveRedEye } from "react-icons/md" ;
44
55function Card ( ) {
66 const { t } = useTranslation ( ) ;
77 return (
8- < div className = "h-[500px ] w-[300px ] overflow-hidden rounded-2xl bg-neutral-900 shadow-lg" >
8+ < div className = "h-[520px ] w-[320px ] overflow-hidden rounded-2xl bg-neutral-900 shadow-lg" >
99 < div className = "h-[200px] border-b border-accent bg-[url('/images/marv.jpg')] bg-cover" > </ div >
10- < div className = "flex flex-col px-4 py-4" >
10+ < div className = "flex h-[calc(100%-200px)] flex-col px-4 py-4" >
1111 < div className = "text-center text-2xl font-bold text-neutral-200" >
1212 Marv
1313 </ div >
1414
15- < div className = "py-4 text-sm text-neutral-200" > { t ( "marv" ) } </ div >
15+ < div className = "h-full max-h-[180px] overflow-hidden overflow-y-auto text-ellipsis py-4 text-sm text-neutral-200" >
16+ { t ( "marv" ) }
17+ </ div >
1618
17- < div className = "text-center italic text-neutral-300" >
19+ < div className = "py-4 text-center italic text-neutral-300" >
1820 { t ( "devby" ) } < span className = "font-bold" > Paul</ span >
1921 </ div >
2022
21- < button className = "bg-accentDarker flex items-center justify-center rounded-full py-2 text-white" >
22- < FaGithub size = { "24" } className = "mr-2" /> Visiter le repo github
23- </ button >
23+ < div className = "flex justify-center gap-x-4 py-2" >
24+ < button className = "bg-accentDarker flex min-w-[120px] items-center justify-center rounded-full py-2 text-white" >
25+ < FaGithub size = { "24" } className = "mr-2" />
26+ Github
27+ </ button >
28+
29+ < button className = "bg-accentDarker flex min-w-[120px] items-center justify-center rounded-full py-2 text-white" >
30+ < MdOutlineRemoveRedEye size = { "24" } className = "mr-2" /> Demo
31+ </ button >
32+ </ div >
2433 </ div >
2534 </ div >
2635 ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const fetchReposData = async (orgName) => {
2020 }
2121} ;
2222
23- export const getDicordGuildInfo = async ( guildId ) => {
23+ export const getDiscordGuildInfo = async ( guildId ) => {
2424 if ( ! guildId ) {
2525 console . error ( "Un ID de guilde est nécessaire" ) ;
2626 return null ;
You can’t perform that action at this time.
0 commit comments