Larger github button and changed project button text

This commit is contained in:
Sharwin24 2025-01-03 11:51:26 -08:00
parent a28535008f
commit e77878731b
2 changed files with 12 additions and 6 deletions

View file

@ -9,6 +9,7 @@
.card-img-xs { .card-img-xs {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.sub-title { .sub-title {
color: get-light-color('muted-text-color'); color: get-light-color('muted-text-color');
margin-top: 0.4rem; margin-top: 0.4rem;
@ -17,6 +18,7 @@
&:nth-child(1) { &:nth-child(1) {
float: left; float: left;
} }
&:nth-child(2) { &:nth-child(2) {
float: right; float: right;
} }
@ -35,6 +37,7 @@
.project-card-footer { .project-card-footer {
display: flex; display: flex;
.badge { .badge {
margin-left: 0.1em; margin-left: 0.1em;
margin-right: 0.1em; margin-right: 0.1em;
@ -54,6 +57,7 @@
span { span {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
padding: 0.25rem;
} }
} }
@ -65,9 +69,11 @@
.container { .container {
max-width: 100%; max-width: 100%;
} }
.filtr-projects { .filtr-projects {
padding: 0; padding: 0;
} }
.filtr-item { .filtr-item {
flex: 50%; flex: 50%;
padding-left: 0.2rem; padding-left: 0.2rem;
@ -80,6 +86,7 @@
.btn { .btn {
margin-top: 0.3125rem; margin-top: 0.3125rem;
} }
.filtr-item { .filtr-item {
max-width: 100%; max-width: 100%;
} }
@ -91,10 +98,11 @@ html[data-theme='dark'] {
.card { .card {
.card-header { .card-header {
background-color: get-dark-color('bg-card'); background-color: get-dark-color('bg-card');
.sub-title { .sub-title {
color: get-dark-color('muted-text-color'); color: get-dark-color('muted-text-color');
} }
} }
} }
} }
} }

View file

@ -4,7 +4,7 @@
> >
<div class="card mt-1"> <div class="card mt-1">
<div class="card"> <div class="card">
<a href="{{ if .repo }}{{ .repo }}{{ else if .url }}{{ .url }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}> <a href="{{ if .url }}{{ .url }}{{ else if .repo }}{{ .repo }}{{ else }}javascript:void(0){{ end }}" {{ if or .repo .url }}target="_blank" rel="noopener"{{ end }}>
{{ if .image }} {{ if .image }}
<div class="card-head"> <div class="card-head">
{{ $imageImage:= resources.Get .image}} {{ $imageImage:= resources.Get .image}}
@ -69,9 +69,7 @@
class="github-button project-btn d-none" class="github-button project-btn d-none"
href="{{ .repo }}" href="{{ .repo }}"
data-icon="octicon-standard" data-icon="octicon-standard"
data-show-count="true" data-size="large"
aria-label="Star {{ .name }}"
>{{ i18n "project_star" }}</a
> >
{{ end }} {{ end }}
{{ if .url }} {{ if .url }}
@ -80,7 +78,7 @@
class="btn btn-outline-info btn-sm" class="btn btn-outline-info btn-sm"
href="{{ .url }}" href="{{ .url }}"
target="#" target="#"
>{{ i18n "project_details" }}</a >Read More</a
> >
</span> </span>
{{ end }} {{ end }}