Skip to content

Commit 5b2f4fa

Browse files
committed
add hero types
1 parent 1041622 commit 5b2f4fa

6 files changed

Lines changed: 56 additions & 4 deletions

File tree

examples/hero4.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6+
<link href="../lib/metro.css" rel="stylesheet">
7+
8+
<title>Hero - Metro UI :: Popular HTML, CSS and JS library</title>
9+
10+
</head>
11+
<body class="cloak h-100-vh">
12+
13+
<div class="container">
14+
<nav data-role="appbar" class="border-bottom bd-default" data-expand="true">
15+
<div class="app-bar-item-static no-hover">
16+
<div class="text-leader">Component Name</div>
17+
</div>
18+
<div class="app-bar-item-static no-hover ml-auto">
19+
<input type="checkbox" data-role="theme-switcher"/>
20+
</div>
21+
</nav>
22+
23+
<div class="hero hero4 bg-cyan fg-white">
24+
<div class="row">
25+
<div class="cell-md-6 d-flex flex-justify-center flex-column">
26+
<h1>Hero Header</h1>
27+
<div class="text-leader">
28+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis deleniti distinctio ipsa nemo qui recusandae repellat rerum similique voluptate voluptatibus!
29+
</div>
30+
</div>
31+
<div class="cell-md-6 d-flex flex-center">
32+
<img src="./images/rocket.svg" alt="" class="hero-image">
33+
</div>
34+
</div>
35+
</div>
36+
</div>
37+
38+
<script src="../lib/metro.js"></script>
39+
<script>
40+
</script>
41+
</body>
42+
</html>

lib/metro.all.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61173,6 +61173,9 @@ label:has(input) {
6117361173
.hero3 {
6117461174
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
6117561175
}
61176+
.hero4 {
61177+
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
61178+
}
6117661179
@media all and (min-width: 768px) {
6117761180
.hero {
6117861181
padding: 160px 80px;

lib/metro.all.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/metro.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61173,6 +61173,9 @@ label:has(input) {
6117361173
.hero3 {
6117461174
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
6117561175
}
61176+
.hero4 {
61177+
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
61178+
}
6117661179
@media all and (min-width: 768px) {
6117761180
.hero {
6117861181
padding: 160px 80px;

lib/metro.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/hero/hero.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
4040
}
4141

42+
.hero4 {
43+
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
44+
}
45+
4246
@media all and (min-width: @md) {
4347
.hero {
4448
padding: 160px 80px;

0 commit comments

Comments
 (0)