Skip to content

Commit 1105248

Browse files
committed
navとworksを追加
1 parent b9a1333 commit 1105248

File tree

3 files changed

+82
-2
lines changed

3 files changed

+82
-2
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width,initial-scale=1">
66
<link rel="canonical" href="https://098orin.github.io/">
7-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
87
<link rel="stylesheet" href="style.css">
98
<title>TOP | 098orin.github.io</title>
109
<!-- Open Graph -->
@@ -15,6 +14,12 @@
1514
</head>
1615
<body>
1716
<main>
17+
<nav class="main-nav">
18+
<ul>
19+
<li><a href="https://098orin.github.io/">TOP</a></li>
20+
<li><a href="https://098orin.github.io/works/">WORKS</a></li>
21+
</ul>
22+
</nav>
1823
<h1>Hello World!</h1>
1924
<p>Welcome to my GitHub page.</p>
2025

style.css

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,55 @@ h1, h2, h3 {
2323
}
2424

2525

26+
/* main-nav */
27+
/* ナビ全体 */
28+
.main-nav {
29+
background-color: #1f1f1f; /* 黒寄りの背景 */
30+
padding: 10px 20px;
31+
box-shadow: 0 2px 5px rgba(0,0,0,0.5);
32+
}
33+
34+
/* ulを横並びに */
35+
.main-nav ul {
36+
list-style: none;
37+
display: flex;
38+
justify-content: center; /* 中央寄せ */
39+
gap: 30px; /* メニュー間隔 */
40+
margin: 0;
41+
padding: 0;
42+
}
43+
44+
/* aタグの見た目 */
45+
.main-nav ul li a {
46+
color: #f0f0f0; /* 白文字 */
47+
text-decoration: none;
48+
font-weight: 500;
49+
position: relative;
50+
padding: 5px 0;
51+
transition: color 0.3s;
52+
}
53+
54+
/* ホバー時のエフェクト(下線アニメーション) */
55+
.main-nav ul li a::after {
56+
content: '';
57+
position: absolute;
58+
left: 0;
59+
bottom: -3px;
60+
width: 0%;
61+
height: 2px;
62+
background-color: #1e90ff; /* アクセントブルー */
63+
transition: width 0.3s;
64+
}
65+
66+
.main-nav ul li a:hover::after {
67+
width: 100%; /* ホバーで下線が出る */
68+
}
69+
70+
.main-nav ul li a:hover {
71+
color: #1e90ff; /* ホバーで文字もアクセント色 */
72+
}
73+
74+
2675
/* profile-box */
2776
.profile-box {
2877
background-color: #1f1f1f;
@@ -40,7 +89,6 @@ h1, h2, h3 {
4089
list-style: none; /* 丸数字を消す */
4190
padding: 0;
4291
margin: 0;
43-
4492
display: flex; /* 横並びにする */
4593
justify-content: center; /* 中央寄せ */
4694
gap: 15px; /* アイコン間の間隔 */

works/index.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<link rel="canonical" href="https://098orin.github.io/works/">
7+
<link rel="stylesheet" href="../style.css">
8+
<title>TOP | 098orin.github.io</title>
9+
<!-- Open Graph -->
10+
<meta property="og:url" content="https://098orin.github.io/works/">
11+
<meta property="og:title" content="TOP | 098orin.github.io">
12+
<meta property="og:description" content="098orin.github.io">
13+
<!-- end Open Graph -->
14+
</head>
15+
<body>
16+
<main>
17+
<nav class="main-nav">
18+
<ul>
19+
<li><a href="https://098orin.github.io/">TOP</a></li>
20+
<li><a href="https://098orin.github.io/works/">WORKS</a></li>
21+
</ul>
22+
</nav>
23+
<h1>Works</h1>
24+
<p>私のプロジェクト</p>
25+
<h3>GitHub</h3>
26+
<a href="https://github.com/098orin/tw-extensions" target="_blank" rel="noopener noreferrer">TurboWarp extensions</a>
27+
</html>

0 commit comments

Comments
 (0)