Skip to content

Commit 3f569c7

Browse files
authored
Merge pull request #8 from pmigueld/codex/redesign-mobile-app-using-mockups
feat(mobile): redesign mobile interface
2 parents d0af62d + f3e6540 commit 3f569c7

7 files changed

Lines changed: 1891 additions & 365 deletions

File tree

packages/mobile/src/App.vue

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,29 @@ import { RouterView } from 'vue-router'
33
</script>
44

55
<template>
6-
<div id="app" class="vh-100 h-100 overflow-scroll text-break">
7-
<header>
8-
<nav
9-
class="safe-top navbar p-3 d-flex justify-content-center border-bottom align-items-center"
10-
>
11-
<h5 class="m-0 bold title text-black">ID PASS DataCollect</h5>
12-
</nav>
13-
</header>
14-
<main class="mx-2">
15-
<div class="user-select-none disable-scrollbars">
16-
<RouterView />
17-
</div>
6+
<div id="app" class="app-shell safe-top safe-bottom">
7+
<main class="app-content disable-scrollbars">
8+
<RouterView />
189
</main>
19-
<footer class="pb-safe"></footer>
2010
</div>
2111
</template>
2212

2313
<style scoped>
24-
main {
25-
padding: 1em;
14+
.app-shell {
15+
min-height: 100vh;
16+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f2f4f8 100%);
17+
color: var(--color-text);
2618
}
2719
28-
/* header {
29-
display: flex;
30-
align-items: flex-end;
31-
border-bottom: 2px solid var(--color-medium-dark-blue);
32-
flex-direction: row;
33-
justify-content: space-between;
34-
padding: 1rem 0;
35-
} */
20+
.app-content {
21+
padding: 1.5rem 1rem 3.5rem;
22+
max-width: 480px;
23+
margin: 0 auto;
24+
}
25+
26+
@media (min-width: 768px) {
27+
.app-content {
28+
padding: 2rem 0 4rem;
29+
}
30+
}
3631
</style>

packages/mobile/src/style.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515
color 0.5s,
1616
background-color 0.5s;
1717
line-height: 1.6;
18-
background: var(--color-very-light-blue);
18+
background: transparent;
1919
font-family: Manrope, sans-serif;
2020
font-size: 16px;
2121
text-rendering: optimizeLegibility;
@@ -33,16 +33,16 @@ body.barcode-scanner-active {
3333
}
3434

3535
.btn {
36-
border-radius: 2rem;
36+
border-radius: 999px;
3737
border: none;
3838
cursor: pointer;
3939
font-family: Manrope, sans-serif;
4040
outline: 0;
41-
transition: opacity 0.2s;
41+
transition: opacity 0.2s ease;
4242
}
4343

4444
.btn:hover {
45-
opacity: 0.6;
45+
opacity: 0.85;
4646
}
4747

4848
.btn.btn-primary {
@@ -57,20 +57,13 @@ button[type='submit'] {
5757
button[disabled] {
5858
pointer-events: none;
5959
user-select: none;
60+
opacity: 0.5;
6061
}
6162

6263
a[class] {
6364
cursor: pointer;
6465
}
6566

66-
div[class$='actions'] {
67-
display: flex;
68-
flex-direction: row;
69-
gap: 2rem;
70-
justify-content: center;
71-
margin-block-start: 4rem;
72-
}
73-
7467
.disable-scrollbars {
7568
scrollbar-width: none;
7669
-ms-overflow-style: none;
@@ -97,27 +90,34 @@ div[class$='actions'] {
9790
background: transparent;
9891
font-weight: normal;
9992
}
93+
10094
.banner {
10195
background-color: var(--color-btn-primary-bg);
10296
color: var(--color-btn-primary);
10397
}
98+
10499
.title {
105100
color: #343434;
106101
}
102+
107103
.title p {
108104
font-weight: 600;
109105
font-size: 1rem;
110106
}
107+
111108
.title small {
112109
font-size: 0.75rem;
113110
}
111+
114112
.search-form {
115113
height: 50px;
116114
border-radius: 10px;
117115
}
116+
118117
.capitalize {
119118
text-transform: capitalize;
120119
}
120+
121121
.back-link {
122122
color: var(--color-blue);
123123
}

0 commit comments

Comments
 (0)