Skip to content

Commit 4cc2d9d

Browse files
committed
chore(docs): add GraphQL Conf banner
1 parent cf8bc70 commit 4cc2d9d

File tree

5 files changed

+48
-1
lines changed

5 files changed

+48
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<!-- prettier-ignore-start -->
22
<!-- markdownlint-disable-next-line MD041 -->
3-
![logo](./images/logo.png)
3+
[![GraphQL Conf 2023](./images/GraphQLConf-2023-Banner.png)](https://graphql.org/conf/)
44
<!-- prettier-ignore-end -->
55

6+
![logo](./images/logo.png)
7+
68
# TypeGraphQL
79

810
[![ci](https://github.com/MichalLytek/type-graphql/actions/workflows/ci.yml/badge.svg)](https://github.com/MichalLytek/type-graphql/actions/workflows/ci.yml)

images/GraphQLConf-2023-Banner.png

77.9 KB
Loading

website/core/Footer.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,17 @@ const DarkModeButton = () => {
7575
html.classList.toggle("theme-mode--light");
7676
}
7777
78+
function addGraphQLBanner() {
79+
const a = document.createElement("a");
80+
a.href = "https://graphql.org/conf/";
81+
a.target = "_blank";
82+
a.classList.add("graphql-banner");
83+
document.body.appendChild(a);
84+
}
85+
7886
appendButtonToDOM();
7987
setInitialColorMode();
88+
addGraphQLBanner();
8089
`,
8190
}}
8291
/>

website/static/css/custom.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,42 @@ body {
4444
color: var(--color-main-light);
4545
}
4646

47+
.navPusher {
48+
padding-top: 180px !important;
49+
}
50+
51+
@media screen and (min-width: 1024px) {
52+
.navPusher {
53+
padding-top: 130px !important;
54+
}
55+
}
56+
57+
@media only screen and (min-width: 1024px) {
58+
@supports ((position: -webkit-sticky) or (position: sticky)) {
59+
.onPageNav {
60+
top: 170px !important;
61+
}
62+
}
63+
}
64+
65+
.graphql-banner {
66+
position: fixed;
67+
top: 0;
68+
height: 80px;
69+
display: block;
70+
z-index: 999999;
71+
width: 100%;
72+
background-color: #4c204a;
73+
background-image: url("../img/GraphQLConf-2023-Banner.png");
74+
background-position: center center;
75+
background-size: cover;
76+
background-repeat: no-repeat;
77+
}
78+
79+
.fixedHeaderContainer {
80+
top: 80px;
81+
}
82+
4783
blockquote {
4884
color: var(--color-blockquote-text);
4985
}
196 KB
Loading

0 commit comments

Comments
 (0)