Skip to content

Commit

Permalink
Merge branch 'main' into navbarmodify
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkatty authored Oct 13, 2024
2 parents cc758fe + e6c503a commit fe7a906
Show file tree
Hide file tree
Showing 9 changed files with 675 additions and 19 deletions.
94 changes: 94 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}

.container {
width: 80%;
margin: 20px auto;
padding: 20px;
background: white;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}

h1,
h2 {
text-align: center;
color: #2C3E50;
}

p {
line-height: 1.6;
margin-bottom: 20px;
text-align: justify;
}

.banner {
background-color: #7ab7df;
color: white;
padding: 10px 0;
margin-bottom: 20px;
text-align: center;
border-radius: 8px 8px 0 0;
}

.banner h1 {
margin: 0;
font-size: 2em;
}

.section {
margin: 20px 0;
}

/* Style for the cards */
.cards {
display: flex;
justify-content: space-around;
margin-top: 20px;
}

.card {
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 10px;
padding: 20px;
width: 30%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
margin: 0 10px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.card h3 {
color: #2C3E50;
margin-bottom: 10px;
}

.card p {
color: #555;
font-size: 1em;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
.cards {
flex-direction: column;
align-items: center;
}

.card {
width: 80%;
margin-bottom: 20px;
}
}
82 changes: 73 additions & 9 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Math 4 Python</title>
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">

<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
Expand Down Expand Up @@ -60,10 +62,18 @@
margin: 20px 0;
}
</style>
<link rel="stylesheet" href="hamburger_menu.css">

<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />

</head>
<body>

<div class="navbar">
<a class="logo" href="index.html"><img src="logonew.svg" height="40" width="40" alt="Math 4 Python Logo"></a>

<h1 class="title">MathPyLearn</h1>
<div class="theme-toggle-wrapper">
<button style="cursor: pointer;" id="theme-toggle">
Expand All @@ -73,6 +83,17 @@ <h1 class="title">MathPyLearn</h1>
</div>

<div class="nav-links">

<div class="navbar">
<!-- Hamburger Menu for Mobile -->
<div class="hamburger" id="hamburger">
<div></div>
<div></div>
<div></div>
</div>

<!-- Hamburger Menu for Desktop -->
<div class="nav-links" id="nav-links">
<a href="index.html">Home</a>
<a href="about.html" class="active">About</a>
<a href="learn.html">Learn</a>
Expand All @@ -85,28 +106,71 @@ <h1 class="title">MathPyLearn</h1>
</div>



<div class="container">

<div class="about-container">

<div class="banner">
<h1>About Math 4 Python</h1>
<h1 class="about-h1">About Math 4 Python</h1>
</div>

<div class="section">
<h2>Our Mission</h2>
<p>Welcome to Math 4 Python, where we blend the art of Python programming with the science of mathematics. Our mission is to provide a comprehensive learning platform that enhances your coding skills while deepening your understanding of mathematical concepts and problem-solving techniques.</p>
<p>At Math 4 Python, we are dedicated to combining the power of Python programming with key mathematical
concepts. Our platform focuses on helping learners enhance their problem-solving skills through
interactive coding experiences that emphasize math applications.</p>
</div>
<div class="section">
<h2>What We Offer</h2>
<p>At Math 4 Python, we offer a structured learning path that starts with the basics of Python programming and gradually incorporates complex mathematical problems. Our content includes interactive lessons, practical exercises, and real-world applications to help you master both coding and math.</p>
<h2>Who Is It For?</h2>
<p>Whether you are a beginner in Python or a math enthusiast looking to apply coding to real-world problems,
Math 4 Python offers an engaging and structured learning path. Our platform caters to students,
professionals, and hobbyists aiming to build or enhance their coding and mathematical skills.</p>
</div>

<div class="section">
<h2>Why Learn With Us?</h2>
<p>Our unique approach combines theoretical knowledge with hands-on practice. By learning Python through mathematical problems, you gain a dual advantage: proficiency in a powerful programming language and a solid foundation in math. This combination is essential for careers in data science, engineering, finance, and more.</p>
<h2>What We Offer</h2>
<div class="cards">
<div class="card">
<h3>Interactive Lessons</h3>
<p>Learn Python through hands-on coding exercises that reinforce key programming concepts.</p>
</div>
<div class="card">
<h3>Math-focused Challenges</h3>
<p>Apply Python to solve mathematical problems and improve your coding and analytical abilities.</p>
</div>
<div class="card">
<h3>Real-time Feedback</h3>
<p>Get instant feedback on your code to track your progress and stay on the right learning path.</p>
</div>
</div>
</div>

<div class="section">
<h2>Contact Us</h2>
<p>If you have any questions or would like more information, feel free to reach out to us at <a href="https://magicmath.co/">https://magicmath.co/</a>.</p>
<h2>Why Choose Math 4 Python?</h2>
<p>We provide a unique approach to learning by blending coding with math, offering practical, real-world
challenges that make the learning process engaging and effective.</p>

