Skip to content
The Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

Make Inkbar 95's homepage, with the begin button that on hover shows a menu of "Start…

  1. User

    Make Inkbar 95's homepage, with the begin button that on hover shows a menu of "Start game" which plays the Progressbar gamemode. it is in HTML code and JS code and CSS code in the entire HTML.

  2. Assistant
    <!-- CSS -->
    <style>
    	body {
    		margin: 0;
    		padding: 0;
    		background-color: #212121;
    	}
    
    	.container {
    		height: 100vh;
    		display: flex;
    		flex-direction: column;
    		align-items: center;
    		justify-content: center;
    	}
    
    	h1 {
    		font-size: 4rem;
    		color: white;
    		margin-bottom: 2rem;
    	}
    
    	button {
    		padding: 1rem 2rem;
    		border: none;
    		border-radius: 2rem;
    		background-color: #4CAF50;
    		color: white;
    		font-size: 1.5rem;
    		cursor: pointer;
    		box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    		transition: all 0.3s ease;
    	}
    
    	button:hover {
    		transform: translateY(-0.2rem);
    		box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
    	}
    
    	button::before {
    		content: "";
    		display: block;
    		position: absolute;
    		top: 0;
    		left: 0;
    		width: 100%;
    		height: 100%;
    		background-color: rgba(0, 0, 0, 0.1);
    		opacity: 0;
    		transition: all 0.3s ease;
    	}
    
    	button:hover::before {
    		opacity: 1;
    	}
    
    	.menu {
    		position: absolute;
    		top: 5rem;
    		right: 3rem;
    		display: none;
    		background-color: #4CAF50;
    		padding: 1rem;
    		border-radius: 1rem;
    		box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    	}
    
    	.menu a {
    		display: block;
    		color: white;
    		padding: 0.5rem 1rem;
    		font-size: 1.2rem;
    	}
    
    	.menu a:hover {
    		background-color: rgba(255, 255, 255, 0.2);
    	}
    
    	button:hover + .menu {
    		display: block;
    	}
    </style>
    
    <!-- HTML -->
    <div class="container">
    	<h1>Inkbar 95</h1>
    	<button>Begin</button>
    	<div class="menu">
    		<a href="#" onclick="startGame()">Start game</a>
    	</div>
    </div>
    
    <!-- JS -->
    <script>
    	function startGame() {
    		// Code for starting Progressbar gamemode
    	}
    </script>