File size: 1,557 Bytes
369fac9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<script setup></script>

<template>
    <div class="dropzone">
        <div class="loading-animation">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>

        Processing ...
    </div>
</template>

<style lang="scss" scoped>
.dropzone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 0.2rem dashed var(--primary-color);
    padding: 2rem;
    border-radius: 0.25rem;
    background-color: #fff;
    font-size: 1.25rem;
    transition: 0.25s background-color ease-in-out;
    cursor: pointer;

    &-icon {
        display: block;
        font-size: 3rem;
        margin: 0 auto 1.5rem;
        color: var(--primary-color);
    }

    &-input {
        display: none;
    }
}

.loading-animation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;

    .dot {
        display: inline-block;
        width: 20px;
        aspect-ratio: 1 / 1;
        border-radius: 100%;
        background-color: var(--primary-color);
    }
}

.loading-animation .dot:nth-last-child(1) {
    animation: loading 0.6s 0.1s linear infinite;
}
.loading-animation .dot:nth-last-child(2) {
    animation: loading 0.6s 0.2s linear infinite;
}
.loading-animation .dot:nth-last-child(3) {
    animation: loading 0.6s 0.3s linear infinite;
}

@keyframes loading {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 15px);
    }
    100% {
        transform: translate(0, 0);
    }
}
</style>