StartScreen erstellt
This commit is contained in:
		
							
								
								
									
										52
									
								
								css/startScreenLayout.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								css/startScreenLayout.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
body, h1, button {
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    font-family: 'Arial', sans-serif;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    height: 100vh;
 | 
			
		||||
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#spielRaum {
 | 
			
		||||
    text-align: center;
 | 
			
		||||
    padding: 20px;
 | 
			
		||||
    background-color: #ffffffcc;
 | 
			
		||||
    border-radius: 15px;
 | 
			
		||||
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
h1 {
 | 
			
		||||
    font-size: 2.5em;
 | 
			
		||||
    color: #333;
 | 
			
		||||
    margin-bottom: 20px;
 | 
			
		||||
    text-shadow: 1px 1px 2px #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
button {
 | 
			
		||||
    background-color: #4CAF50;
 | 
			
		||||
    color: white;
 | 
			
		||||
    border: none;
 | 
			
		||||
    padding: 15px 30px;
 | 
			
		||||
    border-radius: 25px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    font-size: 1.2em;
 | 
			
		||||
    transition: background-color 0.3s, transform 0.3s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
button:hover {
 | 
			
		||||
    background-color: #45a049;
 | 
			
		||||
    transform: scale(1.1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
button:focus {
 | 
			
		||||
    outline: none;
 | 
			
		||||
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								js/startjs.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								js/startjs.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
const startButton = document.querySelector("#startScreen button");
 | 
			
		||||
 | 
			
		||||
startButton.addEventListener("click", ()=>{
 | 
			
		||||
    window.location.href = 'index.html';
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										20
									
								
								startScreen.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								startScreen.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="de">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="css/startScreenLayout.css">
 | 
			
		||||
    <title>MathRunner</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <div id="spielRaum">
 | 
			
		||||
        <div id="startScreen">
 | 
			
		||||
            <h1>Willkommen zu MathRunner</h1>
 | 
			
		||||
            <button id="startButton">Start</button>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <script src="js/funktionen.js"></script>
 | 
			
		||||
    <script src="js/startjs.js"></script>
 | 
			
		||||
    <script src="js/allg.js"></script>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user