Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions layouts/partials/sections/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,25 @@ <h5 class="card-title bg-transparent mt-1">{{ .title }}</h5>
</div>
{{ if or (.links) (.featured) }}
<div class="card-footer py-3">
{{ range .links }}
<span class="m-1 mx-2">
<a href="{{ .url }}" target="_blank">
<i class="{{ .icon }}"></i>
</a>
</span>
{{ end }}
{{ if .featured }}
<span class="float-end">
<a class="btn btn-sm" href="{{ .featured.link }}" target="_blank">
<div class="d-flex justify-content-between align-items-center">
<div class="icons d-flex">
{{ range .links }}
<span class="m-1 mx-2">
<a href="{{ .url }}" target="_blank">
<i class="{{ .icon }}"></i>
</a>
</span>
{{ end }}
</div>
{{ if .featured }}
<span class="float-end">
<a class="btn btn-sm" href="{{ .featured.link }}" target="_blank">
{{ .featured.name }}
</a>
</span>
</a>
</span>
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</div>
Expand Down
66 changes: 65 additions & 1 deletion static/css/projects.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,68 @@

#projects .float-end .btn:focus {
box-shadow: none !important;
}
}

#projects .card-footer {
padding: 1rem; /* Adjust padding as needed */
}

#projects .card-footer .d-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

#projects .card-footer .icons a {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem; /* Adjust icon size */
/* color: var(--text-color); */
transition: color 0.3s;
}

#projects .card-footer .btn {
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
}

#projects .card-footer .btn:hover {
background-color: var(--background-color);
color: var(--text-color);
opacity: 0.9;
}

body.light #projects .card-footer .btn {
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
background-color: var(--background-color) !important;
color: var(--text-link-color) !important;
border: 1px solid var(--primary-color);
}

body.light #projects .card-footer .btn:hover {
background-color: #fff !important;
color: var(--text-color) !important;
opacity: 0.9;
}

body.dark #projects .card-footer .btn {
padding: 0.5rem 1rem;
font-size: 0.875rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
background-color: var(--secondary-color) !important;
color: var(--text-link-color);
border: 1px solid var(--primary-color);
}

body.dark #projects .card-footer .btn:hover {
background-color: var(--background-color) !important;
color: var(--text-color);
opacity: 0.9;
}