Skip to content

Commit 71539b2

Browse files
committed
HTML page with Carbon Design System
1 parent 3f6ef2c commit 71539b2

File tree

1 file changed

+24
-33
lines changed

1 file changed

+24
-33
lines changed

public/tmpl.html

+24-33
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,23 @@
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
77
<title>Awesome IBM Cloud</title>
88

9-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
9+
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap" rel="stylesheet">
10+
<link rel="stylesheet" href="https://unpkg.com/carbon-components/css/carbon-components.min.css">
1011
<style>
1112
html, body {
12-
margin: 0 auto;
13-
padding: 0;
14-
font-family: 'Roboto', sans-serif;
13+
font-family: 'IBM Plex Sans', sans-serif;
1514
font-size: 1rem;
16-
text-decoration: none;
1715
}
1816

19-
.content {
20-
margin: 50px;
17+
h1, p:first-of-type {
18+
text-align: center;
2119
}
2220

23-
img {
24-
display: block;
25-
margin-left: auto;
26-
margin-right: auto;
21+
h2 {
22+
margin-top: 30px;
2723
}
2824

29-
p img {
25+
p a img {
3026
display: inline-block;
3127
}
3228

@@ -35,34 +31,29 @@
3531
}
3632

3733
@media screen and (max-width: 600px) {
38-
.content {
39-
margin: 30px;
40-
}
41-
42-
img {
43-
width: 260px;
44-
height: auto;
45-
}
46-
47-
p img {
34+
p a img {
4835
width: auto;
4936
height: 20px;
5037
}
5138
}
5239
</style>
5340
</head>
5441
<body>
55-
<div class="content">
42+
<header aria-label="Awesome IBM Cloud" class="bx--header" role="banner">
43+
<a href="#" class="bx--header__name">
44+
<span class="bx--header__name--prefix">Awesome</span>&nbsp;IBM Cloud
45+
</a>
46+
<div class="bx--header__global">
47+
<button aria-label="Github" class="bx--header__action" type="button" onclick="window.open('https://github.com/victorshinya/awesome-ibmcloud');" rel="external nofollow">
48+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32" aria-hidden="true" style="will-change: transform;"><path fill-rule="evenodd" d="M16 2a14 14 0 0 0-4.43 27.28c.7.13 1-.3 1-.67v-2.38c-3.89.84-4.71-1.88-4.71-1.88a3.71 3.71 0 0 0-1.62-2.05c-1.27-.86.1-.85.1-.85a2.94 2.94 0 0 1 2.14 1.45 3 3 0 0 0 4.08 1.16 2.93 2.93 0 0 1 .88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4 5.4 0 0 1 1.44-3.76 5 5 0 0 1 .14-3.7s1.17-.38 3.85 1.43a13.3 13.3 0 0 1 7 0c2.67-1.81 3.84-1.43 3.84-1.43a5 5 0 0 1 .14 3.7 5.4 5.4 0 0 1 1.44 3.76c0 5.38-3.27 6.56-6.39 6.91a3.33 3.33 0 0 1 .95 2.59v3.84c0 .46.25.81 1 .67A14 14 0 0 0 16 2z"></path></svg>
49+
</button>
50+
<button aria-label="Twitter" class="bx--header__action" type="button" onclick="window.open('https://twitter.com/victorshinya');" rel="external nofollow">
51+
<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32" aria-hidden="true" style="will-change: transform;"><path d="M11.92 24.94A12.76 12.76 0 0 0 24.76 12.1v-.59A9.4 9.4 0 0 0 27 9.18a9.31 9.31 0 0 1-2.59.71 4.56 4.56 0 0 0 2-2.5 8.89 8.89 0 0 1-2.86 1.1 4.52 4.52 0 0 0-7.7 4.11 12.79 12.79 0 0 1-9.3-4.71 4.51 4.51 0 0 0 1.4 6 4.47 4.47 0 0 1-2-.56v.05a4.53 4.53 0 0 0 3.55 4.45 4.53 4.53 0 0 1-2 .08A4.51 4.51 0 0 0 11.68 21a9.05 9.05 0 0 1-5.61 2A9.77 9.77 0 0 1 5 22.91a12.77 12.77 0 0 0 6.92 2"></path></svg>
52+
</button>
53+
</div>
54+
</header>
55+
<main class="bx--content">
5656
{{.Body}}
57-
</div>
58-
<!-- Global site tag (gtag.js) - Google Analytics -->
59-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-133426833-1"></script>
60-
<script>
61-
window.dataLayer = window.dataLayer || [];
62-
function gtag(){dataLayer.push(arguments);}
63-
gtag('js', new Date());
64-
65-
gtag('config', 'UA-133426833-1');
66-
</script>
57+
</main>
6758
</body>
6859
</html>

0 commit comments

Comments
 (0)