From 9415a39e9e47be275945943bd5cbcceccfbf1582 Mon Sep 17 00:00:00 2001 From: sudhanshu dasgupta Date: Sat, 24 Feb 2024 20:33:29 +0530 Subject: [PATCH] improve ui Signed-off-by: sudhanshu dasgupta --- Lets-Learn-Github/contributors/index.html | 48 +++++++++++++++---- Lets-Learn-Github/public/images/github.png | Bin 0 -> 3062 bytes Lets-Learn-Github/public/images/linkedin.png | Bin 0 -> 1789 bytes Lets-Learn-Github/public/images/twiiter.png | Bin 0 -> 3056 bytes 4 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 Lets-Learn-Github/public/images/github.png create mode 100644 Lets-Learn-Github/public/images/linkedin.png create mode 100644 Lets-Learn-Github/public/images/twiiter.png diff --git a/Lets-Learn-Github/contributors/index.html b/Lets-Learn-Github/contributors/index.html index 2b02f6a..b76c3a5 100644 --- a/Lets-Learn-Github/contributors/index.html +++ b/Lets-Learn-Github/contributors/index.html @@ -15,9 +15,8 @@ /* Style for each contributor item */ .contributor { - width: calc( - 30% - 10px - ); /* Adjust the width for three contributors in a row */ + width: calc(30% - 10px); + /* Adjust the width for three contributors in a row */ margin-bottom: 20px; padding: 20px; border: 1px solid #ccc; @@ -37,6 +36,10 @@ color: #666; width: 100%; overflow: auto; + background-color: #f9f9f9; + box-shadow: 0 0 5px #ccc; + padding: 6px; + border-radius: 5px; } /* Style for contributor image */ @@ -50,20 +53,22 @@ @media (max-width: 750px) { .contributor { - width: calc( - 50% - 10px - ); /* Adjust the width for two contributors in a row */ + width: calc(50% - 10px); + /* Adjust the width for two contributors in a row */ } } @media (max-width: 400px) { .contributor { - width: 100%; /* Full width for one contributor in a row */ + width: 100%; + /* Full width for one contributor in a row */ } } + +

Contributors

    @@ -90,6 +95,12 @@

    Contributors

    const name = filteredLines[0]; const details = filteredLines .slice(1) + .filter( + (line) => + !line.includes("LinkedIn:") && + !line.includes("GitHub:") && + !line.includes("Twitter:") + ) .map((line) => `
  • ${line}
  • `) .join(""); @@ -99,14 +110,35 @@

    Contributors

    ); const imageURL = imageURLMatch ? imageURLMatch[1] : ""; // Extracting the URL from the matched group + const linkedInMatch = contributor.match( + /LinkedIn: \[LinkedIn\]\((.*?)\)/ + ); + const linkedInLink = linkedInMatch ? linkedInMatch[1] : ""; + const gitHubMatch = contributor.match( + /GitHub: \[GitHub\]\((.*?)\)/ + ); + const gitHubLink = gitHubMatch ? gitHubMatch[1] : ""; + const twitterMatch = contributor.match( + /Twitter: \[Twitter\]\((.*?)\)/ + ); + const twitterLink = twitterMatch ? twitterMatch[1] : ""; + // Create list item for the contributor with image const li = document.createElement("li"); li.classList.add("contributor"); li.innerHTML = `
    +
    ${name}'s Profile Image ${name} +
    +
    +
      ${details}
    @@ -120,6 +152,6 @@

    Contributors

    fetchContributors(); +
