Skip to content

Commit 33392fb

Browse files
authored
Merge pull request #1 from txitxo0/txitxo0/feat/github-repo-lin
txitxo0/feat/GitHub repo link
2 parents 4c89672 + 6164f7e commit 33392fb

4 files changed

Lines changed: 57 additions & 9 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "Python Development",
3+
"image": "ghcr.io/metinsenturk/devcontainer-templates/simple-python:3.12",
4+
"workspaceFolder": "/workspace",
5+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
6+
"remoteUser": "vscode",
7+
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-python.python",
12+
"ms-python.isort",
13+
"ms-python.autopep8",
14+
"ms-python.mypy-type-checker",
15+
"oderwat.indent-rainbow"
16+
]
17+
}
18+
},
19+
"postCreateCommand": "python -m venv .venv && .venv/bin/pip install --upgrade pip && .venv/bin/pip install -r requirements.txt"
20+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules/
33
.DS_Store
44
*.log
55
.vscode
6+
.venv

assets/css/cv.css

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ body.light-mode .hname { color: #0f172a }
172172
align-items: flex-end; gap: .4rem;
173173
font-size: .57rem;
174174
}
175+
.repo-link {
176+
margin-top: .8rem;
177+
font-size: .75rem;
178+
color: var(--txt2);
179+
}
180+
.repo-link a {
181+
color: var(--acc);
182+
text-decoration: none;
183+
}
184+
.repo-link a:hover {
185+
color: var(--acc2);
186+
}
175187
.bavail {
176188
display: flex; align-items: center; gap: .35rem;
177189
color: var(--green);
@@ -665,19 +677,28 @@ body.light-mode .cat-block:nth-child(4) .bar-fill { background: #eacd88 !importa
665677
/* ═══════════════════════════════════════════════════════════
666678
BUTTONS (screen only)
667679
═══════════════════════════════════════════════════════════ */
668-
#btn-print, #btn-theme {
680+
#btn-toolbar {
669681
position: fixed;
682+
right: 1.5rem;
683+
bottom: 1.5rem;
684+
display: flex;
685+
gap: .75rem;
686+
z-index: 999;
687+
}
688+
#btn-toolbar button,
689+
#btn-print, #btn-theme, #btn-github {
670690
background: var(--acc); color: #fff;
671691
border: none; cursor: pointer;
672692
padding: .5rem 1rem;
673693
font-family: var(--fm); font-size: .62rem; letter-spacing: .1em;
674-
text-transform: uppercase; z-index: 999;
694+
text-transform: uppercase;
675695
clip-path: polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,7px 100%,0 calc(100% - 7px));
676696
transition: background .2s;
697+
width: 10rem;
698+
text-align: center;
677699
}
678-
#btn-print { bottom: 1.5rem; right: 1.5rem; }
679-
#btn-theme { bottom: 1.5rem; right: 10.5rem; }
680-
#btn-print:hover, #btn-theme:hover { background: var(--acc2); color: #000 }
700+
#btn-toolbar button:hover,
701+
#btn-print:hover, #btn-theme:hover, #btn-github:hover { background: var(--acc2); color: #000 }
681702

682703
/* screen fade-in */
683704
@media screen {
@@ -955,7 +976,7 @@ body.light-mode .fname { color: #0f172a }
955976
padding: .65rem 1.75rem;
956977
}
957978

958-
#btn-print, #btn-theme, #locale-switch, .scan { display: none !important }
979+
#btn-toolbar, #btn-print, #btn-theme, #btn-github, #locale-switch, .scan, .no-print { display: none !important }
959980
.bavail-dot { display: none }
960981

961982
/* Hard-stop all animations so bars render at full width */

index.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ <h1 class="hname" id="person-name" itemprop="name"></h1>
4242
</div>
4343
</div>
4444

45+
<div class="repo-link no-print">
46+
<a href="https://github.com/txitxo0/folio-cv" target="_blank" rel="noopener">Original repo</a>
47+
</div>
48+
4549
<div class="corner-bl"></div>
4650
<div class="scan"></div>
4751
</header>
@@ -157,9 +161,11 @@ <h2 class="fsec-title" id="ftitle-skills">Technical Skills</h2>
157161

158162
</div><!-- #page-formal -->
159163
</div><!-- #shell-formal -->
160-
161-
<button id="btn-theme" onclick="toggleTheme()">☀ Light Mode</button>
162-
<button id="btn-print" onclick="window.print()">⎙ Export PDF</button>
164+
<div id="btn-toolbar">
165+
<button id="btn-theme" onclick="toggleTheme()">☀ Light Mode</button>
166+
<button id="btn-github" type="button" onclick="window.open('https://github.com/txitxo0/folio-cv', '_blank', 'noopener')" aria-label="GitHub repository" title="GitHub repository">GitHub</button>
167+
<button id="btn-print" onclick="window.print()">⎙ Export PDF</button>
168+
</div>
163169

164170
<!-- ══════════════════════════════════════════════════════════
165171
RADAR SVG GENERATOR

0 commit comments

Comments
 (0)