Communities and channels
This commit is contained in:
parent
79dbeb6b7a
commit
280158470a
34 changed files with 558 additions and 62 deletions
|
|
@ -1,9 +1,15 @@
|
|||
import type { Component } from "solid-js";
|
||||
import { IChannelBarProps } from "./types";
|
||||
|
||||
const ChannelBar: Component = () => {
|
||||
const ChannelBar: Component<IChannelBarProps> = (props: IChannelBarProps) => {
|
||||
return (
|
||||
<div class="absolute w-full top-0 z-10">
|
||||
<div class="bg-stone-800/25 backdrop-blur-md h-16 w-full shadow-bar p-2"></div>
|
||||
<div class="flex flex-col justify-center bg-stone-800/25 backdrop-blur-md h-16 w-full shadow-bar px-5">
|
||||
<h2 class="text-sm font-bold">
|
||||
{props.name ? `# ${props.name}` : undefined}
|
||||
</h2>
|
||||
<p class="text-xs">{props.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
export * from "./ChannelBar";
|
||||
export * from "./types";
|
||||
|
|
|
|||
7
src/components/ChannelBar/types.ts
Normal file
7
src/components/ChannelBar/types.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
interface IChannelBarProps {
|
||||
id?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export { type IChannelBarProps };
|
||||
Loading…
Add table
Add a link
Reference in a new issue