Skip to content

Commit

Permalink
add marv logo for foldmason
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Aug 27, 2024
1 parent 255413a commit e5a17b2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 31 deletions.
21 changes: 14 additions & 7 deletions frontend/DragUploadBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
@dragover="handleDragOver"
@dragleave="handleDragLeave"
>
<v-icon
size="50"
color="blue-accent-4"
>
{{ $MDI.FileUpload }}
</v-icon>
<v-btn outlined large style="margin-bottom: 10px">
<v-icon size="30" color="blue-accent-4">{{ $MDI.FileUpload }}</v-icon>
Click to select files
</v-btn>
<p class="text-body-2">{{ bodyText }}</p>
</div>
<input
Expand Down Expand Up @@ -42,7 +40,7 @@ export default {
data() {
return {
inFileDrag: false,
bodyText: "Drag & drop at least 2 PDB/mmCIF files here, or click to open the file picker."
bodyText: "Drag & drop at least two PDB files here."
};
},
methods: {
Expand Down Expand Up @@ -87,11 +85,20 @@ export default {
background-color: rgba(21, 101, 192, 0.04);
}
.upload-container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.upload-drag-area {
min-height: 250px;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.hidden-button {
display: none;
Expand Down
36 changes: 12 additions & 24 deletions frontend/FoldMasonSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
</v-tooltip> -->
</template>
<template slot="content">
<div class="upload-container w-44 gr-2 mb-2">
<div class="upload-outer-container w-44 gr-2 mb-2">
<DragUploadBox
class="drag-upload-box"
@uploadedFiles="upload"
multiple
></DragUploadBox>
Expand Down Expand Up @@ -341,35 +342,22 @@ export default {
color: #00000099;
}
.dotted-border {
border: 2px dashed #ccc;
border-width: 2px;
border-radius: 5px;
padding: 40px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
}
.dotted-border:hover {
border: 2px dashed #1976d2;
background-color: rgba(21, 101, 192, 0.04);
}
.dotted-border-hover {
border: 2px dashed #1976d2;
background-color: rgba(21, 101, 192, 0.04);
}
.uploaded-file {
margin: 10px 0;
}
.upload-container {
.upload-outer-container {
min-height: 300px;
display: flex;
flex-direction: column;
}
.upload-drag-area {
width: 100%;
.drag-upload-box >>> .upload-drag-area {
height: 100%;
background-image: url("./assets/marv-foldmason-gray.png");
background-repeat: no-repeat;
background-position: right 15px bottom -10px;
background-size: 220px;
line-height: 1.5;
}
</style>
Binary file added frontend/assets/marv-foldmason-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5a17b2

Please sign in to comment.