Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 fixed upload button on footer #116

Merged
merged 3 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions frontend/src/components/OnboardingSwiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,21 @@ export default {
margin-bottom: 4px;
}

.swiper-button-prev,
.swiper-button-next {
:deep(.swiper-button-prev) {
color: #000091 !important;
}
:deep(.swiper-button-next) {
color: #000091 !important;
top:60%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
:deep(.swiper-button-prev)::after {
font-size: 28px;
}
:deep(.swiper-button-next)::after {
font-size: 28px;
}

.swiper-button-disabled {
:deep(.swiper-button-disabled) {
display: none;
}

Expand Down
40 changes: 39 additions & 1 deletion frontend/src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
left: 0;
}

@media (min-width: 740px) {
.home {
top: 15%;
}

.fr-container {
width: 100%;
height: 100%;
}

@media (min-width: 740px) {
.info {
position: absolute;
top: 30%;
Expand All @@ -16,4 +25,33 @@
}
}

.footer-background {
position: fixed;
top: 100%;
left: 50%;
transform: translate(-50%, -100%);
background-color: #f5f5fe;
padding: 5px;
width: 100%;
}

.footer-text {
padding: 20px 10px;
text-align: center;
}

.footer-actions {
display: flex;
justify-content: space-around;
color: #000091;
z-index: 1;
margin: auto;
}

.blank {
height: 120px;
}

.bold {
font-weight: 700;
}
9 changes: 8 additions & 1 deletion frontend/src/views/Instructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,27 @@
</p>
</div>
</div>
</div>
<div class="blank" />
<div class="footer-background footer-actions">
<div
v-if="!store.uploadMessage"
class="btn-read-instruction text-center"
>
<div
class="col-11 col-lg-6 footer-actions"
/>
<UploadButton />
<DsfrButton
class="my-2"
label="prendre la photo"
icon="ri-camera-fill"
@click="readInstruction"
/>
</div>
<div
v-else
class="text-center"
class="text-center mt-2 bold"
>
<p>{{ store.uploadMessage }}</p>
</div>
Expand Down