-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (113 loc) · 3.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="CSS Skeleton Generator - A tool that extracts classes from HTML/JSX code and generates a CSS skeleton."
/>
<meta
property="og:description"
content="CSS Skeleton Generator - A tool that extracts classes from HTML/JSX code and generates a CSS skeleton."
/>
<meta property="og:image" content="long.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="CSS Skeleton Generator" />
<meta
name="twitter:description"
content="CSS Skeleton Generator - A tool that extracts classes from HTML/JSX code and generates a CSS skeleton."
/>
<title>CSS Generator</title>
<link rel="stylesheet" href="style.css" />
<link rel="shortcut icon" href="logo.png" type="image/x-icon" />
<script defer src="main.js"></script>
</head>
<body>
<header>
<div class="header-container">
<div class="header-left">
<img src="logo.png" alt="Logo" class="logo" />
<h1 class="wordmark">CSS Skeleton Generator</h1>
</div>
<div class="header-right">
<a href="https://twitter.com/kamranhab" target="_blank">
<img src="xlogo.png" alt="X Logo" class="xlogo"
/></a>
</div>
</div>
</header>
<section class="main-section">
<div class="io-container">
<div class="input-container">
<div class="input-left">
<div class="choose-file-container">
<label for="fileInput" class="custom-file-input"
>Choose File</label
>
<input
type="file"
id="fileInput"
accept=".html, .jsx, .js, .tsx"
onchange="handleFileUpload()"
/>
<span class="file-name" id="fileName">No File Chosen</span>
</div>
<textarea
id="htmlInput"
placeholder="Paste your HTML/JSX code here..."
></textarea>
</div>
<div
class="input-right"
id="dropArea"
ondrop="handleDrop(event)"
ondragover="handleDragOver(event)"
>
<img src="drop.png" alt="Drag and Drop" class="drop-img" />
<p class="drag-drop-text">
<strong>Drag and Drop</strong> your <br />
HTML/JSX file here
</p>
</div>
</div>
<div class="mobile-generate-container">
<button class="mobile-clear-button" onclick="clearInput()">
Clear
</button>
<button class="mobile-generate-button" onclick="generateCSS()">
Generate CSS
</button>
</div>
<div class="output-container">
<div class="output-top">
<p class="css-text">CSS</p>
<div class="action-buttons">
<button
class="copy-button"
id="copyButton"
onclick="copyToClipboard()"
>
Copy
</button>
<button
class="download-button"
id="downloadButton"
onclick="downloadCSS()"
>
Download
</button>
</div>
</div>
<pre class="css-output" id="cssOutput"></pre>
</div>
</div>
<div class="generate-container">
<button class="clear-button" onclick="clearInput()">Clear</button>
<button class="generate-button" onclick="generateCSS()">
Generate CSS
</button>
</div>
</section>
</body>
</html>