Site1.Master

דף זה הוא דף מאסטר.
 avatar
user_2706180
html
a month ago
4.4 kB
1
Indexable
Never
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="YoadMadrid.Pages.Site1" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <style>
        /* Global styles */
        body {
            background-color: #f7fafc;
            margin: 0;
            font-family: Arial, sans-serif;
        }

        nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 19.2px;
            padding-bottom: 10px;
            padding-top: 10px;
            background-color: #fff;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
            border-bottom: black solid 2px;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin-right: auto;
            margin-left: auto; 
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-container {
            max-width: 50px; 
            max-height: 50px; 
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 180px;
        }

        .logo-container img {
            max-width: 100%;
            max-height: 100%;
            cursor: pointer;
        }

        
        nav a {
            text-decoration: none;
            color: #333;
            background-color: transparent;
            padding: 6.4px 12.8px;
            font-weight: bold;
            font-size: 16px;
            border-radius: 12px;
            transition: color 0.3s, background-color 0.3s;
        }

        
        nav a:hover {
            background-color: #bfdbfe;
            color: #3b82f6;
        }

        nav a.no-blue:hover {
            background-color: white;
        }

        .right-buttons a {
            color: #fff;
            background-color: #000;
            padding: 9.6px 16px;
            font-weight: bold;
            font-size: 16px;
            border-radius: 12px;
            margin-left: 6px;
            transition: color 0.3s, background-color 0.3s;
        }

        .right-buttons a:hover {
            background-color: #d1d5db;
            color: #3b82f6;
        }

        .right-buttons {
            margin-left: 24px;
        }
    </style>

    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>

</head>
<body>
    <nav style="position: relative;">
        
        <a class="logo-container no-blue" href="/Pages/MainMaster.aspx">
           
            <img src="/Images/realogo.png" alt="Clickable Logo">
        </a>
        <ul>
        
            <li runat="server" id="barHistory"><a href="HistoryMaster.aspx"><b>History</b></a></li>
            <li runat="server" id="barPlayers"><a href="PlayersMaster.aspx"><b>Players</b></a></li>
            <li runat="server" id="barManagers"><a href="ManagersMaster.aspx"><b>Management</b></a></li>
            <li runat="server" id="barTrophies"><a href="TrophiesMaster.aspx"><b>Trophies</b></a></li>
            <li runat="server" id="barRecords"><a href="RecordsMaster.aspx"><b>Records</b></a></li>     
            <li runat="server" id="barStadium"><a href="StadiumMaster.aspx"><b>Stadium</b></a></li>
            <li runat="server" id="barFans"><a href="FansMaster.aspx"><b>Fans</b></a></li>  
            <li runat="server" id="barAdmin"><a style="color: blue" href="AdminMaster.aspx"><b>Admin</b></a></li>
        </ul>
        <div style="color: black; font-size: 30px; position: absolute; top: 19px; right: 230px; font-family: Bahnschrift" id="welcometext" runat="server">
            <%= Session["Username"] == null ? "Join Here ➜" : "Welcome " + Session["Username"] + "!" %>
        </div> 
        <div class="right-buttons">
            <span id="notloggedin" runat="server"><a href="RegisterMaster.aspx">Register</a>
<a href="LoginMaster.aspx">Log In</a></span>
            <a id="loggedin" href="Logout.aspx" runat="server">Log out</a>
            
        </div>
    </nav>

    
    
    <div>

            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
    </div>

</body>
</html>
            
Leave a Comment