[READ-ONLY] Mirror of https://github.com/flo-bit/tiny-docs. quick setup, simple, minimalistic docs for your github project
flo-bit.dev/tiny-docs/
9.5 kB
202 lines
1---
2import { config } from "../../config";
3
4const today = new Date();
5---
6
7<footer
8 class="pt-6 pb-12 md:flex md:items-center md:justify-between border-t border-base-200 dark:border-base-800"
9>
10 <div class="flex justify-center items-center gap-x-4 md:order-2">
11 {
12 config.FACEBOOK_URL ? (
13 <a
14 target="_blank"
15 href={config.FACEBOOK_URL}
16 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
17 >
18 <span class="sr-only">Facebook</span>
19 <svg
20 class="h-5 w-5"
21 fill="currentColor"
22 viewBox="0 0 24 24"
23 aria-hidden="true"
24 >
25 <path
26 fill-rule="evenodd"
27 d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"
28 clip-rule="evenodd"
29 />
30 </svg>
31 </a>
32 ) : null
33 }
34 {
35 config.BLUESKY_URL ? (
36 <a
37 target="_blank"
38 href={config.BLUESKY_URL}
39 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
40 >
41 <span class="sr-only">Bluesky</span>
42
43 <svg
44 fill="currentColor"
45 xmlns="http://www.w3.org/2000/svg"
46 viewBox="-40 -40 680 620"
47 version="1.1"
48 class="h-5 w-5"
49 aria-hidden="true"
50 >
51 <path d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z" />
52 </svg>
53 </a>
54 ) : null
55 }
56
57 {
58 config.TWITTER_URL ? (
59 <a
60 target="_blank"
61 href={config.TWITTER_URL}
62 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
63 >
64 <span class="sr-only">X</span>
65 <svg
66 class="h-5 w-5"
67 fill="currentColor"
68 viewBox="0 0 24 24"
69 aria-hidden="true"
70 >
71 <path d="M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" />
72 </svg>
73 </a>
74 ) : null
75 }{
76 config.LINKEDIN_URL ? (
77 <a
78 target="_blank"
79 href={config.LINKEDIN_URL}
80 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
81 >
82 <span class="sr-only">LinkedIn</span>
83 <svg
84 xmlns="http://www.w3.org/2000/svg"
85 viewBox="-3 -3 30 30"
86 fill="currentColor"
87 class="h-5 w-5"
88 >
89 <path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
90 </svg>
91 </a>
92 ) : null
93 }
94
95 {
96 config.YOUTUBE_URL ? (
97 <a
98 target="_blank"
99 href={config.YOUTUBE_URL}
100 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
101 >
102 <span class="sr-only">YouTube</span>
103 <svg
104 class="h-5 w-5"
105 fill="currentColor"
106 viewBox="1 1 22 22"
107 aria-hidden="true"
108 >
109 <path
110 fill-rule="evenodd"
111 d="M19.812 5.418c.861.23 1.538.907 1.768 1.768C21.998 8.746 22 12 22 12s0 3.255-.418 4.814a2.504 2.504 0 0 1-1.768 1.768c-1.56.419-7.814.419-7.814.419s-6.255 0-7.814-.419a2.505 2.505 0 0 1-1.768-1.768C2 15.255 2 12 2 12s0-3.255.417-4.814a2.507 2.507 0 0 1 1.768-1.768C5.744 5 11.998 5 11.998 5s6.255 0 7.814.418ZM15.194 12 10 15V9l5.194 3Z"
112 clip-rule="evenodd"
113 />
114 </svg>
115 </a>
116 ) : null
117 }
118 {
119 config.EMAIL ? (
120 <a
121 target="_blank"
122 href={"mailto:" + config.EMAIL}
123 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
124 >
125 <span class="sr-only">{config.EMAIL}</span>
126 <svg
127 xmlns="http://www.w3.org/2000/svg"
128 viewBox="-2 -2 28 28"
129 fill="currentColor"
130 class="h-5 w-5"
131 >
132 <path d="M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z" />
133 <path d="M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z" />
134 </svg>
135 </a>
136 ) : null
137 }
138 {
139 config.DISCORD_URL ? (
140 <a
141 target="_blank"
142 href={config.DISCORD_URL}
143 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
144 >
145 <span class="sr-only">Discord</span>
146
147 <svg
148 class="w-5 h-5"
149 viewBox="0 -28.5 256 256"
150 fill="currentColor"
151 aria-hidden="true"
152 preserveAspectRatio="xMidYMid"
153 >
154 <g>
155 <path
156 d="M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z"
157 fill-rule="nonzero"
158 />
159 </g>
160 </svg>
161 </a>
162 ) : null
163 }
164 {
165 config.GITHUB_URL ? (
166 <a
167 target="_blank"
168 href={config.GITHUB_URL}
169 class="text-base-400 hover:text-base-600 dark:text-base-600 dark:hover:text-base-400"
170 >
171 <span class="sr-only">GitHub</span>
172
173 <svg
174 fill="currentColor"
175 viewBox="0 0 24 24"
176 aria-hidden="true"
177 class="h-5 w-5"
178 >
179 <path
180 fill-rule="evenodd"
181 d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
182 clip-rule="evenodd"
183 />
184 </svg>
185 </a>
186 ) : null
187 }
188 </div>
189 <p
190 class="mt-8 text-center text-xs text-base-600 dark:text-base-400 md:order-1 md:mt-0"
191 >
192 © {today.getFullYear()}
193 {config.SITE_NAME ? config.SITE_NAME + "." : ""}
194
195 Docs powered by <a
196 href="https://github.com/flo-bit/tiny-docs"
197 target="_blank"
198 class="text-accent-800 hover:text-accent-600 dark:text-accent-400 dark:hover:text-accent-500"
199 >Tiny Docs</a
200 >
201 </p>
202</footer>