Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change information #79

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflow/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This GitHub Actions workflow is for reporting the build status of a personal homepage.

# Define the name of the workflow
name: personal homepage

# Trigger the workflow when changes are pushed to the master branch
on:
push:
branches:
- master

# Define the jobs to be executed in the workflow
jobs:
# Define a job named 'report-build-status' to run on the 'ubuntu-latest' environment
report-build-status:
runs-on: ubuntu-latest

# Define the steps to be executed in the job
steps:
# Step 1: Check out the repository code
- name: Checkout Repository
uses: actions/checkout@v2

# Step 2: Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

# Step 3: Install project dependencies
- name: Install Dependencies
run: npm install

# Step 4: Run the build process
- name: Run Build
run: npm run build

# Step 5: Report the build status using GitHub API
- name: Report Build Status
run: gh api -X POST "repos/hwang-hyesung/hwang-hyesung.github.io/pages/telemetry" "{}"
env:
# Use the GitHub token to authenticate API requests
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ If you want to contact me you can reach me at [Twitter](https://www.twitter.com/

## License

MIT
MIT
Binary file removed assets/images/avatar-1.png
Binary file not shown.
Binary file removed assets/images/avatar-2.png
Binary file not shown.
Binary file removed assets/images/avatar-3.png
Binary file not shown.
Binary file removed assets/images/avatar-4.png
Binary file not shown.
Binary file modified assets/images/my-avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 0 additions & 120 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,126 +16,6 @@ sidebarBtn.addEventListener("click", function () { elementToggleFunc(sidebar); }



// testimonials variables
const testimonialsItem = document.querySelectorAll("[data-testimonials-item]");
const modalContainer = document.querySelector("[data-modal-container]");
const modalCloseBtn = document.querySelector("[data-modal-close-btn]");
const overlay = document.querySelector("[data-overlay]");

// modal variable
const modalImg = document.querySelector("[data-modal-img]");
const modalTitle = document.querySelector("[data-modal-title]");
const modalText = document.querySelector("[data-modal-text]");

// modal toggle function
const testimonialsModalFunc = function () {
modalContainer.classList.toggle("active");
overlay.classList.toggle("active");
}

// add click event to all modal items
for (let i = 0; i < testimonialsItem.length; i++) {

testimonialsItem[i].addEventListener("click", function () {

modalImg.src = this.querySelector("[data-testimonials-avatar]").src;
modalImg.alt = this.querySelector("[data-testimonials-avatar]").alt;
modalTitle.innerHTML = this.querySelector("[data-testimonials-title]").innerHTML;
modalText.innerHTML = this.querySelector("[data-testimonials-text]").innerHTML;

testimonialsModalFunc();

});

}

// add click event to modal close button
modalCloseBtn.addEventListener("click", testimonialsModalFunc);
overlay.addEventListener("click", testimonialsModalFunc);



// custom select variables
const select = document.querySelector("[data-select]");
const selectItems = document.querySelectorAll("[data-select-item]");
const selectValue = document.querySelector("[data-selecct-value]");
const filterBtn = document.querySelectorAll("[data-filter-btn]");

select.addEventListener("click", function () { elementToggleFunc(this); });

// add event in all select items
for (let i = 0; i < selectItems.length; i++) {
selectItems[i].addEventListener("click", function () {

let selectedValue = this.innerText.toLowerCase();
selectValue.innerText = this.innerText;
elementToggleFunc(select);
filterFunc(selectedValue);

});
}

// filter variables
const filterItems = document.querySelectorAll("[data-filter-item]");

const filterFunc = function (selectedValue) {

for (let i = 0; i < filterItems.length; i++) {

if (selectedValue === "all") {
filterItems[i].classList.add("active");
} else if (selectedValue === filterItems[i].dataset.category) {
filterItems[i].classList.add("active");
} else {
filterItems[i].classList.remove("active");
}

}

}

// add event in all filter button items for large screen
let lastClickedBtn = filterBtn[0];

for (let i = 0; i < filterBtn.length; i++) {

filterBtn[i].addEventListener("click", function () {

let selectedValue = this.innerText.toLowerCase();
selectValue.innerText = this.innerText;
filterFunc(selectedValue);

lastClickedBtn.classList.remove("active");
this.classList.add("active");
lastClickedBtn = this;

});

}



// contact form variables
const form = document.querySelector("[data-form]");
const formInputs = document.querySelectorAll("[data-form-input]");
const formBtn = document.querySelector("[data-form-btn]");

// add event to all form input field
for (let i = 0; i < formInputs.length; i++) {
formInputs[i].addEventListener("input", function () {

// check form validation
if (form.checkValidity()) {
formBtn.removeAttribute("disabled");
} else {
formBtn.setAttribute("disabled", "");
}

});
}



// page navigation variables
const navigationLinks = document.querySelectorAll("[data-nav-link]");
const pages = document.querySelectorAll("[data-page]");
Expand Down
Loading