Skip to content

Commit

Permalink
added-jimages
Browse files Browse the repository at this point in the history
  • Loading branch information
khadar1020 committed Jun 29, 2023
1 parent 95bb5e9 commit 788cbf4
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 2 deletions.
12 changes: 11 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1706,11 +1706,16 @@ footer {
transform: translateY(-0.5rem);
}
}

.cheatsheet-heading-main{
color: #2796ff;
text-align: center;
padding-top: 30px;
}
.cheatsheet-heading{
color: #2796ff;
text-align: center;
padding-top: 30px;
display: inline-block;
}

.option-btn{
Expand Down Expand Up @@ -1766,4 +1771,9 @@ footer {
color: var(--box-anchor);
font-size: 14px;
margin-bottom: 15px;
}
.option-image{
height: 70px;
margin-bottom: 10px;
margin-right: 10px;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/programming-language-images/c-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/js/cheatsheets.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
const repodata = [
{
image: "assets/img/programming-language-images/c-logo.png",
heading: "C",
description: "C programming language cheatsheet",
link: "/assets/cheatsheets/C.pdf",
},
{
image: "assets/img/programming-language-images/java-logo.png",
heading: "Java",
description: "Java programming language cheatsheet",
link: "https://introcs.cs.princeton.edu/java/11cheatsheet/",
},
{
image: "assets/img/programming-language-images/html-logo.png",
heading: "HTML",
description: "HTML cheatsheet",
link: "https://htmlcheatsheet.com/",
},
{
image: "assets/img/programming-language-images/css-logo.png",
heading: "CSS",
description: "CSS cheatsheet",
link: "https://htmlcheatsheet.com/css/",
},
{
image: "assets/img/programming-language-images/javascript-logo.png",
heading: "JavaScript",
description: "JavaScript programming language cheatsheet",
link: "https://htmlcheatsheet.com/js/",
},
{
image: "assets/img/programming-language-images/c++-logo.png",
heading: "C++",
description: "C++ programming language cheatsheet",
link: "./assets/cheatsheets/CPP.pdf",
},
{
image: "assets/img/programming-language-images/python-logo.png",
heading: "Python",
description: "Python programming language cheatsheet",
link: "./assets/cheatsheets/Python.pdf",
Expand All @@ -43,6 +50,8 @@ const repodata = [
allOptions = repodata.map(
(option) =>
`<div class="option">
<img class="option-image"
src="${option.image}">
<h1 class="cheatsheet-heading">${option.heading}</h1>
<p class="option-description">
${option.description}
Expand Down
2 changes: 1 addition & 1 deletion cheatsheets.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<!-- Main Section -->
<div>
<h1 class="cheatsheet-heading">Code Master's Cheatsheet</h1>
<h1 class="cheatsheet-heading-main">Code Master's Cheatsheet</h1>
<div class="option-container">
<div class="option">
<!-- This content is dynamically added via hacktoberfest.js -->
Expand Down

0 comments on commit 788cbf4

Please sign in to comment.