forked from LunarVim/lunarvim.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
socials.js
36 lines (34 loc) · 9.91 KB
/
socials.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const generateA = (url, icon) => {
return `<a class='social' href=${url} target='_blank' rel='noopener noreferrer'>${icon}</a>`;
};
const socials = [
generateA(
'https://twitter.com/chrisatmachine',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M23.643 4.93695C22.808 5.30695 21.911 5.55696 20.968 5.66996C21.941 5.08775 22.669 4.17142 23.016 3.09195C22.1019 3.63494 21.1014 4.01715 20.058 4.22196C19.3564 3.47282 18.4271 2.97628 17.4143 2.80943C16.4016 2.64258 15.3621 2.81475 14.4572 3.29921C13.5524 3.78367 12.8328 4.55332 12.4102 5.48866C11.9875 6.424 11.8855 7.4727 12.12 8.47195C10.2677 8.37895 8.45564 7.8975 6.80144 7.05886C5.14723 6.22022 3.68785 5.04312 2.51801 3.60396C2.11801 4.29396 1.88801 5.09396 1.88801 5.94596C1.88757 6.71295 2.07644 7.4682 2.43789 8.14469C2.79934 8.82118 3.32217 9.39799 3.96001 9.82396C3.22029 9.80042 2.49688 9.60054 1.85001 9.24095V9.30095C1.84994 10.3767 2.22204 11.4193 2.90319 12.252C3.58434 13.0846 4.53258 13.6559 5.58701 13.869C4.9008 14.0547 4.18135 14.082 3.48301 13.949C3.78051 14.8746 4.36001 15.684 5.14038 16.2639C5.92075 16.8438 6.86293 17.1651 7.83501 17.183C6.18485 18.4784 4.1469 19.181 2.04901 19.178C1.67739 19.1781 1.30609 19.1564 0.937012 19.113C3.06649 20.4821 5.54535 21.2088 8.07701 21.206C16.647 21.206 21.332 14.108 21.332 7.95195C21.332 7.75195 21.327 7.54995 21.318 7.34995C22.2293 6.69093 23.0159 5.87485 23.641 4.93995L23.643 4.93695V4.93695Z' fill='black'/></svg>",
),
generateA(
'https://www.reddit.com/r/lunarvim/',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 512 512' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M440.3 203.5C425.3 203.5 412.1 209.7 402.4 219.4C366.7 194.7 318.6 178.8 265.3 177.1L293 52.3L381.2 72.1C381.2 93.7 398.8 111.3 420.4 111.3C442.4 111.3 460.1 93.2 460.1 71.6C460.1 50 442.5 31.9 420.4 31.9C405 31.9 391.7 41.2 385.1 53.9L287.7 32.3C282.8 31 278 34.5 276.7 39.4L246.3 177C193.4 179.2 145.8 195.1 110 219.8C100.3 209.7 86.6001 203.5 71.6001 203.5C16.0001 203.5 -2.1999 278.1 48.7001 303.6C46.9001 311.5 46.1001 319.9 46.1001 328.3C46.1001 412.1 140.5 480 256.4 480C372.8 480 467.2 412.1 467.2 328.3C467.2 319.9 466.3 311.1 464.1 303.2C514 277.6 495.6 203.5 440.3 203.5V203.5ZM129.4 308.9C129.4 286.9 147 269.2 169.1 269.2C190.7 269.2 208.3 286.8 208.3 308.9C208.3 330.5 190.7 348.1 169.1 348.1C147.1 348.2 129.4 330.5 129.4 308.9V308.9ZM343.7 402.4C307.3 438.8 204.6 438.8 168.2 402.4C164.2 398.9 164.2 392.7 168.2 388.7C171.7 385.2 177.9 385.2 181.4 388.7C209.2 417.2 301.4 417.7 330.4 388.7C333.9 385.2 340.1 385.2 343.6 388.7C347.7 392.7 347.7 398.9 343.7 402.4ZM342.9 348.2C321.3 348.2 303.7 330.6 303.7 309C303.7 287 321.3 269.3 342.9 269.3C364.9 269.3 382.6 286.9 382.6 309C382.5 330.5 364.9 348.2 342.9 348.2Z' fill='black'/></svg>",
),
generateA(
'https://www.youtube.com/channel/UCS97tchJDq17Qms3cux8wcA',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 47 46' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M18.8538 28.2191V15.8332L31.0105 22.0482L18.8538 28.2191V28.2191ZM45.55 13.6888C45.55 13.6888 45.1112 10.6497 43.7612 9.31189C42.0512 7.55759 40.132 7.54877 39.2522 7.44519C32.9567 7 23.509 7 23.509 7H23.491C23.491 7 14.0455 7 7.74775 7.44519C6.868 7.54877 4.951 7.55538 3.23875 9.31189C1.88875 10.6497 1.45 13.6888 1.45 13.6888C1.45 13.6888 1 17.2547 1 20.8228V24.1661C1 27.732 1.45 31.3002 1.45 31.3002C1.45 31.3002 1.88875 34.3371 3.23875 35.6749C4.94875 37.4314 7.19875 37.3741 8.2 37.5592C11.8 37.8964 23.5 38 23.5 38C23.5 38 32.9567 37.9868 39.2522 37.5416C40.132 37.438 42.0512 37.4314 43.7612 35.6749C45.1112 34.3371 45.55 31.3002 45.55 31.3002C45.55 31.3002 46 27.732 46 24.1661V20.8228C46 17.2547 45.55 13.6888 45.55 13.6888V13.6888Z' fill='black'/></svg>",
),
generateA(
'https://matrix.to/#/#the-machine:matrix.org',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_602_4)'><path d='M0.844 0.735023V31.266H3.041V32.001H0V0.00102344H3.041V0.736023L0.844 0.735023ZM10.235 10.412V11.959H10.276C10.6603 11.3936 11.1698 10.9244 11.765 10.588C12.344 10.265 13.016 10.104 13.765 10.104C14.484 10.104 15.145 10.245 15.74 10.521C16.339 10.802 16.787 11.297 17.099 12C17.438 11.5 17.902 11.057 18.479 10.677C19.058 10.297 19.746 10.104 20.542 10.104C21.1088 10.0983 21.6736 10.1737 22.219 10.328C22.74 10.473 23.178 10.708 23.547 11.031C23.912 11.36 24.198 11.782 24.407 12.303C24.61 12.823 24.714 13.454 24.714 14.194V21.829H21.585V15.361C21.5859 14.9991 21.5699 14.6374 21.537 14.277C21.518 13.9705 21.4366 13.6711 21.298 13.397C21.1674 13.1451 20.9639 12.9384 20.714 12.804C20.459 12.652 20.105 12.58 19.667 12.58C19.224 12.58 18.87 12.663 18.599 12.829C18.3333 12.9945 18.1133 13.2238 17.959 13.496C17.7987 13.7828 17.6942 14.0974 17.651 14.423C17.6005 14.7702 17.5728 15.1203 17.568 15.471V21.83H14.437V15.429C14.437 15.09 14.432 14.757 14.412 14.429C14.4029 14.1146 14.3375 13.8044 14.219 13.513C14.1146 13.234 13.9204 12.9976 13.667 12.841C13.412 12.674 13.031 12.586 12.531 12.586C12.38 12.586 12.183 12.617 11.943 12.685C11.703 12.752 11.464 12.877 11.24 13.06C10.9866 13.2784 10.7854 13.5507 10.651 13.857C10.49 14.2 10.412 14.653 10.412 15.216V21.836H7.281V10.415L10.235 10.412ZM31.156 31.265V0.734023H28.959V-0.000976562H32V31.999H28.959V31.264L31.156 31.265Z' fill='black'/></g><defs><clipPath id='clip0_602_4'><rect width='32' height='32' fill='black'/></clipPath></defs></svg>",
),
generateA(
'https://discord.gg/Xb9B4Ny',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_112_940)'><path d='M27.0506 6.38193C25.0786 5.49262 22.9649 4.8353 20.7545 4.46154C20.7348 4.45776 20.7144 4.46019 20.6962 4.4685C20.678 4.47682 20.6628 4.4906 20.6527 4.50793C20.382 4.98352 20.0804 5.60346 19.8691 6.09323C17.5248 5.74296 15.1414 5.74296 12.7971 6.09323C12.5617 5.55044 12.2962 5.02119 12.0019 4.50793C11.9919 4.49038 11.9768 4.47629 11.9586 4.46754C11.9404 4.45879 11.92 4.4558 11.9001 4.45896C9.69097 4.83273 7.57724 5.49004 5.604 6.38064C5.58703 6.38776 5.57263 6.39991 5.56276 6.41544C1.55184 12.312 0.452443 18.0628 0.992474 23.7415C0.993977 23.7554 0.998294 23.7689 1.00516 23.7811C1.01203 23.7933 1.02131 23.8039 1.03243 23.8124C3.3735 25.5168 5.98465 26.8152 8.75655 27.6532C8.77587 27.6592 8.79654 27.6591 8.81585 27.6532C8.83516 27.6472 8.85222 27.6355 8.86481 27.6197C9.46129 26.822 9.98985 25.9757 10.4449 25.0897C10.4513 25.0776 10.4549 25.0642 10.4556 25.0506C10.4563 25.0369 10.4541 25.0233 10.4491 25.0106C10.4441 24.9979 10.4364 24.9864 10.4266 24.9769C10.4167 24.9674 10.405 24.9602 10.3921 24.9556C9.55951 24.6421 8.75279 24.2637 7.97936 23.824C7.96547 23.8161 7.95376 23.8048 7.94528 23.7913C7.93681 23.7777 7.93184 23.7622 7.93082 23.7462C7.9298 23.7303 7.93275 23.7143 7.93943 23.6998C7.9461 23.6852 7.95628 23.6726 7.96905 23.6629C8.13145 23.5431 8.29385 23.418 8.44851 23.293C8.46243 23.2818 8.4792 23.2746 8.49695 23.2723C8.5147 23.2701 8.53273 23.2728 8.54904 23.2801C13.6104 25.5537 19.0919 25.5537 24.0939 23.2801C24.1103 23.2723 24.1285 23.2693 24.1465 23.2713C24.1645 23.2734 24.1816 23.2804 24.1958 23.2917C24.3504 23.418 24.5115 23.5431 24.6752 23.6629C24.6881 23.6724 24.6985 23.6848 24.7053 23.6993C24.7122 23.7137 24.7154 23.7296 24.7147 23.7455C24.7139 23.7615 24.7092 23.777 24.701 23.7907C24.6927 23.8044 24.6812 23.8159 24.6675 23.824C23.8967 24.2674 23.0951 24.6424 22.2534 24.9543C22.2405 24.959 22.2287 24.9664 22.2189 24.976C22.2091 24.9856 22.2014 24.9972 22.1964 25.0101C22.1914 25.0229 22.1892 25.0366 22.1899 25.0503C22.1906 25.064 22.1943 25.0775 22.2006 25.0897C22.6646 25.9751 23.1956 26.818 23.7795 27.6184C23.7916 27.6348 23.8085 27.6471 23.8279 27.6536C23.8473 27.66 23.8682 27.6604 23.8877 27.6545C26.6644 26.8189 29.2798 25.5199 31.6234 23.8124C31.6349 23.8044 31.6445 23.7941 31.6516 23.7821C31.6587 23.7701 31.6632 23.7567 31.6647 23.7428C32.3091 17.1774 30.5846 11.4729 27.0905 6.41802C27.082 6.40159 27.0678 6.38879 27.0506 6.38193ZM11.2015 20.2835C9.67808 20.2835 8.42144 18.9057 8.42144 17.2161C8.42144 15.5251 9.65359 14.1486 11.2015 14.1486C12.761 14.1486 14.0061 15.5367 13.9816 17.2161C13.9816 18.907 12.7494 20.2835 11.2015 20.2835ZM21.4801 20.2835C19.9554 20.2835 18.7001 18.9057 18.7001 17.2161C18.7001 15.5251 19.9309 14.1486 21.4801 14.1486C23.0397 14.1486 24.2847 15.5367 24.2602 17.2161C24.2602 18.907 23.0409 20.2835 21.4801 20.2835Z' fill='black'/></g><defs><clipPath id='clip0_112_940'><rect width='30.9326' height='30.9326' fill='black' transform='translate(0.86499 0.592377)'/></clipPath></defs></svg>",
),
generateA(
'https://github.com/lunarvim/lunarvim',
"<svg width='1.5rem' height='1.5rem' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_602_8)'><path fill-rule='evenodd' clip-rule='evenodd' d='M12 0C5.37 0 0 5.37 0 12C0 17.31 3.435 21.795 8.205 23.385C8.805 23.49 9.03 23.13 9.03 22.815C9.03 22.53 9.015 21.585 9.015 20.58C6 21.135 5.22 19.845 4.98 19.17C4.845 18.825 4.26 17.76 3.75 17.475C3.33 17.25 2.73 16.695 3.735 16.68C4.68 16.665 5.355 17.55 5.58 17.91C6.66 19.725 8.385 19.215 9.075 18.9C9.18 18.12 9.495 17.595 9.84 17.295C7.17 16.995 4.38 15.96 4.38 11.37C4.38 10.065 4.845 8.985 5.61 8.145C5.49 7.845 5.07 6.615 5.73 4.965C5.73 4.965 6.735 4.65 9.03 6.195C9.99 5.925 11.01 5.79 12.03 5.79C13.05 5.79 14.07 5.925 15.03 6.195C17.325 4.635 18.33 4.965 18.33 4.965C18.99 6.615 18.57 7.845 18.45 8.145C19.215 8.985 19.68 10.05 19.68 11.37C19.68 15.975 16.875 16.995 14.205 17.295C14.64 17.67 15.015 18.39 15.015 19.515C15.015 21.12 15 22.41 15 22.815C15 23.13 15.225 23.505 15.825 23.385C18.2072 22.5807 20.2772 21.0497 21.7437 19.0074C23.2101 16.965 23.9993 14.5143 24 12C24 5.37 18.63 0 12 0Z' fill='black'/></g><defs><clipPath id='clip0_602_8'><rect width='24' height='24' fill='black'/></clipPath></defs></svg>",
),
];
module.exports = socials.map((value) => ({
position: 'right',
type: 'html',
value,
}));