Compare commits
18 Commits
main
...
933df5dc5f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
933df5dc5f | ||
|
|
9c64748f2f | ||
|
|
c23a81d8e1 | ||
|
|
279a772162 | ||
|
|
f27dab6748 | ||
|
|
1a9b9aaf07 | ||
|
|
71ee1e9f9e | ||
|
|
3d601f12d2 | ||
|
|
e097a867ff | ||
|
|
7402fbf688 | ||
|
|
4a1a665fde | ||
|
|
88c2c52751 | ||
|
|
ac323963e0 | ||
|
|
9f9aeb91b9 | ||
|
|
7f2020f764 | ||
| e92e4dd018 | |||
| c71b367b1f | |||
|
|
c89f80a17e |
6
Bash_scripting/1st_script.sh
Executable file
6
Bash_scripting/1st_script.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
WORD="Hello world"
|
||||
echo $WORD
|
||||
echo $USER
|
||||
|
||||
|
||||
17
Bash_scripting/autogit.sh
Executable file
17
Bash_scripting/autogit.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to add all changes, commit with the message "updated", and push to repo.
|
||||
|
||||
git add .
|
||||
|
||||
# Check if there are changes to commit
|
||||
if git diff-index --quiet HEAD --; then
|
||||
echo "No changes to commit."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git commit -m "updated"
|
||||
|
||||
git push
|
||||
|
||||
echo "Changes committed and pushed successfully!"
|
||||
78
Bash_scripting/myproject.sh
Executable file
78
Bash_scripting/myproject.sh
Executable file
@@ -0,0 +1,78 @@
|
||||
#!/bin/bash
|
||||
|
||||
RED='\e[1;31m'
|
||||
GREEN='\e[1;32m'
|
||||
YELLOW='\e[1;33m'
|
||||
BLUE='\e[1;34m'
|
||||
NC='\e[0m'
|
||||
|
||||
user=$(whoami)
|
||||
echo -e "Welcome, ${BLUE}$user${NC}. Please enjoy this short presentation! "
|
||||
|
||||
read -p "Please enter a number:" num
|
||||
if ((num % 2 == 0))
|
||||
then
|
||||
echo "$num is even"
|
||||
|
||||
else
|
||||
echo "$num is odd"
|
||||
|
||||
fi
|
||||
|
||||
attempts=3
|
||||
for ((i = 0; i < 3; i++, --attempts))
|
||||
do
|
||||
read -p "You have $attempts attempts left to find the secret recipe, so please enter another number between 1 and 10: " num2
|
||||
secret=1
|
||||
|
||||
if ((num2 == secret))
|
||||
then
|
||||
i=3
|
||||
echo -e "${GREEN}You have found the secret recipe of Coca Cola!! ^_^${NC}"
|
||||
|
||||
else
|
||||
echo -e "${YELLOW}You were so close to finding the secret recipe :(${NC}"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
done
|
||||
|
||||
echo -e "${BLUE}Let's try something else. Please answer with a *yes* or *no*.${NC}"
|
||||
yes=0
|
||||
no=1
|
||||
|
||||
for ((j = 0; j <= 2; ++j))
|
||||
do
|
||||
|
||||
if ((j == 0))
|
||||
then
|
||||
read -p "Are there any fish with legs?: " Answer
|
||||
if ((Answer == 0))
|
||||
then
|
||||
echo -e "${GREEN}Your answer is correct! Mudskippers are the champions of land-walking fish, but we also have the Lungfish, Walking Catfish, Sea Robins, Frogfish or Handifsh.${NC} Visit: https://factanimal.com/wp-content/uploads/2023/07/mudskipper-breathing.jpg"
|
||||
else
|
||||
echo -e "${RED}Your answer is not correct, but don't worry, you are not the only one :D.${NC} Visit: https://encrypted-tbn0.gstatic.com/licensed-image?q=tbn:ANd9GcR9laMdCqTkfxW005yPkIED-dHsWvq3IcjPToZi130LpKQVlS5JT9W6u-w2ZMCa7JdDPYXUoqwQKakceVaUotuOA6_RCZF1wSfl2Mvoau2PUKen-0U"
|
||||
fi
|
||||
elif ((j == 1))
|
||||
then
|
||||
read -p "Are there any animals with no toes?: " Answer
|
||||
if ((Answer != 0))
|
||||
then
|
||||
echo -e "${GREEN}Your answer is correct! Horses are commonly known for having just a toe under their hooves, but one toe is still more than none!${NC} Visit: https://i.chzbgr.com/full/10509587456/h1B5A4D29/this-actually-is-my-first-rodeo"
|
||||
else
|
||||
echo -e "${RED}Your answer is not correct. There is no animal without any toes. Hooves are modified toenails covering the tips of toes.${NC} Visit: https://cdn.britannica.com/28/85428-050-40FEA973/Hoof-horse.jpg"
|
||||
fi
|
||||
else
|
||||
read -p "Is the blue whale the heaviest animal on this planet?: " Answer
|
||||
if ((Answer == 0))
|
||||
then
|
||||
echo -e "${GREEN}Your answer is correct! The second heaviest animal ever to have existed on Earth is the fin whale (Balaenoptera physalus), with some historical estimates reaching up to 130 tons.${NC} Visit: https://www.reddit.com/media?url=https%3A%2F%2Fexternal-preview.redd.it%2FU7IzglHNEVnaT_F58bDjHwB8WqMZDyRNeujcpLqP25s.jpg%3Fwidth%3D1080%26crop%3Dsmart%26auto%3Dwebp%26s%3Df77ae8f9652158dd102218fbb58e1bf665b5a1ab"
|
||||
else
|
||||
echo -e "${RED}Your answer is not correct. Blue whales are widely regarded as the heaviest animals to have ever existed on Earth, with recorded weights up to 190 - 200 tons.${NC} Visit: https://familylifetips.com/wp-content/uploads/2021/07/Whale-Meme-Whale-Hello-There-Family-Life-Tips-Magazine.jpg"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
21
Bash_scripting/test.sh
Executable file
21
Bash_scripting/test.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
user=$(whoami)
|
||||
echo "outputul de la comanda whoami este: " $user
|
||||
user="myuser"
|
||||
echo "valoarea variabilei user este acum: " $user
|
||||
|
||||
echo "Ai introdus primul argument: $1"
|
||||
echo "Ai introdus al doilea argument: $2"
|
||||
|
||||
VREME=("ploua" "innorat" "furtuna" "soare")
|
||||
echo "Starea vremii este: $(VREME[0])"
|
||||
echo "Starea vremii este: $(VREME[1])"
|
||||
echo "Starea vremii este: $(VREME[2])"
|
||||
echo "Starea vremii este: $(VREME[3])"
|
||||
|
||||
read nume
|
||||
echo "Numele introus este: $nume"
|
||||
|
||||
read -p "Introdu un nume: " nume
|
||||
echo "Numele introdus este: $nume"
|
||||
echo "Numele introdus este: $(nume:-"Niciun nume introdus")"
|
||||
27
Bash_scripting/updates.sh
Executable file
27
Bash_scripting/updates.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
release_file=/etc/os-release
|
||||
logfile=/var/log/updater.log
|
||||
errorlog=/var/log/updater_errors.log
|
||||
|
||||
check_exit_status() {
|
||||
local status=$1
|
||||
local command_name=$2
|
||||
if [ $status -ne 0 ]
|
||||
then
|
||||
echo "An error occurred during $command_name, please check the $errorlog file."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if grep -q "Ubuntu" $release_file || grep -q "Debian" $release_file
|
||||
then
|
||||
# The host is Debian or Ubuntu
|
||||
# Run the apt version of the command
|
||||
sudo apt update 1>>$logfile 2>>$errorlog
|
||||
check_exit_status $? "apt update"
|
||||
|
||||
sudo apt dist-upgrade -y 1>>$logfile 2>>$errorlog
|
||||
check_exit_status $? "apt dist-upgrade"
|
||||
|
||||
echo "Update completed successfully!"
|
||||
fi
|
||||
39
Bash_scripting/updates2.sh
Executable file
39
Bash_scripting/updates2.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
release_file=/etc/os-release
|
||||
logfile=/var/log/updater.log
|
||||
errorlog=/var/log/updater_errors.log
|
||||
|
||||
check_exit_status() {
|
||||
local status=$?
|
||||
local command_name=$1
|
||||
if [ $status -ne 0 ]; then
|
||||
echo "$(date): An error occurred during $command_name (exit code: $status). Check $errorlog." | tee -a $logfile
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
echo "$(date): Starting update process..." >> $logfile
|
||||
|
||||
if grep -q "Ubuntu" $release_file || grep -q "Debian" $release_file; then
|
||||
apt update >> $logfile 2>> $errorlog
|
||||
check_exit_status "apt update"
|
||||
|
||||
apt dist-upgrade -y >> $logfile 2>> $errorlog
|
||||
check_exit_status "apt dist-upgrade"
|
||||
|
||||
apt autoremove -y >> $logfile 2>> $errorlog
|
||||
check_exit_status "apt autoremove"
|
||||
|
||||
apt autoclean >> $logfile 2>> $errorlog
|
||||
check_exit_status "apt autoclean"
|
||||
|
||||
echo "$(date): Update completed successfully!" | tee -a $logfile
|
||||
|
||||
# Optional: Check if reboot needed
|
||||
if [ -f /var/run/reboot-required ]; then
|
||||
echo "$(date): Reboot required for updates to take effect." | tee -a $logfile
|
||||
fi
|
||||
else
|
||||
echo "This system is not Ubuntu or Debian-based. Exiting." | tee -a $logfile
|
||||
exit 0
|
||||
fi
|
||||
20
Bash_scripting/while.sh
Executable file
20
Bash_scripting/while.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
x=1
|
||||
while (( $x < "10" ))
|
||||
do
|
||||
echo "Valoarea lui x este: $x"
|
||||
x=$(( x+1 ))
|
||||
done
|
||||
|
||||
ar=(11 15 86 23 45 78)
|
||||
Lenght=${#ar[@]}
|
||||
echo "Lungimea array-ului este: $lenght"
|
||||
|
||||
ar=(32 10 132 32 5 7 43 104)
|
||||
i=0
|
||||
lenght=${#ar[@]}
|
||||
while [ $i -lt $lenght ];
|
||||
do
|
||||
echo "Elementul $i din array este: ${ar[$i]}"
|
||||
i=$(( i+1))
|
||||
done
|
||||
8
Docker/dockertests/Dockerfile
Normal file
8
Docker/dockertests/Dockerfile
Normal 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
5
Project/Dockerfile
Normal 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
248
Project/project.html
Normal 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>
|
||||
@@ -1 +1,7 @@
|
||||
Fara modificari
|
||||
<<<<<<< HEAD
|
||||
Fara modificari
|
||||
=======
|
||||
Asa functioneaza[develop 7f2020f] Changes
|
||||
1 file changed, 10 insertions(+)
|
||||
create mode 100644 myWorkspace
|
||||
>>>>>>> c23a81d8e13da84a423b1a32ad9e7411675d5fba
|
||||
|
||||
22
Ubuntu-nettools/Dockerfile
Normal file
22
Ubuntu-nettools/Dockerfile
Normal 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
|
||||
17
autogit.sh
Executable file
17
autogit.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Simple script to add all changes, commit with message "updated", and push
|
||||
|
||||
git add .
|
||||
|
||||
# Check if there are changes to commit
|
||||
if git diff-index --quiet HEAD --; then
|
||||
echo "No changes to commit."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git commit -m "updated"
|
||||
|
||||
git push
|
||||
|
||||
echo "Changes committed and pushed successfully!"
|
||||
4
bandit.txt
Normal file
4
bandit.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
SSH info:
|
||||
Host: bandit5@bandit.labs.overthewire.org
|
||||
PW: 4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw
|
||||
|
||||
5
comenziLinux.txt
Normal file
5
comenziLinux.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
d
|
||||
f
|
||||
g
|
||||
h
|
||||
h
|
||||
0
dockerUS/Dockerfile
Normal file
0
dockerUS/Dockerfile
Normal file
186
dockerUS/index.html
Normal file
186
dockerUS/index.html
Normal 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>© 2026 Daily News. All rights reserved.</p>
|
||||
<p>Contact us | Privacy Policy | Terms of Service</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
1
first_gitea
Submodule
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
7
it_school.code-workspace
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user