<div class="about-section">
<h2 class="about-h2">Our Mission</h2>
<p class="about-p">Welcome to Math 4 Python, where we blend the art of Python programming with the science of mathematics. Our mission is to provide a comprehensive learning platform that enhances your coding skills while deepening your understanding of mathematical concepts and problem-solving techniques.</p>
</div>
<div class="about-section">
<h2 class="about-h2">What We Offer</h2>
<p class="about-p">At Math 4 Python, we offer a structured learning path that starts with the basics of Python programming and gradually incorporates complex mathematical problems. Our content includes interactive lessons, practical exercises, and real-world applications to help you master both coding and math.</p>
</div>
<div class="about-section">
<h2 class="about-h2">Why Learn With Us?</h2>
<p class="about-p">Our unique approach combines theoretical knowledge with hands-on practice. By learning Python through mathematical problems, you gain a dual advantage: proficiency in a powerful programming language and a solid foundation in math. This combination is essential for careers in data science, engineering, finance, and more.</p>
</div>
<div class="about-section">
<h2 class="about-h2">Contact Us</h2>
<p class="about-p">If you have any questions or would like more information, feel free to reach out to us at <a class="about-link" href="https://magicmath.co/">https://magicmath.co/</a>.</p>

</div>
</div>

<script src="script.js"></script>
</body>

</html>
23 changes: 22 additions & 1 deletion challenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
<title>Math 4 Python - Challenges</title>
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="hamburger_menu.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono&display=swap" rel="stylesheet">
</head>
<body id="challenge">

<div class="navbar">
<a class="logo" href="index.html"><img src="logonew.svg" height="40" width="40" alt="Math 4 Python Logo"></a>

<h1 class="title">MathPyLearn</h1>
<div class="theme-toggle-wrapper">
<button style="cursor: pointer;" id="theme-toggle">
Expand All @@ -23,6 +25,17 @@ <h1 class="title">MathPyLearn</h1>
</div>

<div class="nav-links">

<div class="navbar">
<!-- Hamburger Menu for Mobile -->
<div class="hamburger" id="hamburger">
<div></div>
<div></div>
<div></div>
</div>

<!-- Hamburger Menu for Desktop -->
<div class="nav-links" id="nav-links">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="learn.html">Learn</a>
Expand All @@ -39,6 +52,14 @@ <h1 class="title">MathPyLearn</h1>
<h2><i class="fas fa-trophy"></i> Python Challenges</h2>
<p>Welcome to the challenges section! Test your skills with various coding challenges.</p>

<div class="progress-container">
<h3>Challenge Progress</h3>
<div class="progress-bar">
<div id="challenge-progress" class="progress"></div>
</div>
<button id="challenge-reset-btn" class="reset-btn">Reset Progress</button>
</div>

<div class="challenge-container">
<ul id="challenge-list">
<li><a href="#" onclick="viewChallenge('Basic Math Challenge')"><i class="fas fa-calculator"></i> Basic Math Challenge</a></li>
Expand Down
16 changes: 15 additions & 1 deletion faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
<title>Math 4 Python - FAQs</title>
<link rel="shortcut icon" href="Untitled design1.ico" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="hamburger_menu.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:wght@400;700&display=swap" rel="stylesheet">

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Mono&display=swap" rel="stylesheet">
</head>
<body id="faq">

<div class="navbar">
<a class="logo" href="index.html"><img src="logonew.svg" height="40" width="40" alt="Math 4 Python Logo"></a>

<h1 class="title">MathPyLearn</h1>
<div class="theme-toggle-wrapper">
<button style="cursor: pointer;" id="theme-toggle">
Expand All @@ -24,6 +26,18 @@ <h1 class="title">MathPyLearn</h1>
</div>

<div class="nav-links">

<div class="navbar">
<!-- Hamburger Menu for Mobile -->
<div class="hamburger" id="hamburger">
<div></div>
<div></div>
<div></div>
</div>

<!-- Hamburger Menu for Desktop -->
<div class="nav-links" id="nav-links">

<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="learn.html" >Learn</a>
Expand Down
76 changes: 76 additions & 0 deletions hamburger_menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

.navbar {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 10px 20px;
background-color: #2c3e50;
color: white;
}

.nav-links {
display: flex;
gap: 15px;
}

.nav-links a {
color: white;
text-decoration: none;
padding: 8px 12px;
border-radius: 4px;
}

.nav-links a.active,
.nav-links a:hover {
background-color: #575757;
}

.theme-toggle-wrapper {
margin-right: 10px;
}

.logo img {
width: 40px;
}

/* Hamburger Menu Styles */
.hamburger {
display: none;
flex-direction: column;
gap: 4px;
cursor: pointer;
}

.hamburger div {
width: 25px;
height: 3px;
background-color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
.nav-links {
display: none;
flex-direction: column;
gap: 10px;
position: absolute;
top: 60px;
left: 20px;
background-color: #333;
padding: 10px;
border-radius: 8px;
}

.navbar {
position: relative;
}

.hamburger {
display: flex;
}

.nav-links.show {
display: flex;
}
}
Loading

0 comments on commit fe7a906

Please sign in to comment.