Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SwitchRoom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fz2907
SwitchRoom
Commits
f3fa48f2
Commit
f3fa48f2
authored
2 years ago
by
Bart Chou
Browse files
Options
Downloads
Patches
Plain Diff
clicking card redirecting to corresponding pages
parent
ea22a9e9
No related branches found
No related tags found
3 merge requests
!27
Sprint 1 done
,
!24
Backend login
,
!22
Story 31 ju yu
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FrontendFolder/switch-room/src/components/LoginMainPage.vue
+20
-5
20 additions, 5 deletions
FrontendFolder/switch-room/src/components/LoginMainPage.vue
FrontendFolder/switch-room/src/router/index.ts
+6
-0
6 additions, 0 deletions
FrontendFolder/switch-room/src/router/index.ts
with
26 additions
and
5 deletions
FrontendFolder/switch-room/src/components/LoginMainPage.vue
+
20
−
5
View file @
f3fa48f2
...
...
@@ -8,7 +8,8 @@
style=
"display: flex; justify-content: center;"
>
<el-card
onclick=
""
class=
"card"
v-on:click=
"redirect('/offer-page')"
>
<img
src=
"../assets/mainPage/offer.png"
...
...
@@ -25,6 +26,7 @@
style=
"display: flex; justify-content: center;"
>
<el-card
class=
"card"
onclick=
""
>
<img
...
...
@@ -42,7 +44,10 @@
<el-col
style=
"display: flex; justify-content: center;"
>
<el-card>
<el-card
class=
"card"
onclick=
""
>
<img
src=
"../assets/mainPage/flight.jpeg"
class=
"image"
...
...
@@ -58,9 +63,16 @@
</el-container>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
'
vue
'
const
currentDate
=
ref
(
new
Date
())
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
"
vue
"
;
export
default
defineComponent
({
name
:
"
LoginMainPage
"
,
methods
:
{
redirect
(
url
:
string
)
{
this
.
$router
.
push
({
path
:
url
});
}
},
});
</
script
>
<
style
>
...
...
@@ -68,6 +80,9 @@
width
:
25vw
;
display
:
block
;
}
.card
{
cursor
:
pointer
}
.container
{
width
:
100%
;
height
:
100%
;
...
...
This diff is collapsed.
Click to expand it.
FrontendFolder/switch-room/src/router/index.ts
+
6
−
0
View file @
f3fa48f2
...
...
@@ -25,6 +25,12 @@ const routes: Array<RouteRecordRaw> = [
component
:
()
=>
import
(
/* webpackChunkName: "about" */
"
../views/OfferView.vue
"
),
},
{
path
:
"
/login-main-page
"
,
name
:
"
LoginMainPage
"
,
component
:
()
=>
import
(
"
../views/LoginMainPageView.vue
"
),
}
];
const
router
=
createRouter
({
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment