-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
169 lines (147 loc) · 8.49 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./styles/main.css">
<title>TinkerHub | Campus Logo Generator</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="bg-light-white" style="min-height: 100vh;">
<div class="container py-5">
<br>
<h3 class="text-center"><span class="text-blue">TinkerHub</span> | Campus Logo Generator</h3>
<p class="text-secondary text-center">
A logo generator for TinkerHub campus chapters.
</p>
<br>
<form class="form-group row" id="downloadForm">
<div class="col-md-2"></div>
<div class="col-md-4">
<input type="text" id="collegeName" class="form-control mb-2 mb-md-0"
placeholder="Enter your college name here" required>
</div>
<div class="col-md-3">
<button type="button" id="toggleColor" class="btn btn-block btn-dark shadow-sm">Dark Theme</button>
</div>
<div class="col-md-3 btn-group showable">
<input type="submit" class="btn btn-block btn-primary shadow-sm" id="myBtn" value="Download SVG"></input>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" onclick="toggleSelect()">
<span class="sr-only" id="toggleSelect">Toggle Dropdown</span>
</button>
<div class="dropdown-menu showable" onclick="toggleSelect()">
<a class="dropdown-item" onclick="setFormat(this.innerText)">SVG</a>
<a class="dropdown-item" onclick="setFormat(this.innerText)">PNG</a>
</div>
</div>
<div class="col-md-2"></div>
</form>
<br>
<div class="card card-body shadow-sm border-0">
<div class="text-sm preview-text">PREVIEW</div>
<div class="text-center py-4">
<svg id="svgLogo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="200 0 2028 594" width="1014" height="594">
<defs>
<style>
.cls-1 {
fill: #fff;
}
.cls-2 {
fill: #05bfce;
}
.cls-3 {
fill: #ffcd10;
}
.cls-4 {
fill: #95bf15;
}
.cls-5 {
fill: #ee1700;
}
.cls-6 {
fill: #205b67;
}
.cls-7 {
fill: #0060ff;
}
.cls-8 {
font-size: 125px;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
.cls-9 {
letter-spacing: -0.01em;
}
.cls-10 {
letter-spacing: -0.01em;
}
.cls-11 {
letter-spacing: 0em;
}
</style>
</defs>
<title>TinkerHub</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Layer_2-2" data-name="Layer 2">
<path d="M729,301.39V149.6H676V117.94H820.54V149.6H767.4V301.39Z" />
<path
d="M833.51,130.91c0-11.06,8.9-19.19,19.83-19.19s19.83,8.13,19.83,19.19c0,10.81-8.9,19.2-19.83,19.2S833.51,141.72,833.51,130.91Zm1.27,34.2H871.9V301.39H834.78Z" />
<path
d="M896.57,165.11h35.85v24.54h.76c7.75-17.42,21.61-26.57,42.59-26.57,30.25,0,47.29,19.06,47.29,51v87.34H985.94V221.81c0-17.8-8.27-28-25.17-28s-27.08,12.2-27.08,30v77.55H896.57Z" />
<path
d="M1131.37,165.11h42.08l-52,58.48,54.53,77.8h-42.71l-39-55.43-9.66,10.43v45h-37.12V117.94h37.12V219.77h.51Z" />
<path
d="M1304.65,259.69c-4.07,26.57-28.73,44.12-62.17,44.12-41.7,0-67.12-26.57-67.12-69.92s25.55-71.2,65.72-71.2c39.54,0,64.71,26.32,64.71,67.76v11.32h-93.94v2.29c0,19.19,12.58,32.29,31.27,32.29,13.35,0,24-6.36,27.46-16.66ZM1212.23,219h57.84c-.76-17.41-12.2-28.86-28.6-28.86C1225.32,190.15,1213.5,202,1212.23,219Z" />
<path
d="M1324.86,165.11h35.85v24.54h.77c4.7-16.91,16.4-26.19,32.41-26.19a34.28,34.28,0,0,1,10.56,1.4v32.67c-3-1.27-8.14-2.16-13.48-2.16-18.31,0-29,11.18-29,30.38v75.64h-37.12Z" />
<path
d="M1548.86,301.39V217.87H1448.18v83.52H1425.3V117.94h22.88v79.33h100.68V117.94h22.89V301.39Z" />
<path
d="M1712.48,301.39h-21v-22H1691c-8.13,15.38-21.61,23.26-42,23.26-28.86,0-45.76-18.69-45.76-48.69V169.18h22.12V250c0,21.49,10,33,30.51,33,21.48,0,34.45-14.74,34.45-37.24V169.18h22.12Z" />
<path
d="M1763.84,279h-.51v22.37h-21.1V117.94h22.12v72.72h.51c8.26-14.49,23.64-22.75,42.33-22.75,33.31,0,55.81,27,55.81,67.37s-22.5,67.38-56.19,67.38C1787.49,302.66,1772.36,294.27,1763.84,279Zm.38-43.74c0,28.48,15.51,47.8,38.27,47.8s37.88-18.68,37.88-47.8-15-47.8-37.88-47.8S1764.22,206.93,1764.22,235.28Z" />
<text class="cls-8" transform="translate(710 450.78)">
<tspan id="logoName" class="name">RIT Kottayam</tspan>
</text>
</g>
</g>
</svg>
</div>
</div>
<div>
<canvas id="canvas" width="2028" height="594"></canvas>
<img id="image" width="2028" height="594">
</div>
</div>
<hr class="mb-0">
<div class="py-5">
<div class="container">
<div class="text-center mb-3">
<span class="mx-2">
<a target="_blank" rel="noopener" href="https://www.facebook.com/tinkerhub"><i
class="fa fa-lg fa-facebook fa-fw social-icon"></i></a>
</span>
<span class="mx-2">
<a target="_blank" rel="noopener" href="https://www.twitter.com/tinkerhub"><i
class="fa fa-lg fa-twitter fa-fw social-icon"></i></a>
</span>
<span class="mx-2">
<a target="_blank" rel="noopener" href="https://www.instagram.com/tinkerhub"><i
class="fa fa-lg fa-instagram fa-fw social-icon"></i></a>
</span>
</div>
<div class="text-center text-secondary text-sm">
Created with <i class="fa fa-heart"></i> by TinkerHub RIT.
</div>
</div>
</div>
</div>
</body>
<script src="./scripts/main.js" defer></script>
</html>