diff --git a/.prettierignore b/.prettierignore index bac5ad4..49688bd 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,7 @@ # Some prettier-specific files so it doesn't die. **/*.png **/*.ico +**/*.woff LICENSE .gitignore diff --git a/src/content/css/fonts/whitney_400.woff b/src/content/css/fonts/whitney_400.woff new file mode 100644 index 0000000..2b33081 Binary files /dev/null and b/src/content/css/fonts/whitney_400.woff differ diff --git a/src/content/css/setup.css b/src/content/css/setup.css index abc270f..fd49cf4 100644 --- a/src/content/css/setup.css +++ b/src/content/css/setup.css @@ -1,91 +1,148 @@ -/*CSS ONLY FOR INTERNAL USE (setup and loading)*/ @import url("https://armcord.smartfridge.space/logofont.css"); +/* Meta {{{ */ :root { - background-color: #2c2f33 !important; - --header-secondary: #b9bbbe !important; - --header-primary: #fff !important; - --background-tertiary: #202225 !important; + --background-primary: #282b30; + --background-secondary: rgba(255, 255, 255, 0.1); + --brand-experiment: #7289da; + --header-primary: #fff; + --text-muted: #72767d; + --font-primary: "Whitney"; } + +@font-face { + font-family: Whitney; + font-weight: 400; + font-style: normal; + src: url(https://armcord.smartfridge.space/whitney_400.woff) format("woff"); +} + +html, body { - background-color: #2c2f33; - color: white; + overflow: hidden; + + margin: 0; + padding-top: 30px; + width: 100%; + height: 100%; + + background: var(--background-primary); + + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; } -p { - color: white; +* { + font-family: var(--font-primary), sans-serif; + + box-sizing: border-box; + user-select: none; + cursor: default; +} +/* }}} */ + +/* Utility classes {{{ */ +.hidden { + display: none !important; +} +.text-center { text-align: center; - font-weight: 100; - font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif; - text-rendering: optimizeLegibility; -} - -.logo { - font-size: 0px; - text-align: center; - transform: translateY(-105%); -} - -.logo:before { - content: "ARM"; - color: #7289da; - font-weight: normal; - font-family: Helvetica, sans-serif; - font-size: 32px; -} - -.logo:after { - content: "Cord"; - color: #ffffff; - font-weight: normal; - font-family: Discordinated; - font-size: 32px; -} - -span { - text-align: center; -} - -.logo { - display: block; - margin-left: auto; - margin-right: auto; - max-height: 204px; - max-width: 204px; - transform: translateY(5%); -} - -.container { - position: fixed; - top: 50%; - left: 50%; - color: #fff; - transform: translate(-50%, -50%); -} -button#express { - margin-right: 84px; -} -button { - background-color: #7289da; - font-family: Whitney, "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #ffffff; - padding: 4px; - border-radius: 5px; - margin-top: 5px; - - text-align: center; - border-style: none; - outline: none; } .setup-ask { font-size: 20px; } + +.center { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +/* }}} */ + +#setup { + display: flex; + flex-direction: column; + align-items: center; + + color: white; +} + +/* Warning {{{ */ +#warning { + font-size: 1.5em; + font-weight: bold; + text-align: center; + margin-top: 10px; + margin-bottom: 10px; + + max-width: 328px; + background-color: rgba(255, 0, 0, 0.1); + + border: red solid 2px; + border-radius: 0.5rem; +} +#warning > p { + color: white; + font-weight: bold; + margin: 1rem; +} +/* }}} */ + +/* Logo {{{ */ +#logo { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} +#logo p:first-child { + color: #7289da; + margin: 0; + font-weight: normal; + font-family: Helvetica, sans-serif; + font-size: 32px; +} +#logo p:last-child { + color: white; + margin: 0; + font-weight: normal; + font-family: Discordinated; + font-size: 32px; +} +/* }}} */ + +/* Buttons {{{ */ +#buttons { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + gap: 1rem; + + user-select: all !important; + + margin-top: 10px; + margin-bottom: 10px; +} +button { + background: var(--brand-experiment); + color: var(--header-primary); + + border: none; + border-radius: 4px; + + padding: 8px 20px; +} button:hover { - background-color: #687dc6; - border-style: none; - outline: none; + filter: brightness(85%); cursor: pointer; } +/* }}} */ + +/* Dropdowns {{{ */ select { -webkit-appearance: button; -moz-appearance: button; @@ -106,6 +163,4 @@ select { text-overflow: ellipsis; white-space: nowrap; } -.center { - text-align: center; -} +/* }}} */ diff --git a/src/content/setup.html b/src/content/setup.html index 22f3f98..8e0a208 100644 --- a/src/content/setup.html +++ b/src/content/setup.html @@ -1,134 +1,150 @@ - - + + ArmCord Setup -
-

+
-

Select what kind of setup you want to perform:

- - + + + + + +
+ diff --git a/src/window.ts b/src/window.ts index 8aba1b9..4e97d54 100644 --- a/src/window.ts +++ b/src/window.ts @@ -68,8 +68,8 @@ async function doAfterDefiningTheWindow() { } export function createCustomWindow() { mainWindow = new BrowserWindow({ - width: 300, - height: 350, + width: 390, + height: 470, title: "ArmCord", darkTheme: true, icon: path.join(__dirname, "/assets/icon_transparent.png"),