Skip to content

Commit

Permalink
Language icon tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shettysach committed Feb 8, 2024
1 parent c194af9 commit 6a36aaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/fetch/formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ pub fn format_repos(username: String, repos: Vec<Repository>) -> String {
.map(|repo| {
let text = format!(
r#"<a href="{}" target="_blank" class="blu semibold">{}</a>
<span class="rd semibold">Description:</span> {}
<span class="rd semibold">Language:</span> <span style="color:{}">{}</span>
<span class="rd semibold">Stars:</span> <span class="ylw">{}</span>
Expand All @@ -168,7 +169,7 @@ pub fn format_repos(username: String, repos: Vec<Repository>) -> String {
format!(
r#"<div class="row">
<div class="rcols">{}</div>
<div class="rcols">{}</div>
<div class="rcols" style="max-width: 50%;">{}</div>
</div>"#,
lang_icon(&repo.language.name),
text
Expand All @@ -178,14 +179,15 @@ pub fn format_repos(username: String, repos: Vec<Repository>) -> String {

let all_link = format!(
r#"<a href="https://www.github.com/{}?tab=repositories" target="_blank" class="blu semibold">All repos</a>
<span class="rd semibold">Description:</span> All my Github repositories."#,
username
);

let all = format!(
r#"<div class="row">
<div class="rcols">{}</div>
<div class="rcols">{}</div>
<div class="rcols" style="max-width: 50%;">{}</div>
</div>"#,
PLACEHOLDER, all_link
);
Expand All @@ -195,9 +197,7 @@ pub fn format_repos(username: String, repos: Vec<Repository>) -> String {

pub fn format_contacts(config: Config) -> String {
let github = format!(
r#"Links -
<a href="https://github.com/{}" target="_blank" style="color:var(--purple);font-weight:500;">Github</a>: github.com/{}"#,
r#" <a href="https://github.com/{}" target="_blank" style="color:var(--purple);font-weight:500;">Github</a>: github.com/{}"#,
config.github, config.github
);

Expand All @@ -213,6 +213,7 @@ pub fn format_contacts(config: Config) -> String {
format!(
r#"
<a href="https://www.linkedin.com/{}" target="_blank" style="color:var(--dblue);font-weight:500;">LinkedIn</a>: linkedin.com/{}"#,

linkedin, linkedin
)
});
Expand All @@ -226,7 +227,7 @@ pub fn format_contacts(config: Config) -> String {
});

format!(
"{}{}{}{}",
"{}\n{}\n{}\n{}",
github,
email.unwrap_or_default(),
linkedin.unwrap_or_default(),
Expand Down
4 changes: 2 additions & 2 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ form {
/* Repos fetch */

.rcols {
max-width: 50%;
flex: 0 0 calc(50% - 35px);
margin: 50px;
}
Expand All @@ -118,5 +117,6 @@ form {
/* Links */

a {
text-decoration-thickness: 1px;
text-decoration-thickness: 3px;
text-underline-offset: 8px;
}

0 comments on commit 6a36aaa

Please sign in to comment.