-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (99 loc) · 3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV to JSON Converter</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
text-align: center;
height: 100vh;
color: #333;
}
.container {
background: #fff;
padding: 20px 40px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
width: 400px;
}
h1 {
font-size: 24px;
margin-bottom: 20px;
color: #4CAF50;
}
.radio-options {
display: flex;
justify-content: center; /* Center align items horizontally */
gap: 20px; /* Adjust spacing between items as needed */
margin-bottom: 20px;
}
.radio-options label {
display: flex;
align-items: center; /* Center align text and radio button vertically */
font-size: 16px;
cursor: pointer;
}
.radio-options input[type="radio"] {
margin-right: 10px; /* Space between radio button and label text */
}
#drop-zone {
width: 300px;
border: 2px dashed #4CAF50;
margin: 0 auto;
border-radius: 10px;
padding: 40px;
background-color: #fafafa;
cursor: pointer;
color: #4CAF50;
font-size: 16px;
transition: all 0.3s ease;
}
#drop-zone:hover {
background-color: #e8f5e9;
}
#download-link {
width: 300px;
display: none;
margin: 0 auto;
margin-top: 20px;
text-decoration: none;
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
#download-link:hover {
background-color: #45a049;
}
input[type="file"] {
display: none;
}
</style>
</head>
<body>
<h1>Cupix String CSV to Figma Importable Json</h1>
<!-- 라디오 버튼 추가 -->
<div class="radio-options">
<label>
<input type="radio" name="json-format" value="en-US" checked> en-US
</label>
<label>
<input type="radio" name="json-format" value="ko-KR"> ko-KR
</label>
<label>
<input type="radio" name="json-format" value="ja-JP"> ja-JP
</label>
</div>
<div id="drop-zone">Drag & Drop CSV file here</div>
<a id="download-link">Download JSON</a>
<input type="file" id="file-input" style="display:none;" accept=".csv">
<script src="script.js"></script>
</body>
</html>