From da88356e26a9c02e8884044ea9ba2733ff3d8952 Mon Sep 17 00:00:00 2001 From: Zero to Mastery Date: Sun, 22 Oct 2023 16:14:24 +0000 Subject: [PATCH] (CI) format code --- Art/Shubhamkashyap1601/solar.html | 181 ++++++++++++++++-------------- Art/Shubhamkashyap1601/styles.css | 89 +++++++++++---- include.js | 2 +- 3 files changed, 164 insertions(+), 108 deletions(-) diff --git a/Art/Shubhamkashyap1601/solar.html b/Art/Shubhamkashyap1601/solar.html index 3459eb6e6..8138acc04 100644 --- a/Art/Shubhamkashyap1601/solar.html +++ b/Art/Shubhamkashyap1601/solar.html @@ -1,100 +1,107 @@ - - - - - Solar System - - - -
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
- - -
- - - + createRandomStars(); + + diff --git a/Art/Shubhamkashyap1601/styles.css b/Art/Shubhamkashyap1601/styles.css index ff81b2ef9..57877d43b 100644 --- a/Art/Shubhamkashyap1601/styles.css +++ b/Art/Shubhamkashyap1601/styles.css @@ -25,13 +25,18 @@ body { opacity: 0.5; animation: twinkle 1s infinite; background: url('star.png') no-repeat center center/contain; - } @keyframes twinkle { - 0% { opacity: 1; } - 50% { opacity: 0; } - 100% { opacity: 1; } + 0% { + opacity: 1; + } + 50% { + opacity: 0; + } + 100% { + opacity: 1; + } } .sun { width: 80px; @@ -57,14 +62,38 @@ body { pointer-events: none; } -.orbit-mercury { width: 210px; height: 126px; } -.orbit-venus { width: 330px; height: 198px; } -.orbit-earth { width: 450px; height: 270px; } -.orbit-mars { width: 570px; height: 342px; } -.orbit-jupiter { width: 730px; height: 438px; } -.orbit-saturn { width: 930px; height: 558px; } -.orbit-uranus { width: 1130px; height: 678px; } -.orbit-neptune { width: 1290px; height: 774px; } +.orbit-mercury { + width: 210px; + height: 126px; +} +.orbit-venus { + width: 330px; + height: 198px; +} +.orbit-earth { + width: 450px; + height: 270px; +} +.orbit-mars { + width: 570px; + height: 342px; +} +.orbit-jupiter { + width: 730px; + height: 438px; +} +.orbit-saturn { + width: 930px; + height: 558px; +} +.orbit-uranus { + width: 1130px; + height: 678px; +} +.orbit-neptune { + width: 1290px; + height: 774px; +} .planet { width: 20px; @@ -84,11 +113,31 @@ body { font-size: 24px; color: white; /* Set the text color to white */ } -.mercury { background-color: #D3D3D3; } -.venus { background-color: #FFD700; } -.earth { background-color: #6495ED; } -.mars { background-color: #FF4500; } -.jupiter {width:50px; height:50px ; background-color: #D2691E; } -.saturn {width:40px; height:40px ; background-color: #FFA500; } -.uranus { background-color: #00CED1; } -.neptune { background-color: #000080; } +.mercury { + background-color: #d3d3d3; +} +.venus { + background-color: #ffd700; +} +.earth { + background-color: #6495ed; +} +.mars { + background-color: #ff4500; +} +.jupiter { + width: 50px; + height: 50px; + background-color: #d2691e; +} +.saturn { + width: 40px; + height: 40px; + background-color: #ffa500; +} +.uranus { + background-color: #00ced1; +} +.neptune { + background-color: #000080; +} diff --git a/include.js b/include.js index 9b2edb849..812396bbf 100644 --- a/include.js +++ b/include.js @@ -2235,7 +2235,7 @@ let cards = [ author: 'Priyanshu Prajapati', githubLink: 'https://github.com/PentesterPriyanshu' }, - { + { artName: 'Solar System', pageLink: './Art/Shubhamkashyap1601/solar.html', imageLink: './Art/Shubhamkashyap1601/solar.gif',