Skip to content

Commit bc84961

Browse files
committed
feat: format and remove some code
1 parent 8a6480c commit bc84961

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h2 class="text-primary">Our Vision</h2>
105105
<section id="projects" class="projects">
106106
<h2>Projects</h2>
107107

108-
<div class="flex-col-2" id="githubprojects">
108+
<div class="flex-col-2 flex-items" id="githubprojects">
109109
<!-- GitHub Projects from scripts.js goes here -->
110110
</div>
111111

src/assets/css/global.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ textarea:focus {
129129
border-radius: 5px;
130130
}
131131

132-
.btn-secondary{
132+
.btn-secondary {
133133
background-color: var(--secondaryBtn);
134134
color: #fff;
135135
padding: 18px 30px;
@@ -156,7 +156,7 @@ textarea:focus {
156156
.flex-items a {
157157
display: block;
158158
margin: 0 20px;
159-
transition: all 0.4s ease-in-out;
159+
transition: all 0.4s ease-in-out;
160160
}
161161

162162
.flex-items a:hover {
@@ -170,4 +170,3 @@ textarea:focus {
170170
border-radius: 10px;
171171
box-shadow: 3px 5px 5px var(--shadow);
172172
}
173-

src/assets/javascript/script.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ let githubprojects = [
3434
name: 'chryz-hub/chryz-hub.github.io',
3535
icon: 'description',
3636
},
37-
{
38-
name: 'chryz-hub/chryz-hub.github.io',
39-
icon: 'article',
40-
},
41-
{
42-
name: 'chryz-hub/chryz-hub.github.io',
43-
icon: 'person',
44-
},
4537
// Here can be added some more projets if needed
4638
];
4739

@@ -55,17 +47,27 @@ function getproject(project, icon) {
5547
return response.json();
5648
})
5749
.then((project) => {
58-
// we add the project card directly to the html dom
50+
// we add the project card directly to the html dom
5951
githubprojectsdomelement.innerHTML += createprojectcard(project, icon);
6052
});
6153
}
6254

6355
function createprojectcard(project, icon) {
64-
// removing github emojis cause they are not usable in html
65-
project.description = project.description.replace(/:[^}]*:/, '');
56+
// removing github emojis cause they are not usable in html
57+
project.description = project.description.replace(/:[^}]*:/, '');
6658

67-
// TODO: add Project Card
68-
let projectcard = ``;
69-
return projectcard;
70-
}
71-
59+
// TODO: add Project Card
60+
let projectcard = `<a href="#">
61+
<div class="item project">
62+
<h4 class="text-secondary">Chryz-Hub Website</h4>
63+
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quis quos consequatur atque perferendis
64+
sapiente consectetur iusto tempora temporibus, sequi maxime.</p>
65+
<div>
66+
<span class="fab fa-html5"></span>
67+
<span class="fab fa-css3-alt"></span>
68+
<span class="fab fa-js"></span>
69+
</div>
70+
</div>
71+
</a>`;
72+
return projectcard;
73+
}

0 commit comments

Comments
 (0)