欢迎参加下一届前端挑战赛:太空版 👾🪐👽
我们刚刚推出了一项新的前端挑战赛!
前端挑战赛:太空版将于9 月 15 日结束,届时将推出两个主题:CSS 艺术和美化我的标记。
本期主题的灵感来源于我们最近在 DEV 上看到的一些精彩帖子(@cookiemonsterdev @madsstoumann 👀),所以我们希望延续他们的创意,和大家一起深入探索浩瀚的星系!
和往常一样,每个主题都会产生一名获胜者。这意味着你有两次机会赢得炫耀的资本、一份来自开发者商店的礼物,以及一枚专属的开发者徽章。记住:徽章可以叠加显示在你的个人资料页面上,展示你的多次胜利!当然,重要的不是最终的目的地(火星?),而是(火箭般的)旅程!
我们希望这是一个挑战自我、享受乐趣的机会。请继续阅读,了解如何参与!
提示
CSS艺术:空间
画出你脑海中关于太空的画面。是你最喜欢的电影?最近的新闻?还是你天马行空的想象?无论是什么,请用 CSS 艺术形式与我们分享,不要使用任何 JavaScript!
这里提供提交模板,方便想要立即参与的人,但请在提交前仔细阅读官方挑战页面上的所有挑战规则。
提升我的标记:太阳系
使用 CSS 和 JavaScript,将下方提供的太阳系 HTML 代码模板设计得美观、互动性强且富有教育意义。我们提供了一个基本模板,列出了太阳系中的行星、卫星和其他天体,并附上一些相关知识。由于该模板不包含任何设计元素或交互功能,你需要发挥创意,使其更具视觉吸引力和互动性。
你的作品应以趣味十足、充满活力的设计提升用户体验,同时也要确保其易于访问和使用。除非使用 JavaScript,否则请避免直接修改 HTML 代码。最终提交的作品应兼顾美观与实用。你可以添加一些基本的样板代码,例如元标签和结构,以确保作品的正确呈现和功能实现。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Explore the Solar System</title>
</head>
<body>
<!-- Header Section -->
<header class="header">
<h1>Welcome to Our Solar System</h1>
<p>Discover the wonders of the Sun, planets, moons, and everything else that makes our solar system extraordinary.</p>
</header>
<!-- Solar System Overview Section -->
<section class="solar-system-overview">
<h2>About Our Solar System</h2>
<p>Our solar system is home to the Sun, eight planets, dozens of moons, countless asteroids, comets, and other celestial objects. Located in the Milky Way galaxy, it's the only place we know of that harbors life – on Earth.</p>
</section>
<!-- Planets Section -->
<section class="planets">
<h2>Planets of the Solar System</h2>
<!-- Mercury -->
<article class="planet mercury">
<h3>Mercury</h3>
<p>Mercury is the closest planet to the Sun and the smallest in our solar system. It has no atmosphere, and its surface temperatures vary drastically between day and night.</p>
<ul>
<li>Distance from Sun: 57.9 million km</li>
<li>Orbital Period: 88 Earth days</li>
<li>Moons: None</li>
</ul>
</article>
<!-- Venus -->
<article class="planet venus">
<h3>Venus</h3>
<p>Venus is the second planet from the Sun and is known for its thick, toxic atmosphere. Its surface is hotter than any other planet in the solar system due to the greenhouse effect.</p>
<ul>
<li>Distance from Sun: 108.2 million km</li>
<li>Orbital Period: 225 Earth days</li>
<li>Moons: None</li>
</ul>
</article>
<!-- Earth -->
<article class="planet earth">
<h3>Earth</h3>
<p>Earth is the third planet from the Sun and the only planet known to support life. It has one natural satellite, the Moon.</p>
<ul>
<li>Distance from Sun: 149.6 million km</li>
<li>Orbital Period: 365.25 Earth days</li>
<li>Moons: 1 (The Moon)</li>
</ul>
</article>
<!-- Mars -->
<article class="planet mars">
<h3>Mars</h3>
<p>Mars, the fourth planet from the Sun, is often called the "Red Planet" because of its reddish appearance caused by iron oxide on its surface. It's a prime candidate for future human exploration.</p>
<ul>
<li>Distance from Sun: 227.9 million km</li>
<li>Orbital Period: 687 Earth days</li>
<li>Moons: 2 (Phobos, Deimos)</li>
</ul>
</article>
<!-- Jupiter -->
<article class="planet jupiter">
<h3>Jupiter</h3>
<p>Jupiter is the largest planet in our solar system. It's known for its massive size, Great Red Spot (a giant storm), and many moons, including the four largest: Io, Europa, Ganymede, and Callisto.</p>
<ul>
<li>Distance from Sun: 778.5 million km</li>
<li>Orbital Period: 12 Earth years</li>
<li>Moons: 79 (4 major: Io, Europa, Ganymede, Callisto)</li>
</ul>
</article>
<!-- Saturn -->
<article class="planet saturn">
<h3>Saturn</h3>
<p>Saturn is famous for its stunning ring system, which is made up of ice and rock. It's the second-largest planet in the solar system and has numerous moons, including Titan, its largest.</p>
<ul>
<li>Distance from Sun: 1.43 billion km</li>
<li>Orbital Period: 29 Earth years</li>
<li>Moons: 83 (Titan being the largest)</li>
</ul>
</article>
<!-- Uranus -->
<article class="planet uranus">
<h3>Uranus</h3>
<p>Uranus is unique for its sideways rotation and faint ring system. It's an ice giant with a frigid atmosphere composed mainly of hydrogen, helium, and methane.</p>
<ul>
<li>Distance from Sun: 2.87 billion km</li>
<li>Orbital Period: 84 Earth years</li>
<li>Moons: 27</li>
</ul>
</article>
<!-- Neptune -->
<article class="planet neptune">
<h3>Neptune</h3>
<p>Neptune, the furthest planet from the Sun, is a deep blue ice giant. Its most prominent feature is the Great Dark Spot, a storm system similar to Jupiter's Great Red Spot.</p>
<ul>
<li>Distance from Sun: 4.5 billion km</li>
<li>Orbital Period: 165 Earth years</li>
<li>Moons: 14 (Triton being the largest)</li>
</ul>
</article>
</section>
<!-- Moons Section -->
<section class="moons">
<h2>Fascinating Moons of the Solar System</h2>
<!-- Earth's Moon -->
<article class="moon earth-moon">
<h3>The Moon (Earth)</h3>
<p>The Moon is Earth's only natural satellite and the fifth-largest moon in the solar system. Its phases have been integral to human culture for millennia.</p>
</article>
<!-- Titan (Saturn) -->
<article class="moon titan">
<h3>Titan (Saturn)</h3>
<p>Titan is Saturn's largest moon and has a thick atmosphere and liquid methane lakes. It's one of the most Earth-like worlds in the solar system, despite its frigid temperatures.</p>
</article>
<!-- Europa (Jupiter) -->
<article class="moon europa">
<h3>Europa (Jupiter)</h3>
<p>Europa, one of Jupiter's Galilean moons, is covered in ice. Scientists believe there's a vast ocean beneath its frozen surface, making it a prime candidate for finding extraterrestrial life.</p>
</article>
</section>
<!-- Other Solar System Objects Section -->
<section class="solar-system-objects">
<h2>Other Celestial Objects</h2>
<!-- Asteroid Belt -->
<article class="asteroid-belt">
<h3>The Asteroid Belt</h3>
<p>The asteroid belt lies between Mars and Jupiter and contains thousands of rocky bodies. Ceres, the largest object here, is considered a dwarf planet.</p>
</article>
<!-- Comets -->
<article class="comets">
<h3>Comets</h3>
<p>Comets are icy bodies that originate from the outer solar system. When they approach the Sun, their ice turns to gas, forming a bright tail visible from Earth.</p>
</article>
<!-- Kuiper Belt -->
<article class="kuiper-belt">
<h3>The Kuiper Belt</h3>
<p>The Kuiper Belt is a region beyond Neptune filled with icy bodies and dwarf planets, including Pluto. It's similar to the asteroid belt but far larger and more distant.</p>
</article>
</section>
<!-- Footer Section -->
<footer class="footer">
<p>© 2024 Explore the Solar System. All rights reserved.</p>
</footer>
</body>
</html>
我们非常期待看到您的太空项目!如有任何疑问,请在下方留言。
祝你好运,编程愉快!
文章来源:https://dev.to/devteam/join-us-for-the-next-frontend-challenge-space-edition-2d9g