mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
add carbonads on awesome-go website
Signed-off-by: Avelino <t@avelino.xxx>
This commit is contained in:
parent
524803ab86
commit
975bdb6984
75
tmpl/assets/awesome-go.css
vendored
75
tmpl/assets/awesome-go.css
vendored
@ -40,4 +40,77 @@ h1 > a img {
|
||||
#content * {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** ADs
|
||||
* */
|
||||
#ads {
|
||||
max-width: 330px;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
margin-top: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: auto;
|
||||
margin-left: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#carbonads {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
||||
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#carbonads {
|
||||
display: flex;
|
||||
max-width: 330px;
|
||||
background-color: hsl(0, 0%, 98%);
|
||||
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
|
||||
}
|
||||
|
||||
#carbonads a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#carbonads a:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
#carbonads span {
|
||||
position: relative;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#carbonads .carbon-wrap {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.carbon-img {
|
||||
display: block;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.carbon-img img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.carbon-text {
|
||||
font-size: 13px;
|
||||
padding: 10px;
|
||||
line-height: 1.5;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.carbon-poweredby {
|
||||
display: block;
|
||||
padding: 8px 10px;
|
||||
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);
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .5px;
|
||||
font-weight: 600;
|
||||
font-size: 9px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
1
tmpl/tmpl.html
vendored
1
tmpl/tmpl.html
vendored
@ -21,6 +21,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<img src="/assets/logo.png" alt="Awesome Go" class="awesome-logo" />
|
||||
<p id="ads"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7IV5QI&placement=awesome-gocom" id="_carbonads_js"></script></p>
|
||||
|
||||
<div id="content">
|
||||
{{.Body}}
|
||||
|
Loading…
Reference in New Issue
Block a user