- Notifications
You must be signed in to change notification settings - Fork2
My personal CV in a git-inspired style. Check it out!
License
tarkant/personal-cv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Show off your curriculum with a visually attractive commits tree ✨ .
Checkout thedemo here.
- A simple build process based onwebpack-typescript-sass-boilerplate
- SEO-friendly/Social-friendly tags and attributes already setup
- Auto dark mode following the user's preferences
- Google Analytics and CloudFlare analytics ready
- A commit tree based on
<ul>
and<li>
- No dependency, everything is vanilla
- TypeScript and SCSS/SASS
- A clean print template
- Mobile-first layout
Clone this repository, run annpm install
to install all the dev dependencies needed (webpack, TypeScript, SCSS/SASS loader).
Next to run the project simplynpm start
, the app will run onhttp://localhost:8080/
, if you need to change the dev server port, add--port 8888
to thestart
entry underpackage.json
:
{"name":"your-personal-cv","version":"1.1.0","description":"Your personal CV description.","scripts": {"start":"webpack serve --progress --mode development --port 8888",...}
Replace thepackage.json
file with the relevant info about you.
Next head to theindex.html
file and replace/add your personal info and achievements. For each entry in the commit tree just add for example:
<liclass="commit"data-date="2004-08-01"><spanclass="title">Added TCP/IP abilities:</span><spanclass="desc">Discovered the Internet</span><spanclass="date">Around August 2004</span></li>
Please pay close attention todata-date
attribute to keep accurate dates for better SEO. The rest are straightforward.
Branches are nested<ul>
in<ul>
as follows:
<!-- Jasmine Spring branch --><ulclass="branch jasminespring-branch"data-label="jasminespring"><liclass="commit merge"data-branch="master"data-date="2011-09-01"></li><liclass="commit"data-date="2011-04-01"><spanclass="title">Preparatory class:</span><spanclass="desc">Technical cursus - Aborded.</span><spanclass="date">April 2011</span></li><liclass="commit new-branch"data-branch="master"data-date="2010-06-15"></li></ul>
Notice the commit sandwiched between aclass="commit merge"
andclass="commit new-branch"
that represent the branching of your commits. You can omit theclass="commit merge"
to leave a branch open for example.
⚠ Last but not least,don't forget to editsrc/assets/data.json
with your own personal data !
I've added Google Analytics v4 as well as CloudFlare Analytics to theindex.html
template as follows:
</footer><%if (cfAnalytics) { %><!-- Cloudflare Web Analytics --><scriptdefersrc='https://static.cloudflareinsights.com/beacon.min.js'data-cf-beacon='{"token": "<%= cfAnalytics %>"}'></script><!-- End Cloudflare Web Analytics --><% } %><%if (gAnalytics) { %><!-- Global site tag (gtag.js) - Google Analytics --><scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=<%= gAnalytics %>"></script><script>window.dataLayer=window.dataLayer||[];functiongtag(){dataLayer.push(arguments);}gtag('js',newDate());gtag('config','<%= gAnalytics %>');</script><% } %></body>
For both you can notice it's surrounded in a if block, the scrips will be injected only if you supply environnement variables as follows:
CF_ANALYTICS=YOUR_CF_ANALYTICS_ID
GA_ANALYTICS=YOUR_GA_V4_ID
You'll notice there is ESLint already setup, you can runnpm run lint
to lint the full project.
Feel free to fork and PR to the project (as long as your PR is clear of course). If you notice an issue or anything of the sorts, please let me know, I'll be happy to fix/help!
If you inspect the code, you'll just see ul elements containing li elements and other nested ul elements. That's it! Everything is static and is based on uls. Awesome isn't it?
- 20-Feb-2022: nom audit fix + upgraded webpack Dev server config
- 11-April-2021: Added Google Analytics and CloudFlare analytics integration
- 17-March-2021: Added webpack config and build process
- 13-March-2021: Added CapRover config files for easier deployment
- 15-July-2020 : Updated bio and cursus
- 05-May-2019 : Stripped analytics code and updated some stuff
- 28-Aug-2017 : Created everything, and visually fixed everything for Google Chrome and Firefox.
- Soon : Changing the markup and adding explanations of how to use the commit tree.