Compare commits

..

4 Commits

Author SHA1 Message Date
Ionel Andrei Cataon
933df5dc5f saing work 2026-01-15 19:13:31 +02:00
Ionel Andrei Cataon
9c64748f2f Updated 2026-01-15 19:09:39 +02:00
002d53928a Update README.md 2025-12-02 18:10:36 +00:00
edea8a9bd1 Merge pull request '# Acesta este un nou capitol' (#1) from feature_001 into main
Reviewed-on: ionelcataon/first_gitea#1
2025-12-02 17:31:41 +00:00
11 changed files with 486 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/
styles.css
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

5
Project/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM nginx:1.29.4
WORKDIR /usr/share/nginx/html
COPY project.html index.html
EXPOSE 80

248
Project/project.html Normal file
View File

@@ -0,0 +1,248 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Professional Calculator</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
padding: 40px;
max-width: 600px;
width: 100%;
}
h1 {
text-align: center;
color: #667eea;
margin-bottom: 10px;
font-size: 2.5em;
}
.progress {
text-align: center;
color: #666;
margin-bottom: 30px;
font-size: 1.1em;
}
.equation-box {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
border-radius: 15px;
text-align: center;
margin-bottom: 30px;
}
.equation-box h2 {
font-size: 2.5em;
margin-bottom: 10px;
}
.input-group {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
#answer {
flex: 1;
padding: 15px;
font-size: 1.1em;
border: 2px solid #667eea;
border-radius: 10px;
outline: none;
transition: border-color 0.3s;
}
#answer:focus {
border-color: #764ba2;
}
button {
padding: 15px 30px;
font-size: 1.1em;
background: #667eea;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
transition: background 0.3s;
font-weight: bold;
}
button:hover {
background: #764ba2;
}
.feedback {
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
text-align: center;
font-size: 1.1em;
font-weight: bold;
min-height: 80px;
display: flex;
flex-direction: column;
justify-content: center;
}
.feedback.correct {
background: #d4edda;
color: #155724;
border: 2px solid #28a745;
}
.feedback.incorrect {
background: #f8d7da;
color: #721c24;
border: 2px solid #f5c6cb;
}
.fun-fact {
margin-top: 10px;
font-style: italic;
font-size: 0.95em;
opacity: 0.9;
}
.completion {
text-align: center;
padding: 30px;
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
color: white;
border-radius: 15px;
display: none;
}
.completion h2 {
font-size: 2em;
margin-bottom: 15px;
}
.completion button {
background: white;
color: #28a745;
margin-top: 20px;
}
.completion button:hover {
background: #f0f0f0;
}
</style>
</head>
<body>
<div class="container">
<h1>🧮 Professional Calculator</h1>
<div class="progress">Question <span id="current">1</span> of 10</div>
<div id="game">
<div class="equation-box">
<h2 id="equation"></h2>
</div>
<div id="feedback" class="feedback" style="display: none;"></div>
<div class="input-group">
<input type="number" id="answer" placeholder="Enter your answer" autocomplete="off">
<button onclick="checkAnswer()">Submit</button>
</div>
</div>
<div id="completion" class="completion">
<h2>🎉 Congratulations!</h2>
<p>You've completed all 10 equations!</p>
<button onclick="location.reload()">Play Again</button>
</div>
</div>
<script>
const equations = [
{ problem: '25 + 15', answer: 40, fact: '40 is the number of days and nights of the Great Flood in the Bible!' },
{ problem: '100 - 37', answer: 63, fact: '63 is the atomic number of Europium, a rare earth element!' },
{ problem: '12 × 6', answer: 72, fact: '72 is the number of virgins promised in Islamic tradition!' },
{ problem: '144 ÷ 12', answer: 12, fact: '12 is one of the most significant numbers - 12 months, 12 hours, 12 apostles!' },
{ problem: '7 × 8', answer: 56, fact: '56 is the number of playing cards in a standard deck plus jokers!' },
{ problem: '200 - 85', answer: 115, fact: '115 is the atomic number of Moscovium, a synthetic element!' },
{ problem: '9 × 9', answer: 81, fact: '81 is a perfect square - the fourth power of 3!' },
{ problem: '256 ÷ 4', answer: 64, fact: '64 is the number of squares on a chessboard!' },
{ problem: '50 + 50', answer: 100, fact: '100 is a perfect square and the base for our decimal system!' },
{ problem: '99 - 54', answer: 45, fact: '45 is a triangular number - the sum of 1+2+3+4+5+6+7+8+9!' }
];
let currentQuestion = 0;
const answerInput = document.getElementById('answer');
const feedbackDiv = document.getElementById('feedback');
function loadQuestion() {
const eq = equations[currentQuestion];
document.getElementById('equation').textContent = eq.problem + ' = ?';
document.getElementById('current').textContent = currentQuestion + 1;
answerInput.value = '';
answerInput.focus();
feedbackDiv.style.display = 'none';
}
function checkAnswer() {
const userAnswer = parseInt(answerInput.value);
const correctAnswer = equations[currentQuestion].answer;
if (isNaN(userAnswer)) {
feedbackDiv.className = 'feedback incorrect';
feedbackDiv.textContent = '⚠️ Please enter a valid number!';
feedbackDiv.style.display = 'flex';
return;
}
if (userAnswer === correctAnswer) {
feedbackDiv.className = 'feedback correct';
feedbackDiv.innerHTML = `✅ Correct!<div class="fun-fact">💡 ${equations[currentQuestion].fact}</div>`;
feedbackDiv.style.display = 'flex';
currentQuestion++;
if (currentQuestion < equations.length) {
setTimeout(loadQuestion, 3000);
} else {
setTimeout(showCompletion, 3000);
}
} else {
feedbackDiv.className = 'feedback incorrect';
feedbackDiv.textContent = '❌ Study some more! Try again.';
feedbackDiv.style.display = 'flex';
answerInput.value = '';
}
}
function showCompletion() {
document.getElementById('game').style.display = 'none';
document.getElementById('completion').style.display = 'block';
}
answerInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') checkAnswer();
});
loadQuestion();
</script>
</body>
</html>

