diff --git a/src/themes.css b/src/themes.css
index a5162b71..a731d1ce 100644
--- a/src/themes.css
+++ b/src/themes.css
@@ -33,6 +33,7 @@
--button-large-hover: url('/public/assets/buttons/button-large-hover.png');
--button-large-nub: url('/public/assets/buttons/button-large-nub.png');
--button-large-hover-nub: url('/public/assets/buttons/button-large-nub-hover.png');
+ --box-shadow: inset 0px 1px 1px rgba(0,0,0,0.3),0px 1px 0px rgba(255,255,255,0.6);
}
:root .dark {
@@ -70,4 +71,5 @@
--button-large-hover: url('/public/assets/buttons/button-large-hover-dark.png');
--button-large-nub: url('/public/assets/buttons/button-large-nub-dark.png');
--button-large-hover-nub: url('/public/assets/buttons/button-large-nub-hover-dark.png');
+ --box-shadow: none;
}
\ No newline at end of file
diff --git a/src/views/settings/settings.module.css b/src/views/settings/settings.module.css
index e0324a33..13c91c26 100644
--- a/src/views/settings/settings.module.css
+++ b/src/views/settings/settings.module.css
@@ -5,17 +5,24 @@
width: 100%;
}
+.category {
+ display: flex;
+ align-items: flex-start;
+}
+
.categoryTitle {
- width: 169px;
+ flex: 0 0 169px; /* Fixed width, no grow, no shrink */
+ height: 100%;
padding: 10px;
font-weight: bold;
- vertical-align: top;
+ /* vertical-align: top; */
text-align: right;
- display: inline-block;
+ /* display: inline-block; */
}
.categorySettings {
- display: inline-block;
+ flex-grow: 1;
+ /* display: inline-block; */
padding: 10px 0;
}
@@ -23,17 +30,53 @@
margin: 0 .5em 0 .5em;
}
-@media (max-width: 768px) {
- .categoryTitle {
- width: 70px;
- }
-}
.settingTitle {
font-style: italic;
text-transform: capitalize;
}
+.accountData textarea {
+ box-shadow: var(--box-shadow);
+}
+
+.accountButtons {
+ display: block;
+ margin-top: 2px;
+}
+
+
+.accountAddress {
+ padding-bottom: 10px;
+}
+
+.usernameInput input {
+ width: 200px;
+ padding: 2px;
+ box-shadow: var(--box-shadow);
+}
+
+.saved {
+ padding-left: 5px;
+ font-style: italic;
+ text-transform: capitalize;
+ color: var(--text-secondary);
+}
+
+button {
+ text-transform: capitalize;
+ margin-left: 5px;
+}
+
+.accountButtons button {
+ margin-top: 5px;
+ margin-left: 0px !important;
+}
+
+.cryptoAddressSetting {
+ padding-top: 15px;
+}
+
@media (min-width: 768px) {
.accountData textarea {
width: 600px;
@@ -46,6 +89,10 @@
}
@media (max-width: 768px) {
+ .categoryTitle {
+ flex: 0 0 65px;
+ }
+
.accountData textarea {
width: 60vw;
height: 200px;
@@ -54,13 +101,16 @@
min-width: 70vw;
max-height: 60vh;
}
+
+ input {
+ width: 35vw !important;
+ }
}
-.accountButtons {
- display: block;
- margin-top: 2px;
-}
-
-.accountButtons button {
- margin-top: 5px;
+.infoButton {
+ padding: 0px 4px 0px 4px;
+ font-size: 11px;
+ position: relative;
+ bottom: 2px;
+ margin-bottom: -2px;
}
\ No newline at end of file
diff --git a/src/views/settings/settings.tsx b/src/views/settings/settings.tsx
index 8836ad99..a003a2c4 100644
--- a/src/views/settings/settings.tsx
+++ b/src/views/settings/settings.tsx
@@ -8,20 +8,6 @@ import styles from './settings.module.css';
// prettier-ignore
const availableLanguages = ['ar', 'bn', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fil', 'fr', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'mr', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sq', 'sv', 'te', 'th', 'tr', 'uk', 'ur', 'vi', 'zh'];
-const ThemeSettings = () => {
- const [theme, setTheme] = useTheme();
- const { t } = useTranslation();
-
- return (
-
-
-
- );
-};
-
const LanguageSettings = () => {
const { i18n } = useTranslation();
const { changeLanguage, language } = i18n;
@@ -43,6 +29,49 @@ const LanguageSettings = () => {
);
};
+const ThemeSettings = () => {
+ const [theme, setTheme] = useTheme();
+ const { t } = useTranslation();
+
+ return (
+
+
+
+ );
+};
+
+const ProfileSettings = () => {
+ const { t } = useTranslation();
+
+ const cryptoAddressInfo = () => {
+ alert('A crypto address is more readable than a long string of characters. It can be used to send you crypto directly.\n\nChange your account address to an ENS name you own: in your ENS name page on ens.domains, click on "Records", "Edit Records", "Add record", add "plebbit-author-address" as record name, add your full address as value (you can copy it from your account data) and save.');
+ };
+
+ return (
+
+ username
+
- account address
-