Skip to content

Commit

Permalink
Serverless navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed May 20, 2023
1 parent 78830b8 commit 1a7745a
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 84 deletions.
11 changes: 9 additions & 2 deletions capitello-corinzio.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,15 @@
</style>
</head>
<body>
<!-- Header -->
<include-html path="header.html"></include-html>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="capitello-dorico.html">Doric style</a></li>
<li><a href="capitello-ionico.html">Ionic style</a></li>
<li class="active"><a href="capitello-corinzio.html">Corintian style</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>

<div class="intro">
<h1> <a href="index.html"> CORINTIAN STYLE</a>
Expand Down
10 changes: 9 additions & 1 deletion capitello-dorico.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@
</head>
<body>
<!-- Header -->
<include-html path="header.html"></include-html>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li class="active"><a href="capitello-dorico.html">Doric style</a></li>
<li><a href="capitello-ionico.html">Ionic style</a></li>
<li><a href="capitello-corinzio.html">Corintian style</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>

<div class="intro">
<h1><a href="index.html"> DORIC STYLE</a></h1>
Expand Down
10 changes: 9 additions & 1 deletion capitello-ionico.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@
</head>
<body>
<!-- Header -->
<include-html path="header.html"></include-html>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="capitello-dorico.html">Doric style</a></li>
<li class="active"><a href="capitello-ionico.html">Ionic style</a></li>
<li><a href="capitello-corinzio.html">Corintian style</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>

<div class="intro">
<h1><a href="index.html"> IONIC STYLE</a></h1>
Expand Down
10 changes: 9 additions & 1 deletion contacts.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
<link rel="shortcut icon" href="images/instagram_icon.webp">
</head>
<body>
<include-html path="header.html"></include-html>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="capitello-dorico.html">Doric style</a></li>
<li><a href="capitello-ionico.html">Ionic style</a></li>
<li><a href="capitello-corinzio.html">Corintian style</a></li>
<li class="active"><a href="contacts.html">Contacts</a></li>
</ul>
</nav>

<h1><pre>Contacts</pre></h1><hr>

Expand Down
43 changes: 0 additions & 43 deletions header.html

This file was deleted.

10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<include-html path="header.html"></include-html>
<nav>
<ul>
<li class="active"><a href="index.html">Home</a></li>
<li><a href="capitello-dorico.html">Doric style</a></li>
<li><a href="capitello-ionico.html">Ionic style</a></li>
<li><a href="capitello-corinzio.html">Corintian style</a></li>
<li><a href="contacts.html">Contacts</a></li>
</ul>
</nav>

<h1><pre>Collector's Shop</pre></h1><hr>
<div class="rectangles">
Expand Down
35 changes: 0 additions & 35 deletions script/include-html.js

This file was deleted.

36 changes: 36 additions & 0 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,42 @@ tbody tr td img {
border-radius: 10px;
}

/* Navbar style */
nav ul {
display: flex;
flex-direction: horizontal;
justify-content: space-around;
align-items: center;
height: 6vw;
width: 100%;
margin-left: auto;
margin-right: auto;
padding: 0;
border-radius: 1vw;
border-style: groove;
border-width: 0.2vw;
background-color: rgb(255, 228, 194);
}
@media screen and (max-width: 800px) {
nav ul {
flex-direction: row;
margin-left: auto;
margin-right: auto;
list-style-type: none;
}
}
nav ul li {
font-size: 2vw;
background-color: beige;
border-radius: 1vw;
padding: 1vw;
border-style: ridge;
border-color: burlywood;
}
nav ul li.active {
background-color: rgb(255, 193, 118);
}

/* CSS per computer */
@media screen and (min-width: 800px) {
div.intro, div.outro {
Expand Down

0 comments on commit 1a7745a

Please sign in to comment.