- diff --git a/Lets-Learn-Github/public/images/github.png b/Lets-Learn-Github/public/images/github.png new file mode 100644 index 0000000000000000000000000000000000000000..1a3571d26d6be2a4d34d39539f715192719b5a5f GIT binary patch literal 3062 zcmVQA!SQ;7{YHDgOE-sy&oeK*K zkdTmne}Ap5trQd#BO@baWo5JdT`T|q3o}VXK~#90?OkhksyYzWf~Z&p#RvBI0PXAi z|37#yrB=X%> z-d8;m91d6SJ@fMrr@<`3KK0{sUk9*`q&F8UU9%7z4%cZf{N`P~hb}nG?GsEH`4zDJ z8T}12!QpV@+ax&YUxYp)oY*6H;U@QuizR+jP7zbb!OBhzcHF!w*jey6w%nu|*qSD| z;AZrIg;|39O5zc3CJFxKW+TL3a|F$VLCs@nh~H?>%|wd5k@)!7B`wj!&Om%)-mfoD z#b;+{W8^l$|0#Cds3VuRXo+1XioUB-w2EaHBlR~B?4&f@RP>L~R{cB?H60{+1S9Ts z6AT^xv5Z|Ve^BuQzoyyi_3eR)?t8L9~a88m6|ComHl z&!h>$iTYt>=1r~ZhpU#y#VOSFDTx>9aqCTHqtR$K@wUfw5ho{M#Y1aViF$QPy${4K z+6}LENTTrO{1h3vzJ+|sMeJXJYOC3d}1Y9fc$_$q!F+X0AOWDh=A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x&fQAcoa8`pjFZ#Mob#l{Rom0mKiPCnpM7K+b1#4@8w692<-}cSiThi%r!5wi8GP!285V}(^gS>rY%E@MtLKl^< zar`CL8+4bcCORp5<(0;FtpOm zisy#xGqiM5C|pc#o8gDGj_Wa)9n#%GAj752RtRhjb{Se84(}nkXx(TP!Z5Tx6Tk~|_hn)l2w@BQ`(zs2{@ zG~e06aM6c^X<{lpj+y2gr3~M=CK^s8Da}mteG-N*oFf1N;i7cMWC|-IpSY(}JqxmM zx>lROdx@QxxcT0+xmT+mcyViT@hG|*0s5NxUdXeIEMyJ3 zB8b1jRr@ZIFZe3QI>%hMw<{5NUe~qFJday={)21y4}8_EX1(|*wEzGB07*qoM6N<$ Ef`3KCnE(I) literal 0 HcmV?d00001 diff --git a/Lets-Learn-Github/public/images/linkedin.png b/Lets-Learn-Github/public/images/linkedin.png new file mode 100644 index 0000000000000000000000000000000000000000..6e5362d1941c16337a5a4b4bfe64a8ee33cd90fe GIT binary patch literal 1789 zcmb7_X;c!38irACMkt9_b8k%CaB_ii8OfC}bIB#QGIPtyL``a33(EjS63xcR1w+Mg z8I9B^ami89Tynn&W?ob>ubLZX{oLjGdV1rlha)ZW7e_#!f+)MKG$+;HN$?g7~ZzFwI259@(gQQ36Kg7&*x{v zeQ*xFaDUeuL9SwXllef%i30ljWM?B;>MRM*45M||?oR3)eXJP~OKSE0;7{8?TdNk{% z(5^FEbY9P2ZKzAOl-r*!v_f1|V`$>41~ZkgY?V^3ehkz#^8JA^`)%DR3vTyXI=-n~ zL?J7xgkUo3T#Qtqs7OP=ldX6%L`5B@)u8gp2smCOxOkKRcLK_^YzCB$`VCPEr;N$% zNdB-CvFi6!^wEe`_4;~-^=9GI6$(&}1>=*WKY*1r230SJ{kj4osV&6qvZ)toM6p>H zK>xQhdPn3!yiqL&5$jZr`Lo(~xf!t}sei6Pp+Xg}bwQr`AU%12?z8`U zZNdR&5#bBL)Y98Gv7gLqSbNsvEj}yKH8u&0Ucp*V4nK9%HVD#7M#A#_c=D;2G8K_> z6&vu`f>xjGn1&#WoM(EsniCbE2zHco#PsM$T!;7VxhbXW)t!`u^1Uz14fi6v6i!3s zhwZL|+b1b$_}GLy^|AN@46Utt?OYy2V>338%XL~Dlwt)sESNptt57C1vKf)qhQ|{` z;d&>sEE(G~6NKxmF{O3XP5%!2w{Ej75S-kcbn@X~Lo?*RvuMP|>n)|Ls{Tpzkg&J- z32iHbUe9Mq$67#45FKHpP{wA!FoP!>|0OU&o3exkAHnZ!K;`qE50Pi5$@_$gRo}6h z!^zKuO2ad$vg0YFAJGrk@|*Gwn8xZeVkMS#t*;pLxLYJ$QxW`^?2YD z{-bFc0nYpB+T6g2vb)?SqXf~79=iPI+3$bK7}tBhbAGBT!*9VRm?BF}IS^6JhFNi{ zPsJpH3_LoKq&nQrU}8OU@gussDvh@Np@&Hd0B4Mi9J4WA@DdeNHS58p5m!B@)Vin)Ji?DnCRxt|U5KCMDq&UaQm6snd2u(&eD; z{H63b^=v*rC_ua;>92y+)Q(6^#SjMI=$$;7R#l%C_MuAPwYc-3sHqfXOGfKzKD;-& zGORQHHuO6T-3GoufGU>(onR}w)Mlf)>H&zsvKO8E?;ZT_eJScl#!+z-$Z5nC z;^Y<;OZT0(HR}p8xnI&{cC!qAPb{ElVk#zZf4C1}Oa|d~nW5AdD$qvp4eE#Kry$8! zy;N-Pig7e=C_jGqied=?*XFUBJad;=)EQQ|eO1*Ab=7X48$riz;TD96Wz+t==}=dj zVc)brj(v@|V}3QH(aoa4+QY7~P7LApa9+W4`LsUeflf{=A%KnK!@y03$9WzD5*a&K W5z_fisKY^@0bHCs&@WM;kNyHW-D!>h literal 0 HcmV?d00001 diff --git a/Lets-Learn-Github/public/images/twiiter.png b/Lets-Learn-Github/public/images/twiiter.png new file mode 100644 index 0000000000000000000000000000000000000000..39e82d045fb077e9c2c74a48e60630ae63dff09c GIT binary patch literal 3056 zcmV(P)m~ z|Nj7!?*NwX0F>_lm+usr@BoqT-R=DD_Ws!F{IJ#dm&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