+
+ (data.preview_url = v)"
+ />
+
{{ tips }}
+ false
}
})
+const tips = computed(() => {
+ if (props.type === "cover") {
+ return "Align crown to top, mid-thigh to bottom for best results."
+ }
+ if (props.type === "mainProductImage") {
+ return "Align crown to top, foot base to bottom for best results."
+ }
+ if (props.type === "sketch") {
+ return "Align crown to top, foot base to bottom for best results."
+ }
+ if (props.type === "apparel") {
+ return "Trim whitespace and center your apparel sketch."
+ }
+})
+
const data = reactive({
url: "",
title: "Crop Image",
@@ -126,6 +144,9 @@ defineExpose({
display: flex;
justify-content: space-between;
margin-bottom: 5rem;
+ &.is-product {
+ margin-bottom: 2.4rem;
+ }
> .title {
font-family: pingfang_heavy;
font-size: 2.4rem;
@@ -154,6 +175,15 @@ defineExpose({
display: flex;
align-items: center;
justify-content: center;
+ &.is-product {
+ column-gap: 18.6rem;
+ }
+ .tips {
+ text-align: center;
+ color: #585858;
+ font-size: 1.4rem;
+ font-weight: 400;
+ }
> .image-clip {
flex: 1;
&.is-product {