Skip to content

Commit c18f8ac

Browse files
update card
1 parent 23fbaea commit c18f8ac

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Bit-scripts
1+
# Bit-scripts v2

src/App.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
import { GUILDID } from "../config/globals";
2+
import { getDiscordGuildInfo } from "../utils/helpers";
13
import CardsWrapper from "./components/CardsWrapper";
24
import Header from "./components/Header";
35
import Info from "./components/Info";
46
import LangageSwitcher from "./components/LangSwitcher";
57

8+
getDiscordGuildInfo(GUILDID);
9+
610
function App() {
711
// useEffect(() => {
812
// fetchReposData(ORGNAME);

src/components/Card.jsx

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
import { useTranslation } from "react-i18next";
22
import { FaGithub } from "react-icons/fa";
3-
// h-[calc(100%-200px)]
3+
import { MdOutlineRemoveRedEye } from "react-icons/md";
44

55
function 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
);

utils/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)