登录
首页 >  文章 >  前端

前端尝试

来源:dev.to

时间:2024-09-06 22:09:59 437浏览 收藏

编程并不是一个机械性的工作,而是需要有思考,有创新的工作,语法是固定的,但解决问题的思路则是依靠人的思维,这就需要我们坚持学习和更新自己的知识。今天golang学习网就整理分享《前端尝试》,文章讲解的知识点主要包括,如果你对文章方面的知识点感兴趣,就不要错过golang学习网,在这可以对大家的知识积累有所帮助,助力开发能力的提升。

这是前端挑战 v24.09.04 的提交内容,美化我的标记:space

我建造了什么

我构建了一个以太空为主题的登陆页面,提供有关太空探索的信息。目标是创造一个有吸引力的简约设计,突出太空历史、当前任务、未来任务等的关键方面。该页面包括主页、关于、历史、当前任务、未来任务、调查问卷和联系信息等部分。

演示
您可以在此处实时查看该项目。以下是登陆页面的屏幕截图:
前端尝试
太空探索登陆页面

您也可以在github上查看代码

旅程

创建这个项目是一次令人兴奋的旅程。以下是有关该过程的一些要点:

设计和布局:我的目标是干净简约的设计,带有黑暗的太空主题背景,以创造身临其境的体验。布局简单但信息丰富,使用户可以轻松浏览不同的部分。

内容:我包含了有关太空探索历史、当前和未来任务的详细信息。问卷部分允许用户互动并分享他们对太空探索的想法。

挑战:挑战之一是确保动画交互在不同设备和屏幕尺寸上顺利运行。在这个过程中我学到了很多关于响应式设计和跨浏览器兼容性的知识。

未来计划:我计划添加更多互动元素,例如有关太空事实的测验和太空探索中重大事件的时间表。我也希望整合更高级的动画和转场,让页面更加吸引人。

代码

html




    
    
    space exploration
    


    

welcome to space exploration

home

discover the wonders of the universe and our journey into space.

about

learn about the history and future of space exploration.

history of space exploration

1. early concepts (pre-20th century)

ancient civilizations: ancient cultures like the babylonians, egyptians, greeks, and chinese were among the first to study the stars and celestial objects, laying the foundation for astronomy.

17th century: johannes kepler’s laws of planetary motion and isaac newton’s law of universal gravitation provided the necessary understanding for future space travel concepts.

2. early 20th century

tsiolkovsky's rocket equation (1903): russian scientist konstantin tsiolkovsky proposed the idea of space travel using rockets and formulated the tsiolkovsky rocket equation, a fundamental principle in astronautics.

robert goddard (1926): an american physicist, robert goddard, successfully launched the world's first liquid-fueled rocket, proving that space travel was possible.

3. the space race (1950s-1970s)

sputnik 1 (1957): the soviet union launched the first artificial satellite, sputnik 1, into space, marking the beginning of the space age.

yuri gagarin (1961): soviet cosmonaut yuri gagarin became the first human to orbit earth aboard vostok 1, a major milestone in space exploration.

apollo 11 (1969): the united states' nasa successfully landed astronauts neil armstrong and buzz aldrin on the moon, with armstrong famously declaring, "that's one small step for man, one giant leap for mankind."

4. post-moon landings and the space shuttle era (1970s-1990s)

space stations:

  • salyut and mir (1971-1986): the soviet union launched a series of space stations, culminating in the long-lasting mir, which operated until 2001.
  • skylab (1973): the united states launched its first space station, skylab, which was operational for six years.

space shuttle program (1981-2011): nasa’s reusable space shuttle fleet completed 135 missions over 30 years, including launching satellites, conducting scientific research, and assembling the international space station (iss).

5. international cooperation and space exploration (1990s-present)

international space station (iss) (1998-present): a joint effort by nasa, roscosmos (russia), esa (europe), jaxa (japan), and other partners, the iss serves as a hub for scientific research and international collaboration in low earth orbit.

mars exploration:

  • rovers and orbiters: the mars rovers like spirit, opportunity, curiosity, and perseverance have provided detailed information about the martian surface and its potential to support life.
  • exomars (2020): a european-russian mission designed to search for signs of life on mars.

6. private space exploration and the future (2000s-present)

commercial spaceflight: companies like spacex, blue origin, and virgin galactic are pioneering commercial space travel, aiming to make space more accessible to private individuals and researchers.

current missions

explore the ongoing missions that are expanding our understanding of the universe.

future missions

learn about the upcoming missions that aim to push the boundaries of space exploration.

questionnaire















contact

get in touch with us for more information about space exploration.

© 2024 space exploration. all rights reserved.

css

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
}

.space-background {
    background: rgba(0, 0, 0, 0.8) url('https://www.nasa.gov/sites/default/files/thumbnails/image/potw2048a.jpg') no-repeat center center;
    background-size: cover;
}

header {
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

form {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

form input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background: #555;
}

footer {
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

团队
这个项目是一个人的努力,但我想归功于以下资源和灵感:

  • nasa 令人惊叹的太空图像。

  • mdn web 文档,提供有关 web 开发的优秀文档。

许可证
该项目根据 mit 许可证获得许可。请随意使用和修改您认为合适的代码。

本篇关于《前端尝试》的介绍就到此结束啦,但是学无止境,想要了解学习更多关于文章的相关知识,请关注golang学习网公众号!

声明:本文转载于:dev.to 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>