Base layout
This commit is contained in:
parent
874bd18f11
commit
f1e90c4dd2
34 changed files with 2966 additions and 2725 deletions
7
src/components/Channel/Channel.tsx
Normal file
7
src/components/Channel/Channel.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { Component } from "solid-js";
|
||||
|
||||
const Channel: Component = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export default Channel;
|
||||
1
src/components/Channel/index.ts
Normal file
1
src/components/Channel/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./Channel";
|
||||
7
src/components/ChannelBar/ChannelBar.tsx
Normal file
7
src/components/ChannelBar/ChannelBar.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { Component } from "solid-js";
|
||||
|
||||
const ChannelBar: Component = () => {
|
||||
return <div class="bg-stone-800 h-16 shadow-bar z-10"></div>;
|
||||
};
|
||||
|
||||
export default ChannelBar;
|
||||
1
src/components/ChannelBar/index.ts
Normal file
1
src/components/ChannelBar/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./ChannelBar";
|
||||
7
src/components/Community/Community.tsx
Normal file
7
src/components/Community/Community.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { Component } from "solid-js";
|
||||
|
||||
const Community: Component = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export default Community;
|
||||
1
src/components/Community/index.ts
Normal file
1
src/components/Community/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./Community";
|
||||
7
src/components/Member/Member.tsx
Normal file
7
src/components/Member/Member.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import type { Component } from "solid-js";
|
||||
|
||||
const Member: Component = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export default Member;
|
||||
1
src/components/Member/index.ts
Normal file
1
src/components/Member/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./Member";
|
||||
23
src/components/Message/Message.tsx
Normal file
23
src/components/Message/Message.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { Component } from "solid-js";
|
||||
import { IMessageProps } from "./types";
|
||||
|
||||
const Message: Component<IMessageProps> = (props: IMessageProps) => {
|
||||
return (
|
||||
<li class="list-row hover:bg-stone-700">
|
||||
<div
|
||||
class="avatar cursor-pointer"
|
||||
onClick={() => props.onProfileClick(props.userId)}
|
||||
>
|
||||
<div class="w-10 rounded-full">
|
||||
<img src={props.profileImage} />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div>{props.username}</div>
|
||||
<p class="list-col-wrap text-xs">{props.message}</p>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
export default Message;
|
||||
2
src/components/Message/index.ts
Normal file
2
src/components/Message/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export * from "./Message";
|
||||
export * from "./types";
|
||||
10
src/components/Message/types.ts
Normal file
10
src/components/Message/types.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
interface IMessageProps {
|
||||
messageId: string;
|
||||
message: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
profileImage: string;
|
||||
onProfileClick: (userId: string) => void;
|
||||
}
|
||||
|
||||
export { type IMessageProps };
|
||||
22
src/components/MessageBar/MessageBar.tsx
Normal file
22
src/components/MessageBar/MessageBar.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default MessageBar;
|
||||
1
src/components/MessageBar/index.ts
Normal file
1
src/components/MessageBar/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./MessageBar";
|
||||
Loading…
Add table
Add a link
Reference in a new issue