From e76a09f3260d82424869e63f59a7fc2620c31532 Mon Sep 17 00:00:00 2001 From: Sergey7w Date: Sat, 13 Jul 2024 14:44:30 +0300 Subject: [PATCH] Add version and author --- .github/workflows/update-badge.yml | 32 +++++++++++++++++++++++++ .github/workflows/update-version.yml | 31 ++++++++++++++++++++++++ README.md | 2 +- images/github.svg | 1 + index.html | 2 ++ js/gimme-style.js | 6 ++++- styles/style.css | 35 ++++++++++++++++++++++++---- 7 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/update-badge.yml create mode 100644 .github/workflows/update-version.yml create mode 100644 images/github.svg diff --git a/.github/workflows/update-badge.yml b/.github/workflows/update-badge.yml new file mode 100644 index 0000000..6bad3f3 --- /dev/null +++ b/.github/workflows/update-badge.yml @@ -0,0 +1,32 @@ +name: Update README version badge + +on: + push: + tags: + - 'v*' + +jobs: + update-badge: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Get the latest tag + id: get_tag + run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + + - name: Update README with version badge + run: | + TAG=${{ steps.get_tag.outputs.tag }} + BADGE_URL="https://img.shields.io/badge/version-${TAG}-brightgreen" + sed -i "s|!\\[Version Badge\\](.*)|![Version Badge](${BADGE_URL})|" README.md + + - name: Commit and push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add README.md + git commit -m "Update version badge to $TAG" + git push diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml new file mode 100644 index 0000000..3e4f993 --- /dev/null +++ b/.github/workflows/update-version.yml @@ -0,0 +1,31 @@ +name: Update HTML version + +on: + push: + tags: + - 'v*' + +jobs: + update-version: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Get the latest tag + id: get_tag + run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + + - name: Update version in HTML + run: | + TAG=${{ steps.get_tag.outputs.tag }} + sed -i "s/VERSION_PLACEHOLDER/$TAG/" index.html + + - name: Commit and push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add index.html + git commit -m "Update version to $TAG" + git push diff --git a/README.md b/README.md index caa744d..9c5b42c 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,4 @@ The second click on the bookmark (esc or button with a cross) will close **Gimme ## License -MIT © 2024 Sergey Vaitehovich +MIT © 2024 Sergey Vaitehovich ![Version Badge](https://img.shields.io/badge/version-VERSION_PLACEHOLDER-brightgreen) diff --git a/images/github.svg b/images/github.svg new file mode 100644 index 0000000..e45f8be --- /dev/null +++ b/images/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 9c54252..be063ba 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ GimmeStyle demo page + @@ -14,6 +15,7 @@ GimmeStyle

Experienced leader and founder of the Akkadian Empire, I successfully united the Sumerian city-states and pioneered centralized governance. With a strong background in administration, trade, and cultural development, I have a proven track record of expanding and stabilizing territories. Passionate about creating enduring legacies and driving societal progress.

Overview
  • Proven ability to unite and govern diverse city-states under a centralized authority.
  • Established and maintained the first empire in Mesopotamian history.
  • Expertise in military strategy and territorial expansion.
  • Developed long-term plans for administrative efficiency and cultural development.
  • Implemented innovative administrative practices that enhanced governance.
  • Experience in managing complex political and economic systems.
  • Skilled in forming strategic alliances and managing diplomatic relations.
  • Negotiated treaties and partnerships that strengthened the empire.
  • Patron of arts, literature, and cultural exchange.
  • Promoted advancements in writing, architecture, and law.
  • Led numerous successful military campaigns, securing and expanding the empire.
  • Demonstrated tactical expertise and innovative battlefield strategies.
Skills

Leadership & Governance

the first empire maintained

Strategic Planning

military strategy, territorial expansion, cultural development

Administration

administrative practices

Diplomacy & Alliances

strategic alliances

Cultural Development

architecture, law

Military Command

military campaigns, tactical expertise, battlefield strategies

Experience

Founder and Ruler, Akkadian Empire2340–2284 BCE

Project Overview:

The first ancient Mesopotamian empire, renowned for its centralized governance, military conquests, and cultural advancements, spanning from the Persian Gulf to the Mediterranean Sea.

