Skip to content

Commit

Permalink
added recommended image size
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuraghavb committed Jan 7, 2022
1 parent cb6f57e commit c57c8d8
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,14 @@
:content="images"
type="cover"
:resizeImage="resizeImage"
label="Add cover image"
label="Add cover photo"
description="suggested format: svg, jpeg, png or gif"
:showAlert="showAlert"
/>
<p class="mt-6 border p-4 rounded border-gray-700 text-gray-400">
Recommended cover photo size is 960 x 640 pixels, with an aspect
ratio of 3:2
</p>
</div>
</div>
<div id="step-2" class="mt-16">
Expand All @@ -132,10 +136,14 @@
:content="images"
type="photo"
:resizeImage="resizeImage"
label="Add photo"
label="Add profile photo"
description="suggested format: jpeg, png or gif"
:showAlert="showAlert"
/>
<p class="mt-6 border p-4 rounded border-gray-700 text-gray-400">
Recommended profile photo size is 320 x 320 pixels, with an aspect
ratio of 1:1
</p>
<div class="stepC mt-6">
<label for="fullname" class="ml-4">Full name</label>
<input
Expand Down Expand Up @@ -862,13 +870,14 @@ export default {
},
],
secondaryActions: [
// todo: Fix Instagram gradient icon preview
{
name: 'Instagram',
icon: 'instagram',
href: 'https://instagram.com/',
placeholder: 'username',
value: null,
color: '#405de6',
color: '#c32aa3',
label: 'Instagram username',
},
{
Expand Down Expand Up @@ -1375,10 +1384,10 @@ export default {
canvas.width = canvas.height = 320
} else {
if (type == 'logo') {
maxWidth = 1056
maxHeight = 288
maxWidth = 960
maxHeight = 192
} else {
maxWidth = maxHeight = 1296
maxWidth = maxHeight = 960
}
let width = img.width
let height = img.height
Expand Down

0 comments on commit c57c8d8

Please sign in to comment.