@@ -142,7 +145,7 @@ export default function ManageMembers({ members = [] }) {
data-uid={uid}
onClick={toggleMenu}
className="dots"
- src="https://static.nicegoodthings.com/project/rustchat/icon.dots.svg"
+ src={moreIcon}
alt="dots icon"
/>
{menuVisible == uid && (
diff --git a/src/common/component/Message/Commands.js b/src/common/component/Message/Commands.js
index 13241b00..e54084d2 100644
--- a/src/common/component/Message/Commands.js
+++ b/src/common/component/Message/Commands.js
@@ -7,7 +7,12 @@ import { addReplyingMessage } from "../../../app/slices/message";
import StyledMenu from "../StyledMenu";
import DeleteMessageConfirm from "./DeleteMessageConfirm";
import EmojiPicker from "./EmojiPicker";
+import replyIcon from "../../../assets/icons/reply.svg?url";
+import reactIcon from "../../../assets/icons/reaction.svg?url";
+import editIcon from "../../../assets/icons/edit.svg?url";
+import moreIcon from "../../../assets/icons/more.svg?url";
const StyledCmds = styled.ul`
+ z-index: 9999;
position: absolute;
right: 10px;
top: 0;
@@ -33,6 +38,12 @@ const StyledCmds = styled.ul`
height: 24px;
}
}
+ > .picker {
+ position: absolute;
+ left: -10px;
+ top: 0;
+ transform: translateX(-100%);
+ }
.menu {
position: absolute;
top: 0;
@@ -70,34 +81,24 @@ export default function Commands({
return (
+
+
+
+
+
{expand && (
Settings
@@ -51,11 +50,7 @@ export default function Menu({ toggle, expand = true }) {
diff --git a/src/routes/home/index.js b/src/routes/home/index.js
index 3420341f..0589093c 100644
--- a/src/routes/home/index.js
+++ b/src/routes/home/index.js
@@ -12,8 +12,8 @@ import usePreload from "./usePreload";
import SettingModal from "../../common/component/Setting";
import ChannelSettingModal from "../../common/component/ChannelSetting";
-import ChatIcon from "../../assets/icons/chat.svg";
-import ContactIcon from "../../assets/icons/contact.svg";
+import ChatIcon from "../../assets/icons/chat.svg?url";
+import ContactIcon from "../../assets/icons/contact.svg?url";
// import NotificationHub from "../../common/component/NotificationHub";
export default function HomePage() {
@@ -29,7 +29,7 @@ export default function HomePage() {
const toggleExpand = () => {
dispatch(toggleMenuExpand());
};
- console.log("index loading", loading, ready);
+ // console.log("index loading", loading, ready);
if (loading || !ready) {
return
- Sign Up to Rustchat
- Please enter your details.
-
+
Sign Up to Rustchat
+ Please enter your details.
+
+
Sign in with MetaMask
);
diff --git a/src/routes/login/SolidLoginButton.js b/src/routes/login/SolidLoginButton.js
index abbe057f..c97e68d1 100644
--- a/src/routes/login/SolidLoginButton.js
+++ b/src/routes/login/SolidLoginButton.js
@@ -1,6 +1,7 @@
/* eslint-disable no-undef */
import { useEffect } from "react";
import { useGetOpenidMutation } from "../../app/services/auth";
+import solidSvg from "../../assets/icons/solid.svg?url";
export default function SolidLoginButton() {
const [getOpenId, { data, isLoading, isSuccess }] = useGetOpenidMutation();
@@ -26,11 +27,7 @@ export default function SolidLoginButton() {
href="#"
className="btn social"
>
-
+
{isLoading ? `Redirecting...` : `Sign in with Solid`}
);
diff --git a/src/routes/login/index.js b/src/routes/login/index.js
index 94983a04..fa15122c 100644
--- a/src/routes/login/index.js
+++ b/src/routes/login/index.js
@@ -1,11 +1,11 @@
/* eslint-disable no-undef */
import { useState, useEffect } from "react";
-import StyledWrapper from "./styled";
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import toast from "react-hot-toast";
-
+import BASE_URL from "../../app/config";
// import web3 from "web3";
+import StyledWrapper from "./styled";
import MetamaskLoginButton from "./MetamaskLoginButton";
import SolidLoginButton from "./SolidLoginButton";
@@ -88,7 +88,7 @@ export default function LoginPage() {
diff --git a/src/routes/login/styled.js b/src/routes/login/styled.js
index 643f3c6a..561167ff 100644
--- a/src/routes/login/styled.js
+++ b/src/routes/login/styled.js
@@ -1,103 +1,105 @@
-import styled from 'styled-components';
+import styled from "styled-components";
const StyledWrapper = styled.div`
- display: flex;
- justify-content: center;
- align-items: center;
- height: 100vh;
- .form {
- padding: 36px 40px 32px 40px;
- /* border: 1px solid #eee; */
- box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
- border-radius: 12px;
- .tips {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding-bottom: 24px;
- .logo {
- width: 56px;
- height: 56px;
- margin-bottom: 28px;
- }
- .title {
- font-weight: 600;
- font-size: 24px;
- line-height: 32px;
- color: #101828;
- margin-bottom: 8px;
- }
- }
- .desc {
- font-weight: normal;
- font-size: 16px;
- line-height: 24px;
- color: #667085;
- }
- form {
- display: flex;
- flex-direction: column;
- gap: 20px;
- input {
- width: 360px;
- background: #ffffff;
- border: 1px solid #d0d5dd;
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
- border-radius: 8px;
- padding: 10px 14px;
- font-weight: normal;
- font-size: 16px;
- line-height: 24px;
- color: #667085;
- }
- }
- .or {
- border: none;
- position: relative;
- height: 1px;
- background-color: #e4e7ec;
- margin: 26px 0;
- &:after {
- padding: 4px;
- background-color: #fff;
- content: 'OR';
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate3d(-50%, -50%, 0);
- font-size: 14px;
- line-height: 20px;
- color: #667085;
- }
- }
- .btn {
- display: inline-block;
- text-align: center;
- width: 100%;
- font-weight: 500;
- font-size: 16px;
- line-height: 24px;
- color: #ffffff;
- padding: 10px;
- background: #1fe1f9;
- border: 1px solid #1fe1f9;
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
- border-radius: 8px;
- &.social {
- margin-bottom: 16px;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 12px;
- color: #344054;
- border-color: #d0d5dd;
- background: none;
- .icon {
- width: 24px;
- height: 24px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ .form {
+ padding: 36px 40px 32px 40px;
+ /* border: 1px solid #eee; */
+ box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1),
+ 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
+ border-radius: 12px;
+ .tips {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding-bottom: 24px;
+ .logo {
+ width: 56px;
+ height: 56px;
+ margin-bottom: 28px;
+ border-radius: 50%;
+ }
+ .title {
+ font-weight: 600;
+ font-size: 24px;
+ line-height: 32px;
+ color: #101828;
+ margin-bottom: 8px;
+ }
+ }
+ .desc {
+ font-weight: normal;
+ font-size: 16px;
+ line-height: 24px;
+ color: #667085;
+ }
+ form {
+ display: flex;
+ flex-direction: column;
+ gap: 20px;
+ input {
+ width: 360px;
+ background: #ffffff;
+ border: 1px solid #d0d5dd;
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
+ border-radius: 8px;
+ padding: 10px 14px;
+ font-weight: normal;
+ font-size: 16px;
+ line-height: 24px;
+ color: #667085;
+ }
+ }
+ .or {
+ border: none;
+ position: relative;
+ height: 1px;
+ background-color: #e4e7ec;
+ margin: 26px 0;
+ &:after {
+ padding: 4px;
+ background-color: #fff;
+ content: "OR";
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate3d(-50%, -50%, 0);
+ font-size: 14px;
+ line-height: 20px;
+ color: #667085;
+ }
+ }
+ .btn {
+ display: inline-block;
+ text-align: center;
+ width: 100%;
+ font-weight: 500;
+ font-size: 16px;
+ line-height: 24px;
+ color: #ffffff;
+ padding: 10px;
+ background: #1fe1f9;
+ border: 1px solid #1fe1f9;
+ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
+ border-radius: 8px;
+ &.social {
+ margin-bottom: 16px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 12px;
+ color: #344054;
+ border-color: #d0d5dd;
+ background: none;
+ .icon {
+ width: 24px;
+ height: 24px;
+ }
+ }
}
- }
}
- }
`;
export default StyledWrapper;