Tailwind config and basic services

This commit is contained in:
Aslan 2025-12-31 17:15:14 +01:00
parent f1e90c4dd2
commit be6467cd2c
41 changed files with 581 additions and 102 deletions

View file

@ -1,7 +1,11 @@
import type { Component } from "solid-js";
const ChannelBar: Component = () => {
return <div class="bg-stone-800 h-16 shadow-bar z-10"></div>;
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>
);
};
export default ChannelBar;

View file

@ -1,7 +1,17 @@
import type { Component } from "solid-js";
import { ICommunityProps } from "./types";
const Community: Component = () => {
return <div></div>;
const Community: Component<ICommunityProps> = (props: ICommunityProps) => {
return (
<div
class="avatar cursor-pointer"
onClick={() => props.onCommunityClick(props.id)}
>
<div class="w-full rounded-full">
<img src={props.avatar} />
</div>
</div>
);
};
export default Community;

View file

@ -1 +1,2 @@
export * from "./Community";
export * from "./types";

View file

@ -0,0 +1,8 @@
interface ICommunityProps {
id: string;
name: string;
avatar: string;
onCommunityClick: (id: string) => void;
}
export { type ICommunityProps };

View file

@ -9,7 +9,7 @@ const Message: Component<IMessageProps> = (props: IMessageProps) => {
onClick={() => props.onProfileClick(props.userId)}
>
<div class="w-10 rounded-full">
<img src={props.profileImage} />
<img src={props.avatar} />
</div>
</div>
<div>

View file

@ -3,7 +3,7 @@ interface IMessageProps {
message: string;
userId: string;
username: string;
profileImage: string;
avatar: string;
onProfileClick: (userId: string) => void;
}

View file

@ -2,18 +2,14 @@ import type { Component } from "solid-js";
const MessageBar: Component = () => {
return (
<div class="bg-stone-800 h-16 shadow-bar z-10 p-2">
<div class="join w-full h-full">
<div class="w-full h-full">
<label class="input validator join-item w-full h-full">
<input
type="text"
placeholder="Write a text message..."
required
/>
</label>
</div>
<button class="btn btn-neutral join-item h-full">Send</button>
<div class="absolute w-full bottom-0 p-4 z-10">
<div class="bg-stone-800/25 backdrop-blur-lg h-16 shadow-bar p-2 flex flex-row gap-2 rounded-full">
<label class="bg-stone-800/50 backdrop-blur-lg input w-full h-full rounded-full focus:border-none outline-none">
<input type="text" placeholder="Send a message..." />
</label>
<button class="bg-black/50 backdrop-blur-lg btn btn-neutral h-full rounded-full">
Send
</button>
</div>
</div>
);