-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
148 lines (140 loc) · 8.04 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Profile Cards Link Generator</title>
<!-- Meta tags for relevant embedding of website in other platforms -->
<meta name="title" content="Profile Cards Link Generator" />
<meta name="description" content="Generate Link for Profile Cards" />
<meta name="author" content="Prince Raj" />
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="public/style.css" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- Favicon Files -->
<!-- For most browsers -->
<link rel="shortcut icon" href="public/favicon/favicon.ico" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="public/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="public/favicon/favicon-16x16.png" />
<!-- For Safari on Mac OS -->
<link rel="apple-touch-icon" sizes="180x180" href="public/favicon/apple-touch-icon.png" />
<!-- For Android devices -->
<link rel="manifest" href="public/favicon/site.webmanifest" />
</head>
<body>
<div class="container heading-parent-container">
<div class="row justify-content-center mt-5">
<div class="col-lg-6">
<div class="heading-container">
<h1>Profile Cards Generator</h1>
</div>
</div>
</div>
</div>
<div class="besides-heading">
<div class="modal" id="errorModal" tabindex="-1">
<div class="modal-dialog modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Error: Image Generation Failed</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Please check your inputs and try again. Meanwhile, an image with default values will be
generated.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="page-container">
<div class="card">
<div class="card-body">
<p class="card-text">Live Preview</p>
</div>
<img
class="card-img-bottom"
src="https://profile-cards-api.vercel.app/api/profile?name=Prince%20Raj&location=India&title=Web%20Developer&imageLink=https://i.ibb.co/C9KyQXb/Saraswati-Puja-2024.jpg&socialMedia=Linkedin&socialMediaUsername=theprinceraj"
alt="Card Image Cap"
id="profile-image" />
</div>
<div id="form-container">
<form class="row g-3">
<div class="col-md-12">
<label for="inputImageLink" class="form-label" required
>Image or Image Link<span>*</span>
<i
class="bx bxs-info-circle ms-2"
data-bs-toggle="tooltip"
data-bs-placement="right"
title="When an image is uploaded, its link will be generated and placed within the respective field. However, that field won't be editable anymore. Refresh the page if you want to add an image link yourself."></i>
</label>
<div class="input-group">
<input
type="url"
class="form-control"
id="inputImageLink"
placeholder="https://i.ibb.co/C9KyQXb/Prince_Raj.jpg" />
<label class="input-group-text" for="inputImageFile">
<i class="bx bxs-cloud-upload"></i>
<input
type="file"
class="form-control d-none"
name="inputImageFile"
id="inputImageFile"
accept="image/*" />
</label>
</div>
</div>
<div class="col-md-12">
<label for="inputName" class="form-label" required>Name<span>*</span></label>
<input type="text" class="form-control" id="inputName" />
</div>
<div class="col-md-6">
<label for="inputLocation" class="form-label" required>Location<span>*</span></label>
<input type="text" class="form-control" id="inputLocation" />
</div>
<div class="col-md-6">
<label for="inputTitle" class="form-label" required>Title<span>*</span></label>
<input type="text" class="form-control" id="inputTitle" />
</div>
<div class="col-md-6">
<label for="inputSocialMedia" class="form-label">Social Media</label>
<input type="text" class="form-control" id="inputSocialMedia" />
</div>
<div class="col-md-6">
<label for="inputSocialMediaUsername" class="form-label">Social Media Username</label>
<input type="text" class="form-control" id="inputSocialMediaUsername" />
</div>
<div class="col-md-12" id="noteContainer">
<p><span>*</span> means that the particular field is required.</p>
</div>
<div class="col-12" id="btn-container">
<button type="button" class="btn btn-primary col-12 col-sm-4 col-md-5" id="copyLinkBtn">
Copy Link
</button>
<button type="button" class="btn btn-primary col-12 col-sm-7 col-md-6" id="shortenLinkBtn">
Copy Short Link
</button>
</div>
</form>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="public/scripts/globalVariablesDeclaration.js"></script>
<script src="public/scripts/fieldsValidator.js"></script>
<script src="public/scripts/debounceFunctions.js"></script>
<script src="public/scripts/errorModalFunctionality.js"></script>
<script src="public/scripts/main.js"></script>
<script src="public/scripts/copyLinkFunctionality.js"></script>
<script src="public/scripts/shortLinkBtnFunctionality.js"></script>
<script src="public/scripts/fileUploadFunctionality.js"></script>
</body>
</html>