-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (128 loc) · 3.86 KB
/
index.html
File metadata and controls
133 lines (128 loc) · 3.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>wp-block-to-html Demo</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.header {
text-align: center;
margin-bottom: 3rem;
}
.demo-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
.card {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.2s;
}
.card:hover {
transform: translateY(-5px);
}
.card img {
width: 100%;
height: 160px;
object-fit: cover;
}
.card-content {
padding: 1.5rem;
}
.card h2 {
margin-top: 0;
margin-bottom: 0.5rem;
color: #333;
}
.card p {
color: #666;
margin-bottom: 1.5rem;
}
.btn {
display: inline-block;
padding: 0.6rem 1.2rem;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 4px;
font-weight: 500;
transition: background-color 0.2s;
}
.btn:hover {
background-color: #0069d9;
}
.footer {
margin-top: 4rem;
text-align: center;
color: #6c757d;
}
</style>
</head>
<body>
<div class="container">
<header class="header">
<h1>wp-block-to-html Demo</h1>
<p>
This demo showcases the wp-block-to-html library, which converts WordPress Gutenberg blocks to HTML with various styling options.
</p>
</header>
<div class="demo-cards">
<div class="card">
<img src="https://via.placeholder.com/600x320/f8f9fa/999999?text=Default+Styling" alt="Default Styling">
<div class="card-content">
<h2>Default Styling</h2>
<p>See WordPress blocks converted to HTML with default WordPress styling.</p>
<a href="default.html" class="btn">View Demo</a>
</div>
</div>
<div class="card">
<img src="https://via.placeholder.com/600x320/0d6efd/ffffff?text=Bootstrap" alt="Bootstrap">
<div class="card-content">
<h2>Bootstrap Styling</h2>
<p>See WordPress blocks converted to HTML with Bootstrap CSS framework styling.</p>
<a href="bootstrap.html" class="btn">View Demo</a>
</div>
</div>
<div class="card">
<img src="https://via.placeholder.com/600x320/38bdf8/ffffff?text=Tailwind+CSS" alt="Tailwind CSS">
<div class="card-content">
<h2>Tailwind CSS Styling</h2>
<p>See WordPress blocks converted to HTML with Tailwind CSS framework styling.</p>
<a href="tailwind.html" class="btn">View Demo</a>
</div>
</div>
<div class="card">
<img src="https://via.placeholder.com/600x320/6b7280/ffffff?text=Rendering+Modes" alt="Rendering Modes Demo">
<div class="card-content">
<h2>Rendering Modes</h2>
<p>Explore the different rendering modes (rebuild, respect, preserve-attrs) for handling pre-rendered content.</p>
<a href="../examples/render-modes.html" class="btn">View Demo</a>
</div>
</div>
</div>
<footer class="footer">
<p>
<a href="https://github.com/yourusername/wp-block-to-html" target="_blank">GitHub Repository</a> |
<a href="https://www.npmjs.com/package/wp-block-to-html" target="_blank">NPM Package</a>
</p>
<p>© 2023 Made by Aris. All rights reserved.</p>
</footer>
</div>
</body>
</html>