Skip to content

Commit 07b0b64

Browse files
authored
Add discord button and other changes (#96)
Added link for the CP-Bootcamp resources and invite link for CodeCell discord server
1 parent a7bc4de commit 07b0b64

4 files changed

Lines changed: 68 additions & 11 deletions

File tree

index.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
<div id="header-content" class="container" itemscope="itemscope" itemtype="http://schema.org/Event">
143143

144144
<div class="wow animated fadeInDown" style="margin-top: 50px;">
145-
<img class="" src="./static/logos/logo-full-blue.png" style="height: 8vh;" alt="">
145+
<img class="home-screen-logo" src="./static/logos/logo-full-blue.png" style="height: 8vh;" alt="KJSCE CodeCell">
146146
</div>
147147

148148

@@ -169,9 +169,26 @@
169169
</span>
170170

171171
</address>
172-
<a class="wow animated fadeInUp blog-link btn-blog" target="_blank" data-wow-delay="1.5s"
173-
href="https://blogs.kjscecodecell.com">Codecell
174-
Blogs<img class="beta" src="./static/images/beta-white.png"></img></a>
172+
173+
<div class="home-buttons-container">
174+
<!-- discord community ka button -->
175+
<div style="margin-bottom: 30px;">
176+
<a class="wow animated fadeInUp blog-link btn-blog btn-discord" target="_blank" data-wow-delay="1.5s"
177+
href="https://discord.com/invite/UBbSuw7swW">
178+
Discord Server
179+
<img style="margin-left: 6px; margin-right: 5px;" class="beta" src="./static/images/discord-logo-white.png"></img>
180+
</a>
181+
</div>
182+
<!-- codecell blog ka button -->
183+
<div>
184+
<a class="wow animated fadeInUp blog-link btn-blog" target="_blank" data-wow-delay="1.5s"
185+
href="https://blogs.kjscecodecell.com">
186+
Codecell Blogs
187+
<img class="beta" src="./static/images/beta-white.png"></img>
188+
</a>
189+
</div>
190+
</div>
191+
175192
<div class="hello wow animated fadeInUp" data-wow-delay="2.5s" style="font-size:25px;margin-top: 20px;">
176193
<p>The Codechef Campus Chapter of KJSCE</p>
177194
</div>
25.4 KB
Loading

static/js/terminal.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
response += ', <strong>shades()</strong>';
381381
response += ', <strong>twShare()</strong>';
382382
response += ', <strong>stl()</strong>';
383+
response += ', <strong>cp()</strong>';
383384
response += ', <strong>pyDocs()</strong>';
384385
response += ', <strong>newsletter()</strong>';
385386
response += ', <strong>test()</strong>'
@@ -406,6 +407,7 @@
406407
if (customFunctionName == 'shades') response = 'See the world through the eyes of a douchebag.';
407408
if (customFunctionName == 'twShare') response = 'Share Codecell with you friends on Twitter.';
408409
if (customFunctionName == 'stl') response = 'Opens STL Reference material by Codecell team';
410+
if (customFunctionName == 'cp') response = 'Opens Logic Building (for competitive programming) Reference material by Codecell team';
409411
if (customFunctionName == 'git') response = 'Opens Git-Github Reference material by Codecell team';
410412
if (customFunctionName == 'pyDocs') response = 'Opens Python reference material by Codecell team';
411413
if (customFunctionName == 'newsletter') response = 'Opens our exquisitive newsletter, written only for you !';
@@ -680,15 +682,19 @@
680682
}
681683

682684
function stl() {
683-
window.open("http://www.kjscecodecell.com/standard-library-in-x/");
685+
window.open("https://www.kjscecodecell.com/standard-library-in-x/");
686+
}
687+
688+
function cp() {
689+
window.open("https://www.kjscecodecell.com/CP-Bootcamp-2021/");
684690
}
685691

686692
function git() {
687693
window.open("https://www.kjscecodecell.com/Git-CheatSheet/");
688694
}
689695

690696
function pyDocs() {
691-
window.open("http://www.kjscecodecell.com/Introduction-to-programming/python/");
697+
window.open("https://www.kjscecodecell.com/Introduction-to-programming/python/");
692698
}
693699

694700
function newsletter() {

static/styles/styles.css

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,25 @@ only screen and (min-resolution: 2dppx) {
810810
margin-bottom: 32px;
811811
}
812812

813+
.home-buttons-container {
814+
display: flex;
815+
justify-content: center;
816+
}
817+
.btn-discord {
818+
margin-right: 25px;
819+
}
820+
821+
@media(max-width: 860px) {
822+
.home-buttons-container {
823+
flex-direction: column;
824+
}
825+
.btn-discord {
826+
margin-right: 0px;
827+
}
828+
}
829+
813830
.section-header .blog-link {
814-
font-size: 40px;
831+
font-size: 30px;
815832
color: white;
816833
background-color: #003955;
817834
margin-bottom: 50px;
@@ -845,8 +862,8 @@ only screen and (min-resolution: 2dppx) {
845862

846863
.beta {
847864
margin-bottom: 10px;
848-
width: 40px;
849-
height: 40px;
865+
width: 30px;
866+
height: 30px;
850867
}
851868

852869
.intro-holder {
@@ -11797,6 +11814,17 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1179711814
}
1179811815

1179911816
@media only screen and (max-width: 670px) {
11817+
.section-header .blog-link {
11818+
font-size: 25px;
11819+
color: white;
11820+
}
11821+
11822+
.beta {
11823+
margin-bottom: 5px;
11824+
width: 30px;
11825+
height: 30px;
11826+
}
11827+
1180011828
.speaker-list {
1180111829
margin-left: auto;
1180211830
margin-right: auto;
@@ -11988,13 +12016,13 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1198812016
}
1198912017

1199012018
.section-header .blog-link {
11991-
font-size: 25px;
12019+
font-size: 20px;
1199212020
color: white;
1199312021
/* background-color: pink; */
1199412022
}
1199512023

1199612024
.beta {
11997-
margin-bottom: 10px;
12025+
margin-bottom: 5px;
1199812026
width: 30px;
1199912027
height: 30px;
1200012028
}
@@ -12104,6 +12132,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1210412132
.speaker p {
1210512133
font-size: 15px;
1210612134
}
12135+
12136+
/* for smaller screen make sure the home screen logo does not overflow */
12137+
@media only screen and (max-width: 377px) {
12138+
.home-screen-logo {
12139+
height: 6vh !important;
12140+
}
1210712141
}
1210812142

1210912143
@media only screen and (max-width: 370px) {

0 commit comments

Comments
 (0)