-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
106 lines (96 loc) · 5.02 KB
/
index.html
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Instagram Cropper</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
html, body {
background-color: #000000;
font-family: 'Nunito', sans-serif;
}
.cropper-wrapper{
width: 100%;
min-height: 300px;
}
.cropper-container{
width: 100%;
height: 300px;
}
@media (min-width: 576px){
.cropper-wrapper{
width: auto;
}
.cropper-container{
width: 300px;
height: 300px;
}
}
</style>
</head>
<body>
<div id="app">
<section class="container">
<div class="d-flex justify-content-center align-items-center px-2 py-4">
<h4 class="text-white text-center d-md-none" style="font-weight: 600;">Vue Instagram Cropper</h4>
<h1 class="text-white d-none d-md-block" style="font-weight: 600; ">Vue Instagram Cropper</h1>
</div>
</section>
<section class="container">
<div class="d-flex justify-content-center align-items-center">
<div class="bg-white p-4 rounded cropper-wrapper">
<instagram-cropper
ref="cropper"
:src="cropper"
placeholder-color="#000000"
placeholder="Choose or Drag'n'Drop an image"
:placeholder-font-size="14"
:prevent-white-space="preventWhiteSpace"
></instagram-cropper>
</div>
</div>
</section>
<section class="container text-center mt-4">
<h6 class="text-light">Some Methods</h6>
<div class="row justify-content-center">
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="changeImageURL">Load other URL</button></div>
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="changeImageObject">Load other Object</button></div>
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="setToNull">Set object to null</button></div>
</div>
<div class="row justify-content-center">
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="download">Download</button></div>
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="download('image/jpeg', 0.8)">Download 20% compressed JPEG</button></div>
</div>
<div class="row justify-content-center">
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="togglePreventWhiteSpace" v-text="preventWhiteSpaceText"></button></div>
<div class="p-1 col-12 col-sm-auto"><button class="btn btn-secondary" @click="addCircleClip">Add circle clip</button></div>
</div>
</section>
<section class="container text-center mt-4">
<h6 class="text-light">Vue.js component</h6>
<a class="btn btn-danger" href="https://github.com/avidofood/vue-instagram-cropper" role="button">Source on GitHub</a>
<div class="social mt-4">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a>
<a class="github-button" href="https://github.com/avidofood/vue-instagram-cropper" data-show-count="true" aria-label="Star avidofood/vue-instagram-cropper on GitHub">Star</a>
</div>
</section>
<section class="container mt-5">
<div class="row">
<div class="col-12 col-md-6">
<h4 class="text-white d-md-none" style="font-weight: 600;">Designed for Vue</h4>
<h2 class="text-white d-none d-md-block" style="font-weight: 600; ">Designed for Vue</h2>
</div>
<div class="col-12 col-md-6">
<p class="text-white">It feels like the image cropper from Instagram. Get the extension <a href="https://github.com/avidofood/vue-cropgram" class="text-danger font-weight-bold">Vue Instagram Image Upload</a> for a full experience.</p>
</div>
</div>
</section>
</div>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="demo/public/js/app.js"></script>
</body>
</html>