Restructure components

This commit is contained in:
Ibitoye Rotimi Best
2021-05-06 07:15:40 +03:00
parent a80ecc31d0
commit c15c421fee
17 changed files with 174 additions and 162 deletions
+54
View File
@@ -0,0 +1,54 @@
<script>
// your script goes here
const contributors = [
{
name: "Koskting",
},
{
name: "Koskting",
},
{
name: "Koskting",
},
{
name: "Koskting",
},
{
name: "Koskting",
},
];
</script>
<!-- markup (zero or more items) goes here -->
<div
class="sidebar-root p-5 w-100 border border-1 border-gray rounded-md md:mt-12"
>
<h4 class="border-b border-gray text-base font-bold pb-1">Самые полезные</h4>
{#each contributors as contributor}
<a class="flex pt-3" href="/{contributor.name}">
<img
class="inline-block overflow-hidden rounded-full mr-1 leading-none align-middle"
src="https://avatars0.githubusercontent.com/u/2854919?s=40&amp;v=4"
width="23"
height="20"
alt="@jamesmosier"
/>
<span class="hover:text-blue-700 hover:underline">{contributor.name}</span
>
</a>
{/each}
</div>
<style>
.sidebar-root {
width: 250px;
min-width: 250px;
height: fit-content;
}
@media only screen and (max-width: 1002px) {
.sidebar-root {
display: none;
}
}
</style>