Compare commits
No commits in common. "79be6699ed6d9792b4b6e1ecde96e46536ee59a0" and "030d6cdb8641a3da2f519709b552f312c44d22a7" have entirely different histories.
79be6699ed
...
030d6cdb86
@ -79,7 +79,8 @@ the terminal UI uses ANSI escape codes for colors and styling. ANSI codes are se
|
||||
|
||||
```rust
|
||||
// ANSI 256-color codes
|
||||
pub const RED: &str = "\x1b[38;5;167m"; // #dd4132 accent
|
||||
pub const RED: &str = "\x1b[38;5;167m"; // #dd4132
|
||||
pub const CYAN: &str = "\x1b[38;5;87m"; // #22D3EE
|
||||
pub const WHITE: &str = "\x1b[97m";
|
||||
pub const DIM: &str = "\x1b[2m";
|
||||
pub const RESET: &str = "\x1b[0m";
|
||||
|
||||
@ -25,7 +25,7 @@ pub fn box_top(width: usize, title: Option<&str>) -> String {
|
||||
|
||||
match title {
|
||||
Some(t) => {
|
||||
let title_colored = color(&format!(" {} ", t), Colors::RED);
|
||||
let title_colored = color(&format!(" {} ", t), Colors::CYAN);
|
||||
let title_len = t.len() + 2; // account for spaces
|
||||
let line_len = inner_width.saturating_sub(title_len);
|
||||
dim(&format!(
|
||||
|
||||
@ -52,7 +52,7 @@ fn render_header() -> String {
|
||||
&format!(
|
||||
"{} — {}",
|
||||
bold_color(SiteContent::NAME, Colors::WHITE),
|
||||
color(SiteContent::TITLE, Colors::RED)
|
||||
color(SiteContent::TITLE, Colors::CYAN)
|
||||
),
|
||||
WIDTH - 4,
|
||||
),
|
||||
@ -123,7 +123,7 @@ fn format_experience(exp: &Experience) -> String {
|
||||
dim(&format!("[{}]", exp.code)),
|
||||
color(exp.status, status_color),
|
||||
bold_color(exp.title, Colors::WHITE),
|
||||
color(exp.role, Colors::RED)
|
||||
color(exp.role, Colors::CYAN)
|
||||
)
|
||||
}
|
||||
|
||||
@ -146,7 +146,7 @@ fn render_skills() -> String {
|
||||
fn format_skill(skill: &Skill) -> String {
|
||||
format!(
|
||||
"{} {}{}{}",
|
||||
color(skill.num, Colors::RED),
|
||||
color(skill.num, Colors::CYAN),
|
||||
bold_color(&format!("{:<18}", skill.name), Colors::WHITE),
|
||||
" ",
|
||||
dim(skill.tools)
|
||||
@ -175,7 +175,7 @@ fn format_nav(nav: &NavItem) -> String {
|
||||
let padding = 35_usize.saturating_sub(nav.command.len());
|
||||
format!(
|
||||
"{} {}{}{}",
|
||||
color("$", Colors::RED),
|
||||
color("$", Colors::CYAN),
|
||||
cmd,
|
||||
" ".repeat(padding),
|
||||
desc
|
||||
@ -185,7 +185,7 @@ fn format_nav(nav: &NavItem) -> String {
|
||||
fn render_footer() -> String {
|
||||
format!(
|
||||
" {} • {}",
|
||||
color(SiteContent::WEBSITE, Colors::RED),
|
||||
color(SiteContent::WEBSITE, Colors::CYAN),
|
||||
color(SiteContent::EMAIL, Colors::LIGHT_GRAY)
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user