├── assets ├── img │ ├── logo.png │ ├── banner.gif │ ├── logo_blue.png │ └── badges │ │ ├── boost.webp │ │ ├── nitro.webp │ │ └── bravery.webp ├── font │ ├── whitneybold.woff │ ├── whitneybook.woff │ ├── whitneylight.woff │ ├── whitneymedium.woff │ ├── whitneybookitalic.woff │ ├── whitneysemibold.woff │ ├── whitneylightitalic.woff │ ├── whitneymediumitalic.woff │ ├── WhitneySemiboldItalic.woff │ └── style.css ├── js │ └── demo.js └── css │ └── style.css ├── README.md ├── index.html └── DiscordUserCard.vue /assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/logo.png -------------------------------------------------------------------------------- /assets/img/banner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/banner.gif -------------------------------------------------------------------------------- /assets/img/logo_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/logo_blue.png -------------------------------------------------------------------------------- /assets/font/whitneybold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneybold.woff -------------------------------------------------------------------------------- /assets/font/whitneybook.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneybook.woff -------------------------------------------------------------------------------- /assets/font/whitneylight.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneylight.woff -------------------------------------------------------------------------------- /assets/img/badges/boost.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/badges/boost.webp -------------------------------------------------------------------------------- /assets/img/badges/nitro.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/badges/nitro.webp -------------------------------------------------------------------------------- /assets/font/whitneymedium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneymedium.woff -------------------------------------------------------------------------------- /assets/img/badges/bravery.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/img/badges/bravery.webp -------------------------------------------------------------------------------- /assets/font/whitneybookitalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneybookitalic.woff -------------------------------------------------------------------------------- /assets/font/whitneysemibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneysemibold.woff -------------------------------------------------------------------------------- /assets/font/whitneylightitalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneylightitalic.woff -------------------------------------------------------------------------------- /assets/font/whitneymediumitalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/whitneymediumitalic.woff -------------------------------------------------------------------------------- /assets/font/WhitneySemiboldItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sybrax/Discord-User-Card/HEAD/assets/font/WhitneySemiboldItalic.woff -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 |
31 |
32 | Demo : here
33 |
34 | Download : here
35 |
36 | ## Old version preview :
37 |
38 |
39 |
40 | Download : here ( Non-optimized code )
41 |
42 | ## Community :
43 |
44 | Join creators-area to see more of the community: : here
45 |
46 | ## Author :
47 |
48 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/assets/font/style.css:
--------------------------------------------------------------------------------
1 | /* #### Generated By: http://www.cufonfonts.com #### */
2 |
3 | @font-face {
4 | font-family: "Whitney";
5 | font-style: normal;
6 | font-weight: normal;
7 | src: local("Whitney"), url("whitneymedium.woff") format("woff");
8 | }
9 |
10 | @font-face {
11 | font-family: "Whitney Medium Italic";
12 | font-style: normal;
13 | font-weight: normal;
14 | src: local("Whitney Medium Italic"),
15 | url("whitneymediumitalic.woff") format("woff");
16 | }
17 |
18 | @font-face {
19 | font-family: "Whitney Bold";
20 | font-style: normal;
21 | font-weight: normal;
22 | src: local("Whitney Bold"), url("whitneybold.woff") format("woff");
23 | }
24 |
25 | @font-face {
26 | font-family: "Whitney Semibold Regular";
27 | font-style: normal;
28 | font-weight: normal;
29 | src: local("Whitney Semibold Regular"),
30 | url("whitneysemibold.woff") format("woff");
31 | }
32 |
33 | @font-face {
34 | font-family: "Whitney Book Regular";
35 | font-style: normal;
36 | font-weight: normal;
37 | src: local("Whitney Book Regular"), url("whitneybook.woff") format("woff");
38 | }
39 |
40 | @font-face {
41 | font-family: "Whitney Light Regular";
42 | font-style: normal;
43 | font-weight: normal;
44 | src: local("Whitney Light Regular"), url("whitneylight.woff") format("woff");
45 | }
46 |
47 | @font-face {
48 | font-family: "Whitney Semibold Italic";
49 | font-style: normal;
50 | font-weight: normal;
51 | src: local("Whitney Semibold Italic"),
52 | url("WhitneySemiboldItalic.woff") format("woff");
53 | }
54 |
55 | @font-face {
56 | font-family: "Whitney Book Italic";
57 | font-style: normal;
58 | font-weight: normal;
59 | src: local("Whitney Book Italic"),
60 | url("whitneybookitalic.woff") format("woff");
61 | }
62 |
63 | @font-face {
64 | font-family: "Whitney Light Italic";
65 | font-style: normal;
66 | font-weight: normal;
67 | src: local("Whitney Light Italic"),
68 | url("whitneylightitalic.woff") format("woff");
69 | }
70 |
--------------------------------------------------------------------------------
/assets/js/demo.js:
--------------------------------------------------------------------------------
1 | const profilLogo = document.querySelectorAll(".profil-logo");
2 | const roleAdd = document.querySelectorAll(".role-add");
3 | const input = document.querySelectorAll(".message input");
4 | const modal = document.querySelector(".modal-container");
5 | const helpBtn = document.querySelector(".help-btn");
6 | const feedbackInput = document.querySelector("#feedback-input");
7 |
8 | const randomHexColor = () => {
9 | return "#" + Math.floor(Math.random() * 16777215).toString(16);
10 | };
11 |
12 | const ramdomWord = () => {
13 | const words = [
14 | "Awesome",
15 | "Cool",
16 | "Great",
17 | "Nice",
18 | "Super",
19 | "Superb",
20 | "Superior",
21 | "Wonderful",
22 | "Amazing",
23 | "Fantastic",
24 | "Fabulous",
25 | "Incredible",
26 | "Marvelous",
27 | "Spectacular",
28 | "Stupendous",
29 | "Terrific",
30 | "Astounding",
31 | ];
32 | return words[Math.floor(Math.random() * words.length)];
33 | };
34 |
35 | const addRole = (card) => {
36 | const role = document.createElement("div");
37 | const roleColor = document.createElement("div");
38 | const roleText = document.createElement("p");
39 | role.classList.add("role");
40 | roleColor.classList.add("role-color");
41 | roleColor.style.backgroundColor = randomHexColor();
42 | roleText.innerText = ramdomWord();
43 | role.append(roleColor, roleText);
44 | card.parentElement.append(role, card);
45 | removeRole();
46 | };
47 |
48 | const removeRole = () => {
49 | const roles = document.querySelectorAll(".role-color");
50 | roles.forEach((role) => {
51 | role.addEventListener("click", (e) => {
52 | e.target.parentElement.remove();
53 | });
54 | });
55 | };
56 |
57 | const toggleModal = () => {
58 | modal.classList.toggle("active");
59 | };
60 |
61 | profilLogo.forEach((logo) => {
62 | logo.addEventListener("click", toggleModal);
63 | });
64 |
65 | roleAdd.forEach((add) => {
66 | add.addEventListener("click", () => {
67 | addRole(add);
68 | });
69 | });
70 |
71 | input.forEach((input) => {
72 | input.addEventListener("keyup", (e) => {
73 | if (e.key === "Enter") {
74 | input.value = "";
75 | input.blur();
76 | toggleModal();
77 | }
78 | });
79 | });
80 |
81 | modal.addEventListener("click", (e) => {
82 | if (e.target === modal) {
83 | toggleModal();
84 | }
85 | });
86 |
87 | helpBtn.addEventListener("click", () => {
88 | toggleModal();
89 | });
90 |
91 | feedbackInput.addEventListener("keyup", (e) => {
92 | const feedbackState = document.querySelector(".feedback-state");
93 | if (e.key === "Enter") {
94 | feedbackInput.blur();
95 | // Api wiil be add soon for a complete feedback system for me ( more big project will be add soon on my github, that's why would be nice to have a feedback system ) :)
96 | feedbackState.classList.add("error");
97 | feedbackState.innerText = "Api is not available for the moment, try later.";
98 | }
99 | });
100 |
101 | removeRole();
102 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
24 |
28 |
32 |
36 |
51 | Your about me description.
52 | →
53 | A link !
54 |
Jun 14, 2017
59 |Role title
66 |A long role title
70 |A very very very very long role title
74 |Role title
78 |Role title
82 |Role title
86 |
111 |
115 |
119 |
123 | Your about me description.
139 |Jun 14, 2017
143 |Role title
150 |A long role title
154 |A very very very very long role title
158 |Role title
162 |Role title
166 |Role title
170 |
195 |
199 |
203 |
207 | Your about me description.
219 |Jun 14, 2017
223 |
243 |
247 |
251 |
255 | Your about me description.
267 |Jun 14, 2017
271 |
32 |
{{ $props.memberSince }}
38 |{{ role.name }}
45 |