View File

@@ -1,3 +1,7 @@
<<<<<<< HEAD
Fara modificari
=======
Asa functioneaza[develop 7f2020f] Changes Asa functioneaza[develop 7f2020f] Changes
1 file changed, 10 insertions(+) 1 file changed, 10 insertions(+)
create mode 100644 myWorkspace create mode 100644 myWorkspace
>>>>>>> c23a81d8e13da84a423b1a32ad9e7411675d5fba

View File

@@ -0,0 +1,22 @@
FROM ubuntu:24.04
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y \
net-tools \
vim \
ca-certificates \
iputils-ping \
iputils-tracepath \
iproute2 \
curl \
wget \
git \
telnet \
dnsutils
RUN useradd -ms /bin/bash netops
USER netops
WORKDIR /home/netops

4
bandit.txt Normal file
View File

@@ -0,0 +1,4 @@
SSH info:
Host: bandit5@bandit.labs.overthewire.org
PW: 4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw

0
dockerUS/Dockerfile Normal file
View File

186
dockerUS/index.html Normal file
View File

@@ -0,0 +1,186 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News - January 15, 2026</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 2rem 1rem;
text-align: center;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
header p {
font-size: 1.1rem;
opacity: 0.9;
}
main {
max-width: 900px;
margin: 2rem auto;
padding: 0 1rem;
}
article {
background: white;
margin-bottom: 2rem;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
article:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
article h2 {
color: #667eea;
margin-bottom: 0.8rem;
font-size: 1.5rem;
}
article p {
color: #555;
margin-bottom: 1rem;
line-height: 1.8;
}
article a {
display: inline-block;
background-color: #667eea;
color: white;
padding: 0.6rem 1.2rem;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
font-weight: 500;
}
article a:hover {
background-color: #764ba2;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 2rem 1rem;
margin-top: 3rem;
}
footer p {
margin: 0.5rem 0;
}
@media (max-width: 768px) {
header h1 {
font-size: 1.8rem;
}
article {
padding: 1rem;
}
article h2 {
font-size: 1.2rem;
}
}
</style>
</head>
<body>
<header>
<h1>Daily News</h1>
<p>Top 10 Stories - January 15, 2026</p>
</header>
<main>
<article>
<h2>Global Climate Summit Reaches Historic Agreement</h2>
<p>World leaders have unanimously approved a groundbreaking climate accord aimed at accelerating carbon neutrality by 2040, marking a significant milestone in international environmental cooperation.</p>
<a href="#article1">Read More</a>
</article>
<article>
<h2>AI Breakthrough in Medical Diagnostics</h2>
<p>A new artificial intelligence system has demonstrated 99% accuracy in early cancer detection, promising to revolutionize medical screening processes worldwide.</p>
<a href="#article2">Read More</a>
</article>
<article>
<h2>Space Exploration: First Crewed Mars Base Operational</h2>
<p>The international space community celebrates as the first permanently inhabited base on Mars becomes fully operational with 12 astronauts from various nations.</p>
<a href="#article3">Read More</a>
</article>
<article>
<h2>Quantum Computing Milestone Achieved</h2>
<p>Researchers have successfully demonstrated the first practical quantum computer capable of solving real-world problems faster than classical supercomputers.</p>
<a href="#article4">Read More</a>
</article>
<article>
<h2>Global Economic Recovery Accelerates</h2>
<p>International markets show strong growth as emerging economies lead recovery efforts, with GDP growth exceeding predictions across all major regions.</p>
<a href="#article5">Read More</a>
</article>
<article>
<h2>Revolutionary Battery Technology Extends EV Range</h2>
<p>A new solid-state battery design allows electric vehicles to travel over 1000 miles on a single charge, accelerating global automotive transformation.</p>
<a href="#article6">Read More</a>
</article>
<article>
<h2>Breakthrough in Renewable Energy Storage</h2>
<p>Scientists announce a new method for storing renewable energy that is 40% more efficient than existing solutions, addressing the intermittency challenge.</p>
<a href="#article7">Read More</a>
</article>
<article>
<h2>Global Education Initiative Bridges Digital Divide</h2>
<p>A new international program provides free high-speed internet access to over 500 million students in underserved communities across 150 countries.</p>
<a href="#article8">Read More</a>
</article>
<article>
<h2>Major Disease Eradication Campaign Succeeds</h2>
<p>Public health officials announce the successful eradication of a major infectious disease, marking only the second disease to be completely eliminated in human history.</p>
<a href="#article9">Read More</a>
</article>
<article>
<h2>Sustainable Agriculture Transforms Food Production</h2>
<p>New agricultural techniques increase crop yields by 60% while reducing water consumption and environmental impact, offering solutions to global food security challenges.</p>
<a href="#article10">Read More</a>
</article>
</main>
<footer>
<p>&copy; 2026 Daily News. All rights reserved.</p>
<p>Contact us | Privacy Policy | Terms of Service</p>
</footer>
</body>
</html>

1
first_gitea Submodule

Submodule first_gitea added at c23a81d8e1

Submodule first_gitea.worktrees/copilot-worktree-2026-01-15T14-43-39 added at c23a81d8e1

7
it_school.code-workspace Normal file
View File

@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}