Skip to content

Commit

Permalink
Adjusted margin for product header
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyhimself committed Apr 9, 2024
1 parent c36bb1c commit 35052e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ a {
}
.img-thumbnail {
margin: 0 10px 10px 0;
}
}
.project_header {
margin-bottom: 0.5rem;
}
2 changes: 1 addition & 1 deletion src/js/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function update_contacts(data, section_type) {

function compose_project_li(data) {
content = '<li class="project_li">';
content += `<p><b>${data.project_header} `;
content += `<p class="project_header"><b>${data.project_header} `;
let pretty_link = data.project_link.replace(/(^\w+:|^)\/\//, ''); // romove protocol
pretty_link = pretty_link.replace(/\/.*/, ''); // remove everything after hostname
content += `<a href="${data.project_link}" target="_blank">${pretty_link}</a>`;
Expand Down

0 comments on commit 35052e9

Please sign in to comment.