summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-01-02 01:42:01 +0500
committerpryazha <pryadeiniv@mail.ru>2025-01-02 01:42:01 +0500
commit1b1976a337c8e2923b998e8cb9764818251ab563 (patch)
tree7fce507343ecf69e38d2e5c6efb2070805e13f61
parent132c4d7bc3e3238cfdf8401a75963e0a58bb9420 (diff)
change layout and navigation
-rw-r--r--index.html29
-rw-r--r--links.html27
-rw-r--r--style.css12
3 files changed, 58 insertions, 10 deletions
diff --git a/index.html b/index.html
index 3a5f1e2..2ede705 100644
--- a/index.html
+++ b/index.html
@@ -7,15 +7,24 @@
<meta charset="utf-8">
</head>
<body>
- <header>
- <h1>Hello, this is <em>my</em> website.</h1>
- Thanks for stopping by!
- </header>
- <h2>Well...</h2>
- <p>nya~</p>
- <img src="images/maxwell.gif" />
- <footer>
- <a href="https://git.pwyazha.ru">git</a>
- </footer>
+ <div id="flex">
+ <main>
+ <header>
+ <h1>Hello, this is my website.</h1>
+ Thanks for stopping by!
+ </header>
+ <h2>Well...</h2>
+ <p>nya~</p>
+ <img src="images/maxwell.gif"/>
+ <footer>
+ <p>This is a footer.<p>
+ </footer>
+ </main>
+ <nav>
+ <ul>
+ <li><h3><a href="links.html">links</a></h3></li>
+ </ul>
+ </nav>
+ </div>
</body>
</html>
diff --git a/links.html b/links.html
new file mode 100644
index 0000000..b83ba1c
--- /dev/null
+++ b/links.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>pwyazha</title>
+ <link rel="icon" type="image/gif" href="images/maxwell.gif">
+ <link rel="stylesheet" type="text/css" href="style.css">
+ <meta charset="utf-8">
+ </head>
+ <body>
+ <div id="flex">
+ <main>
+ <header>
+ <h1>Some useful links</h1>
+ </header>
+ <h2><a href="https://git.pwyazha.ru">git</a></h2>
+ <footer>
+ <p>This is a footer.</p>
+ </footer>
+ </main>
+ <nav>
+ <ul>
+ <li><h3><a href="index.html">Home</a></h3></li>
+ </ul>
+ </nav>
+ </div>
+ </body>
+</html>
diff --git a/style.css b/style.css
index 217205e..3f70ca5 100644
--- a/style.css
+++ b/style.css
@@ -11,6 +11,14 @@ h1, h2, h3 {
line-height: 1.2;
}
+#flex {
+ display: flex;
+}
+
+main {
+ order: 1;
+}
+
img {
width: 100%;
}
@@ -19,3 +27,7 @@ footer {
text-align: center;
padding: 30px 0;
}
+
+nav {
+ order: 2;
+}