Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
olimjon1606 committed Dec 13, 2023
1 parent 6562bd3 commit 78bb3c9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 988 deletions.
10 changes: 5 additions & 5 deletions archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@

<!-- costom css link -->
<link rel="stylesheet" href="./archive/css/style.css">

</head>

<body>

<!-- skip to content -->

<a href="#main" class="skip-to-content">Skip to Content</a>

<div class="theme"><button class="icon-btn theme-btn" aria-pressed="false" aria-label="Toggle dark and light theme"
data-theme-btn>
<div class="theme">
<button class="icon-btn theme-btn" aria-pressed="false" aria-label="Toggle dark and light theme" data-theme-btn>
<span class="material-symbols-rounded sun-icon" aria-hidden="true">light_mode</span>
<span class="material-symbols-rounded moon-icon" aria-hidden="true">dark_mode</span>
</button></div>
</button>
</div>

<main class="main" id="main">
<div class="container">
Expand Down
6 changes: 0 additions & 6 deletions archive/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,8 @@ body {
#REUSED STYLE
\*-----------------------------------*/
.container {
/* padding-inline: 16px; */
/* display: flex;
justify-content: center;
align-items: center; */
/* max-width: 1280px; */
width: 80%;
margin: 0 auto;
/* margin-inline: auto; */
}

.material-symbols-rounded {
Expand Down
48 changes: 0 additions & 48 deletions archive/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,12 @@
import { fetchData } from "./api.js";
import { numberToKilo } from "./module.js";



const addEventOnElements = function ($elements, eventType, callback) {
for (const $item of $elements) {
$item.addEventListener(eventType, callback);
}
}

// const $header = document.querySelector("[data-header]");

// window.addEventListener("scroll", function () {
// $header.classList[window.scrollY > 50 ? "add" : "remove"]("active");
// })


// search toggle

// const $searchToggler = document.querySelector("[data-search-toggler")
// const $searchField = document.querySelector("[data-search-field")

// let isExpanded = false;

// $searchToggler.addEventListener("click", function () {
// $header.classList.toggle("search-active")
// isExpanded = isExpanded ? false : true;
// this.setAttribute("aria-expanded", isExpanded);
// $searchField.focus()
// })


// Tab navigation

const $tabBtns = document.querySelectorAll("[data-tab-btn]")
Expand Down Expand Up @@ -82,18 +58,6 @@ const $searchSubmit = document.querySelector("[data-search-submit]")
let apiUrl = "https://api.github.com/users/olimjon1606"
let repoUrl, followerUrl, followingUrl = ""

// const searchUser = function () {
// if (!$searchField.value) return;
// apiUrl = `https://api.github.com/users/${$searchField.value}`

// updateProfile(apiUrl)
// }

// $searchSubmit.addEventListener("click", searchUser);
// $searchField.addEventListener("keydown", e => {
// if (e.key === "Enter") searchUser();
// });

// Profile

const $profileCard = document.querySelector("[data-profile-card]");
Expand Down Expand Up @@ -151,25 +115,17 @@ window.updateProfile = function (profileUrl) {

repoUrl = repos_url;
followerUrl = followers_url;
// followingUrl = following_url.replace("{/other_user}", "");

$profileCard.innerHTML =


``;

updateRepository();

}, () => {
$error.style.display = "grid";
document.body.style.overflowY = "hidden";

$error.innerHTML = ``
});
}
updateProfile(apiUrl)


// Repository

let forkedRepos = []
Expand Down Expand Up @@ -296,7 +252,3 @@ const updateForkRepo = function () {
}

$forkTabBtn.addEventListener("click", updateForkRepo);

// Followers

//Following
Loading

0 comments on commit 78bb3c9

Please sign in to comment.