Skip to content

Commit 12cd95b

Browse files
committed
chore: add carbon
1 parent a9f1de6 commit 12cd95b

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

public/index.html

+67
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,74 @@
99
<title><%= webpackConfig.name %></title>
1010
</head>
1111
<body>
12+
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7IK5QY&placement=panjiachengithubio" id="_carbonads_js"></script>
1213
<div id="app"></div>
1314
<!-- built files will be auto injected -->
1415
</body>
16+
1517
</html>
18+
<style>
19+
#carbonads {
20+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
21+
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
22+
}
23+
24+
#carbonads {
25+
display: flex;
26+
max-width: 250px;
27+
background-color: hsl(0, 0%, 98%);
28+
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
29+
z-index: 2;
30+
position: fixed;
31+
right: 0;
32+
bottom: 0;
33+
}
34+
35+
#carbonads a {
36+
color: inherit;
37+
text-decoration: none;
38+
}
39+
40+
#carbonads a:hover {
41+
color: inherit;
42+
}
43+
44+
#carbonads span {
45+
position: relative;
46+
display: block;
47+
overflow: hidden;
48+
}
49+
50+
#carbonads .carbon-wrap {
51+
display: flex;
52+
}
53+
54+
.carbon-img {
55+
display: block;
56+
margin: 0;
57+
line-height: 1;
58+
}
59+
60+
.carbon-img img {
61+
display: block;
62+
}
63+
64+
.carbon-text {
65+
font-size: 13px;
66+
padding: 10px;
67+
line-height: 1.5;
68+
text-align: left;
69+
}
70+
71+
.carbon-poweredby {
72+
display: block;
73+
padding: 8px 10px;
74+
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
75+
text-align: center;
76+
text-transform: uppercase;
77+
letter-spacing: .5px;
78+
font-weight: 600;
79+
font-size: 9px;
80+
line-height: 1;
81+
}
82+
</style>

0 commit comments

Comments
 (0)