-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (129 loc) · 3.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ReNameify</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', Arial, sans-serif;
background-color: #f4f6f9;
color: #333;
line-height: 1.6;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 40px 20px;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
color: #2c3e50;
font-weight: 600;
margin-bottom: 10px;
}
.header h3 {
color: #7f8c8d;
font-weight: 300;
}
.description {
background-color: #ecf0f1;
border-left: 4px solid #3498db;
padding: 15px;
margin-bottom: 25px;
border-radius: 4px;
}
.btn-group {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 30px;
}
.btn {
background-color: #3498db;
color: white;
border: none;
padding: 12px 25px;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
}
.btn:hover {
background-color: #2980b9;
}
#fileList {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
}
.file-item {
background-color: #f8f9fa;
margin: 10px 0;
padding: 15px;
border-radius: 6px;
display: flex;
justify-content: space-between;
flex-direction: column;
word-wrap: break-word;
border-left: 4px solid #2ecc71;
line-height: 1.5;
}
.file-item-fail {
background-color: #f8f9fa;
margin: 10px 0;
padding: 15px;
border-radius: 6px;
display: flex;
justify-content: space-between;
flex-direction: column;
word-wrap: break-word;
border-left: 4px solid red;
}
.file-item:hover .file-item-fail:hover {
background-color: #f1f3f4;
}
.status-success {
color: #2ecc71; /* Green */
font-weight: 600;
}
.status-warning {
color: #e74c3c; /* Red */
font-weight: 600;
}
.status-failed {
color: #e67e22; /* Orange */
font-weight: 600;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>ReNameify</h1>
<h3>Intelligent File Renaming Utility</h3>
</div>
<div class="description">
<p>Select a directory and organize your files with context-aware file names.
Renamed files will be saved under <strong>renamed_files</strong> in the selected directory.</p>
</div>
<div class="btn-group">
<button id="selectDir" class="btn">Select Directory</button>
<button id="processFiles" class="btn">Process Files</button>
</div>
<div id="fileList"></div>
</div>
<script src="renderer.js"></script>
</body>
</html>