diff --git a/app/app.ejs b/app/app.ejs new file mode 100644 index 0000000..17ca200 --- /dev/null +++ b/app/app.ejs @@ -0,0 +1,24 @@ + + + + Westeroscraft Launcher + + + + + + + <% include frame.ejs %> +
+ <% include login.ejs %> +
+ + \ No newline at end of file diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index 405bde4..7006afc 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -9,6 +9,11 @@ src: url('../fonts/Avenir.ttc'); } +@font-face { + font-family: 'Avenir Medium'; + src: url('../fonts/Avenir-Medium.otf'); +} + /******************************************************************************* * * * Element Styles * @@ -92,6 +97,227 @@ p { background-color: #D6FFA6; } +/******************************************************************************* + * * + * Login View (login.ejs) * + * * + ******************************************************************************/ + +#loginContainer { + display: flex; + justify-content: center; + align-items: center; + height: 100%; + width: 100%; +} + +#loginContent { + display: flex; + justify-content: center; + align-items: center; +} + +#loginForm { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +#loginImageSeal { + border-radius: 50%; + border: 2px solid #cad7e1; + background: rgba(1, 2, 1, 0.5); + height: 125px; + width: 125px; + box-shadow: 0px 0px 10px 0px rgb(0, 0, 0); + margin-bottom: 20px; +} + +.loginSpan { + font-family: 'Avenir Book'; + font-size: 14px; + color: #fff; + font-weight: bold; +} + +.loginSpanDim { + font-family: 'Avenir Book'; + font-size: 12px; + color: #848484; + font-weight: bold; +} + +#loginForm a { + font-family: 'Avenir Book'; + font-size: 12px; + color: #848484; + font-weight: bold; + text-decoration: none; +} + +.loginSVG { + fill: #fff; +} + +#labelPassword { + margin-bottom: 13px; +} + +.loginField { + font-family: 'Avenir Book'; + background: none; + border-width: 1.5px 0px 0px 0px; + border-style: solid; + width: 250px; + margin-bottom: 20px; + border-color: #fff; + color: rgb(197, 197, 197); + font-weight: bold; + text-align: center; + box-sizing: border-box; + padding: 7.5px; + font-size: 10px; + letter-spacing: 1px; +} + +.loginField:focus { + outline: none; +} + +.loginField::-webkit-input-placeholder { + color: rgb(197, 197, 197); + font-size: 10px; + letter-spacing: 1px; + text-align: center; + font-weight: bold; +} +.loginField:focus::-webkit-input-placeholder { + color: transparent; +} + +#loginSubheader { + font-family: 'Avenir Medium'; + margin-bottom: 25px; + font-size: 12px; + letter-spacing: 1px; +} + +#loginOptions { + display: flex; + justify-content: space-between; + width: 100%; +} + +#loginRememberText { + padding-right: 10px; +} + +#checkmarkContainer input { + opacity: 0; + cursor: pointer; +} + +/* Customize the label (the container) */ +#checkmarkContainer { + display: flex; + justify-content: flex-end; + align-items: center; + position: relative; + cursor: pointer; + font-size: 22px; + -webkit-user-select: none; +} + +/* Hide the browser's default checkbox */ +#checkmarkContainer input { + opacity: 0; + cursor: pointer; + position: absolute; +} + +/* Create a custom checkbox */ +.loginCheckmark { + position: relative; + height: 10px; + width: 10px; + border: 1px solid #848484; + border-radius: 1px; + background: none; +} + +/* On mouse-over, add a grey background color */ +#checkmarkContainer:hover input ~ .loginCheckmark { + border-color: #848484; +} + +/* When the checkbox is checked, add a blue background */ +#checkmarkContainer input:checked ~ .loginCheckmark { + border-color: #848484; +} + +/* Create the checkmark/indicator (hidden when not checked) */ +.loginCheckmark:after { + content: ""; + display: none; +} + +/* Show the checkmark when checked */ +#checkmarkContainer input:checked ~ .loginCheckmark:after { + display: block; +} + +/* Style the checkmark/indicator */ +#checkmarkContainer .loginCheckmark:after { + position: absolute; + left: 3.5px; + top: 0.5px; + width: 2px; + height: 6px; + border: solid #848484; + border-width: 0 2px 2px 0; + transform: rotate(45deg); +} + +#loginDisclaimer { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.loginDisclaimerText { + font-family: 'Avenir Book'; + font-size: 7px; + color: #848484; + font-weight: bold; + text-align: center; +} + +#loginRegisterSpan { + margin-bottom: 5px; +} + +#loginButton { + background: none; + color: #fff; + font-weight: bold; + font-family: 'Avenir Book'; + letter-spacing: 2px; + border: none; + padding: 15px 5px; + margin: 10px 0px; + cursor: pointer; + position: relative; + right: -20px; +} + +#loginButton img { + transform: rotate(90deg); + margin-left: 20px; +} + + /******************************************************************************* * * * Login View (login.ejs) * @@ -293,7 +519,6 @@ p { background: rgba(1, 2, 1, 0.5); height: 70px; width: 70px; - width: auto; box-shadow: 0px 0px 10px 0px rgb(0, 0, 0); overflow: hidden; position: relative; diff --git a/app/assets/fonts/Avenir-Medium.otf b/app/assets/fonts/Avenir-Medium.otf new file mode 100644 index 0000000..3092e6b Binary files /dev/null and b/app/assets/fonts/Avenir-Medium.otf differ diff --git a/app/assets/images/icons/lock.svg b/app/assets/images/icons/lock.svg new file mode 100644 index 0000000..47a5343 --- /dev/null +++ b/app/assets/images/icons/lock.svg @@ -0,0 +1,12 @@ + + + + + + + + Lock + + + + \ No newline at end of file diff --git a/app/assets/images/icons/profile.svg b/app/assets/images/icons/profile.svg new file mode 100644 index 0000000..6526c65 --- /dev/null +++ b/app/assets/images/icons/profile.svg @@ -0,0 +1,10 @@ + + + + + + Profile + + + + \ No newline at end of file diff --git a/app/login.ejs b/app/login.ejs new file mode 100644 index 0000000..8ef2763 --- /dev/null +++ b/app/login.ejs @@ -0,0 +1,38 @@ +
+
+
+ + MEMBER LOGIN + + + + + + + + + + + + +
+ + forgot password? + + +
+ +
+ + Need an Account? + +

Your password is sent directly to mojang and never stored.

+

WesterosCraft is not affiliated with Mojang AB.

+
+
+
+
\ No newline at end of file diff --git a/app/loginOLD.ejs b/app/loginOLD.ejs new file mode 100644 index 0000000..820f496 --- /dev/null +++ b/app/loginOLD.ejs @@ -0,0 +1,30 @@ + +<% include frame.ejs %> + + + +
+
+
+
+ + + +
+
+
\ No newline at end of file diff --git a/index.js b/index.js index 6593d73..e5571db 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,7 @@ function createWindow() { ejse.data('bkid', Math.floor((Math.random() * fs.readdirSync(path.join(__dirname, 'app', 'assets', 'images', 'backgrounds')).length))) win.loadURL(url.format({ - pathname: path.join(__dirname, 'app', 'index.ejs'), + pathname: path.join(__dirname, 'app', 'app.ejs'), protocol: 'file:', slashes: true }))