mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Implement Sidebar component
This commit is contained in:
parent
28a32044f4
commit
cfd4fcd957
8 changed files with 56 additions and 3 deletions
44
src/components/Sidebar.astro
Normal file
44
src/components/Sidebar.astro
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
import { Image } from 'astro:assets'
|
||||
|
||||
import discord from 'img/socials/discord.png'
|
||||
import kofi from 'img/socials/ko-fi-donate-button.png'
|
||||
import yt from 'img/socials/yt.png'
|
||||
import twitter from 'img/socials/twitter.png'
|
||||
import SidebarSection from './sidebar/SidebarSection.astro'
|
||||
|
||||
// import Highlight from './sidebar/Highlight.astro'
|
||||
|
||||
const listClass =
|
||||
'uppercase text-3xl font-semibold w-full text-center py-3 hover:bg-dark-hover hover:text-cyan-400 hover:underline'
|
||||
---
|
||||
|
||||
<div class='w-3/12 max-w-[300px] bg-dark flex flex-col'>
|
||||
<a href='#' class={listClass}>Last Added</a>
|
||||
<a href='#' class={listClass}>Get Lucky</a>
|
||||
<a href='#' class={listClass}>Random Pull</a>
|
||||
<div class='px-6 flex flex-col gap-y-3'>
|
||||
<SidebarSection class='flex flex-col gap-y-3'>
|
||||
<div class='flex gap-x-2 justify-center'>
|
||||
<a href='https://www.youtube.com/channel/UCb1Q0GuOa8p_7fY-pYnWCmQ' target='_blank' rel='noopener noreferrer'>
|
||||
<Image class='rounded-md' src={yt} alt='youtube' />
|
||||
</a>
|
||||
|
||||
<a href='https://twitter.com/SittingOnCloud' target='_blank' rel='noopener noreferrer'>
|
||||
<Image class='rounded-md' src={twitter} alt='twitter' />
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href='https://discord.gg/x23SFbE' target='_blank' rel='noopener noreferrer'>
|
||||
<Image class='rounded-md' src={discord} alt='Join our Discord!' />
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href='https://ko-fi.com/sittingonclouds' target='_blank' rel='noopener noreferrer'>
|
||||
<Image class='rounded-md' src={kofi} alt='Support me on Ko-fi' />
|
||||
</a>
|
||||
</div>
|
||||
</SidebarSection>
|
||||
<!-- <Highlight /> -->
|
||||
</div>
|
||||
</div>
|
||||
BIN
src/img/socials/discord.png
Normal file
BIN
src/img/socials/discord.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
src/img/socials/ko-fi-donate-button.png
Normal file
BIN
src/img/socials/ko-fi-donate-button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
src/img/socials/twitter.png
Normal file
BIN
src/img/socials/twitter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/img/socials/yt.png
Normal file
BIN
src/img/socials/yt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 977 B |
|
|
@ -24,9 +24,9 @@ import 'styles/global.css'
|
|||
|
||||
<link rel='alternate' type='application/rss+xml' title='Sitting on Clouds' href={new URL('rss.xml', Astro.site)} />
|
||||
</head>
|
||||
<body class='flex flex-col min-h-full m-0 color-'>
|
||||
<body class='flex flex-col min-h-full m-0'>
|
||||
<Header />
|
||||
<main class='flex-1 bg-soc-green'>
|
||||
<main class='flex flex-1 bg-soc-green'>
|
||||
<Toaster client:only='react' toastOptions={{ duration: 6000 }} />
|
||||
<slot />
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
---
|
||||
import Sidebar from 'components/Sidebar.astro'
|
||||
import BaseLayout from 'layouts/base.astro'
|
||||
---
|
||||
|
||||
<BaseLayout />
|
||||
<BaseLayout>
|
||||
<div class='flex flex-1 max-w-[2000px]'>
|
||||
<div class='flex-1'>Page content goes here</div>
|
||||
<Sidebar />
|
||||
</div>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
|
||||
|
||||
* {
|
||||
color: white;
|
||||
font-family: 'Rubik', Sans-serif;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue