Skip to content

Commit 7d658ee

Browse files
committed
redesign demo app with modern dark UI
Closes #421 Replace the 2013-era GitHub Pages layout with a clean, dark, tool-inspired interface: - Dark theme with checkerboard transparency pattern behind editor - Organized control grid with sliders, toggles, and color pickers - DM Sans / DM Mono typography - Responsive layout - Remove old MeyerWeb CSS reset, Arvo font, fixed sidebar layout - Remove unused image assets
1 parent 43805b7 commit 7d658ee

9 files changed

Lines changed: 768 additions & 1051 deletions

File tree

-216 Bytes
Binary file not shown.
-357 Bytes
Binary file not shown.

packages/demo/index.html

Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,18 @@
11
<!doctype html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<title>react-avatar-editor</title>
5-
65
<meta charset="utf-8" />
7-
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
8-
<meta
9-
name="viewport"
10-
content="width=device-width, initial-scale=1, user-scalable=no"
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com" />
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;700&display=swap"
11+
rel="stylesheet"
1112
/>
12-
<style>
13-
html,
14-
body {
15-
background-color: #121212;
16-
color: #fff;
17-
font-family:
18-
-apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto',
19-
'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji',
20-
'Segoe UI Emoji', 'Segoe UI Symbol';
21-
}
22-
.wrapper {
23-
margin: 0 auto;
24-
width: 100%;
25-
max-width: 500px;
26-
}
27-
28-
.preview {
29-
display: inline-block;
30-
background: rgb(242, 158, 181);
31-
background: linear-gradient(
32-
315deg,
33-
rgba(242, 158, 181, 1) 0%,
34-
rgba(243, 89, 120, 1) 100%
35-
);
36-
padding: 20px;
37-
border-radius: 20px;
38-
}
39-
</style>
4013
</head>
4114
<body>
42-
<div class="wrapper">
43-
<header>
44-
<h1 class="header">react-avatar-editor</h1>
45-
</header>
46-
<section>
47-
<h2>Demo time</h2>
48-
<div id="app"></div>
49-
</section>
50-
<footer>
51-
<p>
52-
<small
53-
><a href="https://github.com/mosch/react-avatar-editor"
54-
>Github</a
55-
></small
56-
>
57-
</p>
58-
</footer>
59-
</div>
15+
<div id="app"></div>
6016
<script src="./src/index.tsx" type="module"></script>
6117
</body>
6218
</html>

0 commit comments

Comments
 (0)