+
About {link.identifier}
- Let's locate a homeserver to show you more information.
+ Select a homeserver to learn more about{' '}
+ {link.identifier}.
+ The homeserver will provide metadata about the link such
+ as an avatar or description. Homeservers will be able to
+ relate your ip to resources you've opened invites for in
+ matrix.to
= () => {
Remember my choice.
-
setUsePrefered(!usePrefered)}
- >
- Use my prefered homeserver only
-
+
{hsInput}
);
diff --git a/src/components/Input.scss b/src/components/Input.scss
index e6ca735..f052af1 100644
--- a/src/components/Input.scss
+++ b/src/components/Input.scss
@@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-@import "../color-scheme";
-@import "../error";
+@import '../color-scheme';
+@import '../error';
.input {
width: 100%;
@@ -23,7 +23,8 @@ limitations under the License.
background: $background;
- border: 1px solid $font;
+ border: 1px solid $foreground;
+ font: lighten($grey, 60%);
border-radius: 24px;
font-size: 14px;
@@ -32,9 +33,18 @@ limitations under the License.
&.error {
@include error;
}
+
+ &:focus {
+ border: 1px solid $font;
+ font: $font;
+ }
}
.inputError {
@include error;
text-align: center;
}
+
+.inputMuted {
+ border-color: lighten($grey, 60%);
+}
diff --git a/src/components/Input.tsx b/src/components/Input.tsx
index 7a50385..b094061 100644
--- a/src/components/Input.tsx
+++ b/src/components/Input.tsx
@@ -20,12 +20,13 @@ import { useField } from 'formik';
import './Input.scss';
-interface IProps extends React.InputHTMLAttributes
{
+interface IProps extends React.InputHTMLAttributes {
name: string;
type: string;
+ muted?: boolean;
}
-const Input: React.FC = ({ className, ...props }) => {
+const Input: React.FC = ({ className, muted, ...props }) => {
const [field, meta] = useField(props);
const error =
@@ -35,6 +36,7 @@ const Input: React.FC = ({ className, ...props }) => {
const classNames = classnames('input', className, {
error: meta.error,
+ inputMuted: !!muted,
});
return (
diff --git a/src/components/InviteTile.scss b/src/components/InviteTile.scss
index 0421927..6d23632 100644
--- a/src/components/InviteTile.scss
+++ b/src/components/InviteTile.scss
@@ -25,4 +25,9 @@ limitations under the License.
justify-content: space-between;
row-gap: 20px;
}
+
+ hr {
+ width: 100%;
+ margin: 0;
+ }
}
diff --git a/src/components/InviteTile.tsx b/src/components/InviteTile.tsx
index a35b2c7..fad18a4 100644
--- a/src/components/InviteTile.tsx
+++ b/src/components/InviteTile.tsx
@@ -25,7 +25,6 @@ import ClientSelection from './ClientSelection';
import { Client, ClientKind } from '../clients/types';
import { SafeLink } from '../parser/types';
import TextButton from './TextButton';
-import FakeProgress from './FakeProgress';
interface IProps {
children?: React.ReactNode;
@@ -39,10 +38,8 @@ const InviteTile: React.FC = ({ children, client, link }: IProps) => {
let advanced: React.ReactNode;
if (client === null) {
- invite = showAdvanced ? (
-
- ) : (
-