Skip to content

Commit b13f894

Browse files
darthezMaciej Rys
andauthored
docs: added discord server link to the landing page (#153)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> Co-authored-by: Maciej Rys <maciej.rys@swmansioncom>
1 parent 0b270ae commit b13f894

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

docs/docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ const config = {
6868
label: 'Docs',
6969
position: 'right',
7070
},
71+
{
72+
'href': 'https://discord.gg/ZGqqY55qkP',
73+
'position': 'right',
74+
'className': 'header-discord',
75+
'aria-label': 'Discord server',
76+
},
7177
{
7278
'href':
7379
'https://github.com/software-mansion/react-native-executorch',

docs/src/css/overrides.css

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ table thead tr {
6666
height: 24px;
6767
width: 24px;
6868

69-
mask: url(/static/img/github.svg) no-repeat 100% 100%;
70-
mask-size: cover;
69+
mask: url(/static/img/github.svg) no-repeat center;
70+
mask-size: contain;
7171
content: '';
7272

7373
background-color: var(--ifm-navbar-link-color);
@@ -84,6 +84,35 @@ table thead tr {
8484
background-color: var(--ifm-navbar-link-hover-color);
8585
}
8686

87+
@media (min-width: 996px) {
88+
.header-discord {
89+
margin-left: 1.5em;
90+
}
91+
}
92+
93+
.header-discord:before {
94+
display: flex;
95+
height: 24px;
96+
width: 24px;
97+
98+
mask: url(/static/img/discord.svg) no-repeat center;
99+
mask-size: contain;
100+
content: '';
101+
102+
background-color: var(--ifm-navbar-link-color);
103+
}
104+
105+
@media (max-height: 420px) {
106+
.header-discord:before {
107+
height: 20px;
108+
width: 20px;
109+
}
110+
}
111+
112+
.header-discord:hover:before {
113+
background-color: var(--ifm-navbar-link-hover-color);
114+
}
115+
87116
.community-holder-container {
88117
display: flex;
89118
flex-wrap: wrap;

docs/static/img/discord.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)