code styling
This commit is contained in:
parent
ef10662102
commit
e3806926d2
@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<img class="company-logo" alt="freeleaps logo" src="@/assets/freeleaps.png" @click="gotoFrontdoor()" />
|
<img
|
||||||
|
class="company-logo"
|
||||||
|
alt="freeleaps logo"
|
||||||
|
src="@/assets/freeleaps.png"
|
||||||
|
@click="gotoFrontdoor()"
|
||||||
|
/>
|
||||||
<!-- <div class="content-area">
|
<!-- <div class="content-area">
|
||||||
<span class="company-slogan"
|
<span class="company-slogan"
|
||||||
>Freeleaps: A trustworthy platform to find a software development partner</span
|
>Freeleaps: A trustworthy platform to find a software development partner</span
|
||||||
@ -24,18 +29,18 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
computed: {
|
computed: {
|
||||||
getContactText() {
|
getContactText() {
|
||||||
if (this.getRegion === "CN") {
|
if (this.getRegion === 'CN') {
|
||||||
return "联系我们"
|
return '联系我们'
|
||||||
}
|
}
|
||||||
return "Contact"
|
return 'Contact'
|
||||||
},
|
},
|
||||||
getRegion() {
|
getRegion() {
|
||||||
// To be consistent with Region definition
|
// To be consistent with Region definition
|
||||||
// For now, region is only China and non-China
|
// For now, region is only China and non-China
|
||||||
if (window.location.href.includes('localhost') || window.location.href.includes('com.cn')) {
|
if (window.location.href.includes('localhost') || window.location.href.includes('com.cn')) {
|
||||||
return "CN"
|
return 'CN'
|
||||||
}
|
}
|
||||||
return "Other"
|
return 'Other'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -1,28 +1,54 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="information-bar" @click="gotoMessages" :class="activePath == 'message' ? 'active' : ''">
|
<div
|
||||||
|
class="information-bar"
|
||||||
|
@click="gotoMessages"
|
||||||
|
:class="activePath == 'message' ? 'active' : ''"
|
||||||
|
>
|
||||||
<img alt="freeleaps logo" src="@/assets/message.png" />
|
<img alt="freeleaps logo" src="@/assets/message.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="navigation-container" role="navigation">
|
<div class="navigation-container" role="navigation">
|
||||||
<button class="navigation-item" @click="gotoWorkspace" :class="activePath == 'Workspace' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoWorkspace"
|
||||||
|
:class="activePath == 'Workspace' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="workspace" class-name="icon" />
|
<svg-icon icon="workspace" class-name="icon" />
|
||||||
Workspace
|
Workspace
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoRequests" :class="activePath == 'Requests' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoRequests"
|
||||||
|
:class="activePath == 'Requests' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="requests" class-name="icon" />
|
<svg-icon icon="requests" class-name="icon" />
|
||||||
Requests
|
Requests
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoProviders" :class="activePath == 'Providers' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoProviders"
|
||||||
|
:class="activePath == 'Providers' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="providers" class-name="icon" />
|
<svg-icon icon="providers" class-name="icon" />
|
||||||
Providers
|
Providers
|
||||||
</button>
|
</button>
|
||||||
<button class="navigation-item" @click="gotoIssueRequest" :class="activePath == 'Post' ? 'active' : ''">
|
<button
|
||||||
|
class="navigation-item"
|
||||||
|
@click="gotoIssueRequest"
|
||||||
|
:class="activePath == 'Post' ? 'active' : ''"
|
||||||
|
>
|
||||||
<svg-icon icon="post" class-name="icon" />
|
<svg-icon icon="post" class-name="icon" />
|
||||||
Post
|
Post
|
||||||
</button>
|
</button>
|
||||||
<div class="form-check form-switch header-switch-container">
|
<div class="form-check form-switch header-switch-container">
|
||||||
<input class="form-check-input" type="checkbox" role="switch" id="personal-earning-now-checkbox" disabled />
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
role="switch"
|
||||||
|
id="personal-earning-now-checkbox"
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
<label class="form-check-label" for="personal-earning-now-checkbox">
|
<label class="form-check-label" for="personal-earning-now-checkbox">
|
||||||
<span>Providing service</span>
|
<span>Providing service</span>
|
||||||
</label>
|
</label>
|
||||||
@ -32,8 +58,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="profile-container">
|
<div class="profile-container">
|
||||||
<img alt="freeleaps logo" data-bs-toggle="dropdown" aria-expanded="false" id="accountButton"
|
<img
|
||||||
src="@/assets/profile.png" />
|
alt="freeleaps logo"
|
||||||
|
data-bs-toggle="dropdown"
|
||||||
|
aria-expanded="false"
|
||||||
|
id="accountButton"
|
||||||
|
src="@/assets/profile.png"
|
||||||
|
/>
|
||||||
<ul class="dropdown-menu" aria-labelledby="accountButton">
|
<ul class="dropdown-menu" aria-labelledby="accountButton">
|
||||||
<li>
|
<li>
|
||||||
<button class="account-menu-button" @click="gotoProfile">Profile</button>
|
<button class="account-menu-button" @click="gotoProfile">Profile</button>
|
||||||
|
|||||||
@ -12,7 +12,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group-container">
|
<div class="input-group-container">
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input class="input-email" id="inputEmail" type="text" placeholder="name@example.com" v-model="email" />
|
<input
|
||||||
|
class="input-email"
|
||||||
|
id="inputEmail"
|
||||||
|
type="text"
|
||||||
|
placeholder="name@example.com"
|
||||||
|
v-model="email"
|
||||||
|
/>
|
||||||
<label for="inputEmail">Email address</label>
|
<label for="inputEmail">Email address</label>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-start" ref="submitButton" @click="trySigninWithEmail()">
|
<button class="btn-start" ref="submitButton" @click="trySigninWithEmail()">
|
||||||
|
|||||||
@ -5,8 +5,13 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group-container">
|
<div class="input-group-container">
|
||||||
<div class="form-floating">
|
<div class="form-floating">
|
||||||
<input class="input-email" id="inputCode" type="text" :placeholder="'Code sent to your email'"
|
<input
|
||||||
v-model="code" />
|
class="input-email"
|
||||||
|
id="inputCode"
|
||||||
|
type="text"
|
||||||
|
:placeholder="'Code sent to your email'"
|
||||||
|
v-model="code"
|
||||||
|
/>
|
||||||
<label for="inputCode">Authenticaion Code Sent To Your Email</label>
|
<label for="inputCode">Authenticaion Code Sent To Your Email</label>
|
||||||
</div>
|
</div>
|
||||||
<button type="submit" class="btn-start">SIGN IN</button>
|
<button type="submit" class="btn-start">SIGN IN</button>
|
||||||
@ -40,7 +45,7 @@ export default {
|
|||||||
|
|
||||||
components: {},
|
components: {},
|
||||||
|
|
||||||
created() { },
|
created() {},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.mnx_IsKeepUserSignedIn() && this.mnx_isUserAuthenticated()) {
|
if (this.mnx_IsKeepUserSignedIn() && this.mnx_isUserAuthenticated()) {
|
||||||
this.mnx_navAfterSignedin()
|
this.mnx_navAfterSignedin()
|
||||||
@ -100,4 +105,5 @@ export default {
|
|||||||
// .btn-start {
|
// .btn-start {
|
||||||
// @extend .proceed-button;
|
// @extend .proceed-button;
|
||||||
// @extend .ms-1;
|
// @extend .ms-1;
|
||||||
// }</style>
|
// }
|
||||||
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user