Responsibilities:

  • Governance and Administration
  • Military Leadership
  • Diplomacy and Alliances
  • Economic Management
  • Cultural Patronage
  • Legal Oversight

Achievements:

Unified the Sumerian city-states, establishing the world's first empire. Implemented centralized administration and governance, enhancing efficiency and control. Expanded the empire's territories through military conquests and strategic alliances.

Key Technologies:

Flattery, bribery, threats, violence, cunning.


Military Leader, Kingdom of KishPrior to 2340 BCE

Project Overview:

An influential Sumerian city-state in ancient Mesopotamia, known for its strategic location, early advancements in governance, and significant role in regional politics and trade during the early dynastic period.

Responsibilities:

  • Military Command
  • Administration and Governance
  • Advisory Role
  • Diplomatic Relations
  • Economic Oversight
  • Public Works and Infrastructure

Achievements:

Rose to prominence as a skilled and strategic military commander. Led successful campaigns that contributed to the rise of Akkad as a dominant power.

Key Technologies:

Flattery, bribery, threats, violence, cunning.


Administrator, Royal Court of KishEarly Career

Project Overview:

An influential Sumerian city-state in ancient Mesopotamia, known for its strategic location, early advancements in governance, and significant role in regional politics and trade during the early dynastic period.

Responsibilities:

  • Court Management
  • Policy Implementation
  • Resource Allocation
  • Staff Supervision
  • Communication and Liaison
  • Advisory Role
  • Public Relations
  • Legal Oversight

Achievements:

Managed court affairs, demonstrating strong organizational and leadership abilities. Developed early policies that would later influence the administrative structure of the Akkadian Empire.

Key Technologies:

Flattery, bribery, threats, violence, cunning.

Education

Military Strategy and Leadership Training

Received extensive training in military tactics, battlefield strategy, and leadership skills.

Administrative and Governance Studies

Educated in the principles of administration, governance, and statecraft.

Cultural and Religious Education

Studied the cultural, religious, and legal traditions of Sumerian society.

Economic and Resource Management

Learned the fundamentals of economic management, resource allocation, and trade.

Languages

SumerianUpper intermediate

AkkadianNative

Testimonials

Rimushsuccessor of Sargon

I am happy to recommend Sargon as a highly qualified King. Having had the privilege of interacting closely with Sargon of Akkad, I can attest to his exceptional leadership and strategic acumen. His ability to unify diverse city-states under a centralized rule is unparalleled, fostering stability and prosperity throughout the region. Sargon's commitment to diplomacy and cultural exchange has been instrumental in strengthening alliances and advancing our shared interests in trade and mutual defense.

+ \ No newline at end of file diff --git a/js/gimme-style.js b/js/gimme-style.js index 08d2de1..38591ca 100644 --- a/js/gimme-style.js +++ b/js/gimme-style.js @@ -1,4 +1,8 @@ -if (typeof window.GimmeStyle === 'undefined') { +/* +* GimmeStyle v0.9 | MIT License | Sergey Vaitehovich 2024 +*/ + +if (window.GimmeStyle === undefined) { let self = null; window.GimmeStyle = { diff --git a/styles/style.css b/styles/style.css index 91083ff..3d0fa9c 100644 --- a/styles/style.css +++ b/styles/style.css @@ -81,7 +81,7 @@ summary { cursor: pointer; } -a:not(.demo *) { +a { border-bottom: 1px dotted #999; color: #999; text-decoration: none; @@ -93,7 +93,7 @@ a:not(.demo *):before { /* only for demo */ text-decoration: none; } -a:not(.demo *):hover { +a:hover { display: inline-block; border-bottom-style: solid; color: black; @@ -164,10 +164,37 @@ hr { width: 105px; margin: 10px auto 0; padding: 7px; - color: white; - background-color: darkgreen; + border: 0; border-radius: 4px; + color: white; text-decoration: none; + background-color: darkgreen; +} +.demo a:hover { + display: block; + border: 0; + color: white; + animation: none; +} + +footer { + display: flex; + padding: 10px 20px; + border-top: thin solid #999; +} + +footer a { + display: inline-block; + width: 22px; + height: 22px; + margin-right: 7px; + border: 0; + background: url("../images/github.svg") no-repeat center center; + background-size: 22px; +} + +footer a:hover { + animation: none; } @keyframes pulse { /* only for demo */