)}
diff --git a/client2/src/components/common/formating/danger.tsx b/client2/src/components/common/formating/danger.tsx
index 60e9cc7e..a04cce3c 100644
--- a/client2/src/components/common/formating/danger.tsx
+++ b/client2/src/components/common/formating/danger.tsx
@@ -3,7 +3,7 @@ import theme from 'Lib/theme';
const danger = (e: string) => {
return (
-
+
{e}
);
diff --git a/client2/src/lib/ant/Step.pcss b/client2/src/lib/ant/Step.pcss
deleted file mode 100644
index 9f6e2044..00000000
--- a/client2/src/lib/ant/Step.pcss
+++ /dev/null
@@ -1,65 +0,0 @@
-.ant-steps {
- display: flex;
- margin-left: -67px;
- .ant-steps-item-process {
- .ant-steps-item-icon {
- top: -4px;
- box-sizing: content-box;
- width: 16px;
- height: 16px;
- .ant-steps-icon {
- background: var(--green400);
- .ant-steps-icon-dot {
- background: var(--green400);
- border: 0;
- }
- }
- }
- }
- .ant-steps-item-content {
- width: 99px;
- }
- .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail,
- .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail,
- .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail {
- top: 2px;
- width: 100%;
- margin: 0px 0px 0px 70px;
- padding: 0;
- &::after {
- width: calc(100% - 8px);
- height: 2px;
- margin-left: 5px;
- }
- }
- .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after,
- .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-tail::after {
- background-color: var(--gray400);
- }
- .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-tail::after {
- background-color: var(--green400);
- }
-
- .ant-steps-item-finish {
- .ant-steps-item-icon {
- .ant-steps-icon {
- background: var(--green400);
- .ant-steps-icon-dot {
- background: var(--green400);
- border: 0;
- }
- }
- }
- }
- .ant-steps-item-icon {
- width: 8px;
- height: 8px;
- .ant-steps-icon {
- background: transparent;
- .ant-steps-icon-dot {
- background: transparent;
- border: 2px solid var(--gray400);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/client2/src/lib/ant/ant-overrides.less b/client2/src/lib/ant/ant-overrides.less
index a07601d9..1f683335 100644
--- a/client2/src/lib/ant/ant-overrides.less
+++ b/client2/src/lib/ant/ant-overrides.less
@@ -1,8 +1,8 @@
@primary-color: #67b279;
-@success-color: #53d4b1;
+@success-color: #4d995f;
@text-color: #000;
-@link-hover-color: #1332BB;
-@link-active-color: #246FFF;
+@link-hover-color: #4d995f;
+@link-active-color: #4d995f;
@font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
-@font-size-base: 14px;
\ No newline at end of file
+@font-size-base: 14px;
diff --git a/client2/src/lib/ant/index.ts b/client2/src/lib/ant/index.ts
index 9c8a364d..7eba91c1 100644
--- a/client2/src/lib/ant/index.ts
+++ b/client2/src/lib/ant/index.ts
@@ -1,4 +1,3 @@
-import './Step.pcss';
import './Radio.pcss';
const insertStyles = true;
diff --git a/client2/src/lib/theme/Icons/index.tsx b/client2/src/lib/theme/Icons/index.tsx
index 23f0a95d..a94c2c5c 100644
--- a/client2/src/lib/theme/Icons/index.tsx
+++ b/client2/src/lib/theme/Icons/index.tsx
@@ -2,43 +2,22 @@ import React, { FC } from 'react';
import './Icon.pcss';
export type IconType =
- 'mainLogo' |
+ 'logo' |
'visibility_disable' |
'visibility_enable';
const Icons: FC = () => (
);
diff --git a/client2/src/lib/theme/Install.module.pcss b/client2/src/lib/theme/Install.module.pcss
new file mode 100644
index 00000000..5e000bbb
--- /dev/null
+++ b/client2/src/lib/theme/Install.module.pcss
@@ -0,0 +1,153 @@
+.layout {
+ min-height: 100vh;
+ background-color: var(--gray100);
+
+ @media (--m-viewport) {
+ background-image: url('../../assets/img/install.png');
+ background-position: center 20px;
+ background-repeat: no-repeat;
+ background-size: 100%;
+ }
+}
+
+.container {
+ width: 100%;
+ max-width: 432px;
+ margin: 0 auto;
+ padding: 24px 16px 40px;
+
+ @media (--m-viewport) {
+ padding: 40px 16px;
+ }
+}
+
+.title,
+.subtitle,
+.text {
+ color: var(--gray900);
+}
+
+.title {
+ margin-bottom: 20px;
+ font-size: 28px;
+ line-height: 1.1;
+}
+
+.subtitle {
+ margin-bottom: 12px;
+ font-size: 20px;
+ line-height: 1.4;
+}
+
+.text {
+ font-size: 16px;
+ line-height: 1.5;
+
+ &_block {
+ margin-bottom: 35px;
+ }
+
+ &_base {
+ margin-bottom: 12px;
+ }
+}
+
+.danger {
+ text-transform: capitalize;
+ color: var(--red400);
+ font-weight: bold;
+}
+
+.actions {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-direction: column-reverse;
+ margin-top: 48px;
+
+ @media (--m-viewport) {
+ flex-direction: row;
+ }
+}
+
+.button {
+ width: 100%;
+ min-width: 188px;
+
+ &:last-child {
+ margin-bottom: 16px;
+ }
+
+ &:only-child {
+ margin: 0;
+ }
+
+ @media (--m-viewport) {
+ width: auto;
+
+ &:first-child {
+ margin-right: 12px;
+ }
+
+ &:last-child {
+ margin-bottom: 0;
+ margin-left: 12px;
+ }
+
+ &:only-child {
+ margin: 0;
+ }
+ }
+}
+
+.logo {
+ width: 130px;
+ height: 40px;
+ margin-bottom: 35px;
+
+ @media (--m-viewport) {
+ width: 185px;
+ height: 57px;
+ }
+}
+
+.ip {
+ font-family: var(--font-family-monospace);
+ font-size: 16px;
+ font-weight: 600;
+ word-break: break-all;
+ color: var(--green400);
+}
+
+.options {
+ margin-bottom: 48px;
+}
+
+.name {
+ padding-bottom: 5px;
+ border-bottom: 1px solid var(--gray300);
+ margin-bottom: 16px;
+ margin-top: 20px;
+}
+
+.option {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 8px;
+}
+
+.address {
+ margin-right: 16px;
+ word-break: break-all;
+ color: var(--gray400);
+}
+
+.tabs {
+ width: 100%;
+
+ @media (--m-viewport) {
+ width: 505px;
+ margin-left: -131px;
+ }
+}
diff --git a/client2/src/lib/theme/Link.module.pcss b/client2/src/lib/theme/Link.module.pcss
new file mode 100644
index 00000000..d3731b42
--- /dev/null
+++ b/client2/src/lib/theme/Link.module.pcss
@@ -0,0 +1,14 @@
+.link {
+ color: var(--green400);
+ text-decoration: underline;
+
+ &:hover,
+ &:focus {
+ color: var(--green700);
+ text-decoration: none;
+ }
+
+ &:active {
+ color: var(--green400);
+ }
+}
diff --git a/client2/src/lib/theme/Text.module.pcss b/client2/src/lib/theme/Text.module.pcss
new file mode 100644
index 00000000..5ff8bf11
--- /dev/null
+++ b/client2/src/lib/theme/Text.module.pcss
@@ -0,0 +1,29 @@
+.f14 {
+ font-size: 14px;
+}
+
+.f16 {
+ font-size: 16px;
+}
+
+.f20 {
+ font-size: 20px;
+}
+
+.bold {
+ font-weight: 700;
+}
+
+.medium {
+ font-weight: 600;
+}
+
+.regular {
+ font-weight: 400;
+}
+
+.danger {
+ text-transform: uppercase;
+ color: var(--red400);
+ font-weight: bold;
+}
diff --git a/client2/src/lib/theme/Typography.module.pcss b/client2/src/lib/theme/Typography.module.pcss
deleted file mode 100644
index b51e0e56..00000000
--- a/client2/src/lib/theme/Typography.module.pcss
+++ /dev/null
@@ -1,36 +0,0 @@
-.title, .subTitle, .text {
- color: var(--gray900);
- letter-spacing: 0px;
-}
-
-.title {
- font-size: 30px;
- line-height: 36px;
- margin-bottom: 16px;
-}
-.subTitle {
- font-size: 20px;
- line-height: 24px;
- margin-bottom: 16px;
-}
-.text {
- font-size: 16px;
- line-height: 22px;
-
- &_block {
- margin-bottom: 48px;
- }
-
- &_base {
- margin-bottom: 32px;
- }
-}
-.subtext {
- color: var(--gray400);
-}
-
-.danger {
- text-transform: capitalize;
- color: var(--red400);
- font-weight: bold;
-}
\ No newline at end of file
diff --git a/client2/src/lib/theme/index.ts b/client2/src/lib/theme/index.ts
index 43df8b68..d60feaca 100644
--- a/client2/src/lib/theme/index.ts
+++ b/client2/src/lib/theme/index.ts
@@ -1,9 +1,13 @@
-import typography from './Typography.module.pcss';
import form from './Form.module.pcss';
+import text from './Text.module.pcss';
+import install from './Install.module.pcss';
+import link from './Link.module.pcss';
const theme = {
- typography,
form,
+ text,
+ install,
+ link,
};
export default theme;
diff --git a/client2/src/localization/locales/en.json b/client2/src/localization/locales/en.json
index 99ae88d4..f6801463 100644
--- a/client2/src/localization/locales/en.json
+++ b/client2/src/localization/locales/en.json
@@ -6,13 +6,13 @@
"password": "Password",
"next": "Next",
"port": "Port",
-
+ "router": "Router",
"install_admin_interface_port_desc": "Now it is working at 3000 port, just in case, but we recomended to use 80 port. Using this ports allow to access to Web interface like to common site",
"install_admin_interface_port": "Which port will be used",
"install_admin_interface_title_decs": "Admin web interface is used to control AdGuard Home. You can open it in your browser and it does not require using a client-side program",
"install_admin_interface_title": "Admin interface settings",
- "install_admin_interface_where_interface_desc": "Set what kind of networks will be able to access to Admin interface. For example: if you choose a local interface only, then Admin inteface will be accessed by this local device only",
+ "install_admin_interface_where_interface_desc": "Set what kind of networks will be able to access to Admin interface. For example: if you choose a local interface only, then Admin inteface will be accessed by this local device only",
"install_admin_interface_where_interface": "Where can I open Admin interface",
"install_all_networks_description": "All available web interfaces",
@@ -37,7 +37,7 @@
"install_configure_title": "Configure your devices",
"install_configure_danger_notice": "IMPORTANT! To start using AdGuard Home, you need to configure your devices manually",
- "install_configure_how_to_title": "How to configure Router",
+ "install_configure_how_to_title": "How to configure %value%",
"install_configure_router": "This setup will automatically cover all the devices connected to your home router and you will not need to configure each of them manually.
Open the preferences for your router. Usually, you can access it from your browser via a URL (like http://192.168.0.1/ or http://192.168.1.1/). You may be asked to enter the password. If you don't remember it, you can often reset the password by pressing a button on the router itself. Some routers require a specific application, which in that case should be already installed on your computer/phone.
Find the DHCP/DNS settings. Look for the DNS letters next to a field which allows two or three sets of numbers, each broken into four groups of one to three digits.
Enter your AdGuard Home server addresses there.
",
"install_configure_windows": "Open Control Panel through Start menu or Windows search.
Go to Network and Internet category and then to Network and Sharing Center.
On the left side of the screen find Change adapter settings and click on it.
Select your active connection, right-click on it and choose Properties.
Find Internet Protocol Version 4 (TCP/IP) in the list, select it and then click on Properties again.
Choose Use the following DNS server addresses and enter your AdGuard Home server addresses.
",
"install_configure_macos": "Click on Apple icon and go to System Preferences.
Click on Network.
Select the first connection in your list and click Advanced.
Select the DNS tab and enter your AdGuard Home server addresses.
",
@@ -45,4 +45,4 @@
"install_configure_ios": "From the home screen, tap Settings.
Choose Wi-Fi in the left menu (it is impossible to configure DNS for mobile networks).
Tap on the name of the currently active network.
In the DNS field enter your AdGuard Home server addresses.
",
"install_configure_adresses": "AdGuard Home addresses:",
"install_configure_dhcp": "You can't set a custom DNS server on some types of routers. In this case it may help if you set up AdGuard Home as a DHCP server. Otherwise, you should search for the manual on how to customize DNS servers for your particular router model."
-}
\ No newline at end of file
+}
diff --git a/client2/src/main.pcss b/client2/src/main.pcss
index 5efd7a6b..852b3e20 100644
--- a/client2/src/main.pcss
+++ b/client2/src/main.pcss
@@ -1,33 +1,24 @@
:root {
- /*GRAYSCALE*/
--white: #ffffff;
--gray100: #f3f3f3;
--gray300: #d8d8d8;
--gray400: #a4a4a4;
--gray700: #888888;
--gray900: #4d4d4d;
- --black: #131313;
- /*FEEDBACK*/
- --red400: #c23814;
- --orange400: #eb9300;
- /*BRAND*/
+ --black: #000000;
--green400: #67b279;
--green700: #4d995f;
- /*ADDITIONAL*/
- --purple400: #b267a0;
- --purple700: #994d87;
- --slateblue400: #677bb2;
- --slateblue700: #4d6199;
- /*VPN*/
- --vpngreen400: #74a352;
- --vpngreen700: #568040;
- --vpnslateblue700: #575770;
- --vpnslateblue800: #464558;
- --vpnseagreen: #5eb0b7;
-
+ --red400: #c23814;
+ --transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
+ --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
+ --font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
}
body {
font-size: 14px;
color: var(--gray900);
-}
\ No newline at end of file
+}
+
+@custom-media --m-viewport (min-width: 768px);
+@custom-media --l-viewport (min-width: 992px);
+@custom-media --xl-viewport (min-width: 1200px);