Skip to content

Commit e02c415

Browse files
committed
fix element spacing
1 parent 069609f commit e02c415

2 files changed

Lines changed: 17 additions & 16 deletions

File tree

ims-db.html

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<!-- Hamburger menu -->
7979
<script src="wp-includes/js/navbar.js"></script>
8080

81+
<!-- Web components -->
82+
<script src="web-components/hero-section/hero-section.js" type="module"></script>
8183
</head>
8284

8385
<!-- MASTHEAD_SITENAV_BEGIN -->
@@ -300,20 +302,13 @@ <h5>IMS support</h5>
300302
<main class="zs-main" id="main">
301303

302304
<!-- =========================== IMS Database =========================== -->
303-
<div class="banner innovate-bg">
304-
<section id="intro-section" class="pure-g zs-section db-hero">
305-
<div id="intro-header" class="pure-u-1"></div>
306-
<div class="pure-u-3-25">
307-
<img class="ims-card-icon" src="wp-content/Icon_Banner_IMS DatabasePage.svg" alt="">
308-
</div>
309-
<div id="intro-info" class="pure-u-1 pure-u-sm-15-24 db-hero-text">
310-
<h6>Innovate</h6>
311-
<h1 >IMS Database: fast, secure, reliable.</h1>
312-
<p id="p-style" >Data integrity, performance, simplified use of SQL, and powerful recovery tools make IMS Database Manager
313-
the best choice to protect your enterprise assets.</p>
314-
</div>
315-
</section>
316-
</div>
305+
<hero-section
306+
name="IMS Database: fast, secure, reliable"
307+
image="wp-content/Icon_Banner_IMS DatabasePage.svg"
308+
section="Innovate"
309+
desc="Data integrity, performance, simplified use of SQL, and powerful recovery tools make IMS Database Manager
310+
the best choice to protect your enterprise assets."
311+
></hero-section>
317312

318313
<!-- =========================== Managed ACBs =========================== -->
319314
<div class="zs-gray-section ibm-background-white-core macb-section">

web-components/hero-section/hero-section.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
.hero {
3636
display: grid;
3737
grid-template-columns: 4em 2fr;
38-
grid-template-rows: 4em repeat(3, 1fr);
38+
grid-template-rows: 4em 4em 6em 1fr;
3939
padding: 3em;
4040
padding-top: 2em;
4141
align-items: center;
@@ -50,7 +50,7 @@
5050
img {
5151
grid-column: 1;
5252
grid-row: 2;
53-
width: 2em;
53+
max-width: 2em;
5454
}
5555

5656
h2, h6, p {
@@ -115,6 +115,12 @@ h2, h6, p {
115115
background-color: var(--btn-scnd-hover);
116116
}
117117

118+
@media screen and (min-width: 90em) {
119+
.hero {
120+
grid-template-columns: 4em 4fr 1fr;
121+
}
122+
}
123+
118124
@media screen and (max-width: 27em) {
119125
.hero {
120126
display: flex;

0 commit comments

Comments
 (0)