首页 > 其他分享 >前端尝试

前端尝试

时间:2024-09-22 09:03:52浏览次数:1  
标签:尝试 about missions 太空 space 前端 padding exploration

这是前端挑战 v24.09.04 的提交内容,美化我的标记:space我建造了什么我构建了一个以太空为主题的登陆页面,提供有关太空探索的信息。目标是创造一个有吸引力的简约设计,突出太空历史、当前任务、未来任务等的关键方面。该页面包括主页、关于、历史、当前任务、未来任务、调查问卷和联系信息等部分。演示您可以在此处实时查看该项目。以下是登陆页面的屏幕截图:太空探索登陆页面您也可以在github上查看代码旅程立即学习“前端免费学习笔记(深入)”;创建这个项目是一次令人兴奋的旅程。以下是有关该过程的一些要点:设计和布局:我的目标是干净简约的设计,带有黑暗的太空主题背景,以创造身临其境的体验。布局简单但信息丰富,使用户可以轻松浏览不同的部分。内容:我包含了有关太空探索历史、当前和未来任务的详细信息。问卷部分允许用户互动并分享他们对太空探索的想法。挑战:挑战之一是确保动画交互在不同设备和屏幕尺寸上顺利运行。在这个过程中我学到了很多关于响应式设计和跨浏览器兼容性的知识。未来计划:我计划添加更多互动元素,例如有关太空事实的测验和太空探索中重大事件的时间表。我也希望整合更高级的动画和转场,让页面更加吸引人。 代码html <meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>space exploration</title><link rel="stylesheet" href="styles.css"><header class="space-background"><h1>welcome to space exploration</h1> <nav><ul><li><a href="#home">home</a></li> <li><a href="#about">about</a></li> <li><a href="#history">history</a></li> <li><a href="#current-missions">current missions</a></li> <li><a href="#future-missions">future missions</a></li> <li><a href="#questionnaire">questionnaire</a></li> <li><a href="#contact">contact</a></li> </ul></nav></header><main class="space-background"><section id="home"><h2>home</h2> <p>discover the wonders of the universe and our journey into space.</p> </section><section id="about"><h2>about</h2> <p>learn about the history and future of space exploration.</p> </section><section id="history"><h2>history of space exploration</h2> <h3>1. early concepts (pre-20th century)</h3> <p><strong>ancient civilizations:</strong> 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.</p> <p><strong>17th century:</strong> johannes kepler’s laws of planetary motion and isaac newton’s law of universal gravitation provided the necessary understanding for future space travel concepts.</p> <h3>2. early 20th century</h3> <p><strong>tsiolkovsky's rocket equation (1903):</strong> russian scientist konstantin tsiolkovsky proposed the idea of space travel using rockets and formulated the tsiolkovsky rocket equation, a fundamental principle in astronautics.</p> <p><strong>robert goddard (1926):</strong> an american physicist, robert goddard, successfully launched the world's first liquid-fueled rocket, proving that space travel was possible.</p> <h3>3. the space race (1950s-1970s)</h3> <p><strong>sputnik 1 (1957):</strong> the soviet union launched the first artificial satellite, sputnik 1, into space, marking the beginning of the space age.</p> <p><strong>yuri gagarin (1961):</strong> soviet cosmonaut yuri gagarin became the first human to orbit earth aboard vostok 1, a major milestone in space exploration.</p> <p><strong>apollo 11 (1969):</strong> 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."</p> <h3>4. post-moon landings and the space shuttle era (1970s-1990s)</h3> <p><strong>space stations:</strong></p> <ul><li><strong>salyut and mir (1971-1986):</strong> the soviet union launched a series of space stations, culminating in the long-lasting mir, which operated until 2001.</li> <li><strong>skylab (1973):</strong> the united states launched its first space station, skylab, which was operational for six years.</li> </ul><p><strong>space shuttle program (1981-2011):</strong> 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).</p> <h3>5. international cooperation and space exploration (1990s-present)</h3> <p><strong>international space station (iss) (1998-present):</strong> 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.</p> <p><strong>mars exploration:</strong></p> <ul><li><strong>rovers and orbiters:</strong> the mars rovers like spirit, opportunity, curiosity, and perseverance have provided detailed information about the martian surface and its potential to support life.</li> <li><strong>exomars (2020):</strong> a european-russian mission designed to search for signs of life on mars.</li> </ul><h3>6. private space exploration and the future (2000s-present)</h3> <p><strong>commercial spaceflight:</strong> companies like spacex, blue origin, and virgin galactic are pioneering commercial space travel, aiming to make space more accessible to private individuals and researchers.</p> </section><section id="current-missions"><h2>current missions</h2> <p>explore the ongoing missions that are expanding our understanding of the universe.</p> </section><section id="future-missions"><h2>future missions</h2> <p>learn about the upcoming missions that aim to push the boundaries of space exploration.</p> </section><section id="questionnaire"><h2>questionnaire</h2> <form> <label for="name">name:</label> <input type="text" id="name" name="name" required><br><br><label for="email">email:</label> <input type="email" id="email" name="email" required><br><br><label for="question1">1. what is your favorite planet?</label><br><input type="text" id="question1" name="question1" required><br><br><label for="question2">2. have you ever visited a space museum?</label><br><input type="radio" id="yes" name="question2" value="yes"><label for="yes">yes</label><br><input type="radio" id="no" name="question2" value="no"><label for="no">no</label><br><br><label for="question3">3. what interests you the most about space exploration?</label><br><textarea id="question3" name="question3" rows="4" cols="50" required></textarea><br><br><input type="submit" value="submit"></form> </section><section id="contact"><h2>contact</h2> <p>get in touch with us for more information about space exploration.</p> </section></main><footer class="space-background"><p>? 2024 space exploration. all rights reserved.</p> </footer>登录后复制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 许可证获得许可。请随意使用和修改您认为合适的代码。 以上就是前端尝试的详细内容,更多请关注我的其它相关文章!

标签:尝试,about,missions,太空,space,前端,padding,exploration
From: https://www.cnblogs.com/aow054/p/18424863

相关文章

  • 前端框架的隐性成本
    我们都希望我们的网站看起来有吸引力,并且在多种设备和屏幕尺寸上感觉快速且响应灵敏。前端生态系统中开发了一些常用工具来帮助构建此类界面。最常见和众所周知的是react,还有许多其他人共享这个空间,例如svelte、solidjs、angular、vue、qwik等。所有这些都是令人印象深刻的工程......
  • 尝试RVC音色克隆团长音色
    前言昨晚玩剑网3突发奇想,把团长声音克隆下来,利用语音喵制作成语音DBM。这样不管团长开不开团,打团也能有团长声音听了诶嘿嘿。于是当场关闭游戏声音录了打本的素材,本文就边做边记录。下载在B站找到了这个教程:【你的声音,现在是我的了!】https://www.bilibili.com/video/BV1P541......
  • 前端框架Vue应用
    一、组件化开发概念:一个页面可以拆分一个个组件,每个组件有自己独立的结构、样式、行为。好处:便于维护,利于复用,提升开发效率。分类:普通组件、根组件。根组件:整个应用最上层组件,包裹所有小组件。组件注册和使用组件注册方式有局部注册和全局注册。局部注册是只能在注册的组......
  • 从零到英雄:开始我的前端开发之旅
    这一切都始于2017年,当我第一次开始学习如何编码时,我在Admas报名参加了为期3个月的学习课程,起初我很兴奋参加课程做作业,但我并没有真正深入执行某些操作在我被阿比亚州立大学乌图鲁分校录取学习生物化学之前的练习和练习,我必须更加专注于我的学习,被一个非常严肃的部门录取。......
  • 乐观的 UI:改善前端应用程序的用户体验
    在前端开发中,最大的挑战之一是提供流畅、快速的用户体验。现代用户期望应用程序能够立即响应,没有延迟或中断。这就是乐观ui.的概念发挥作用的地方什么是乐观用户界面?乐观ui,或乐观用户界面,是一种开发技术,其中应用程序立即假设用户操作成功并相应地更新界面,甚至在收到服务......
  • 前端框架Vue、React、Angular、Svelte对比
    编辑在对比React、Vue.js、Angular和Svelte时,除了在高层次的特性上有显著差异,它们在核心设计理念和底层实现机制上也有明显的不同。为了清晰地理解这些框架,我们可以从以下几个方面来分析它们的核心不同点和底层不同点。1.框架类型和设计哲学React:类型:UI库(视图层)设计哲学:React......
  • 前端框架Vue、React、Angular、Svelte对比
    在对比React、Vue.js、Angular和Svelte时,除了在高层次的特性上有显著差异,它们在核心设计理念和底层实现机制上也有明显的不同。为了清晰地理解这些框架,我们可以从以下几个方面来分析它们的核心不同点和底层不同点。1.框架类型和设计哲学React:类型:UI库(视图层)设计哲......
  • 前端面试CSS常见题目
    1.CSS选择器的优先级(Specificity)面试官通常会问你如何计算CSS选择器的优先级,这对于避免样式冲突、提高代码可维护性很重要。优先级计算规则:!important优先级最高。内联样式(例如:<divstyle="color:red;">)优先级最高,优先级值为1000。ID选择器的优先级为100。类选......
  • 剖析未来前端面试的必争之地:10个让你备战事半功倍的原理与概念
    引用、复制(深/浅拷贝)的区别直接赋值对象(array、json),是引用,如果想复制,必须循环赋值每一项。或者使用JSON.Stringify()、JSON.parse()等等进行转换直接赋值数字、字符串,是复制基本数据类型:string、number、boolean、undefined、null引用数据类型:object、array、function宏......
  • 如何打造动漫插画分享社区?Java SpringBoot助力,Vue前端开发,2025最新毕业设计推荐!
    ✍✍计算机毕业编程指导师**⭐⭐个人介绍:自己非常喜欢研究技术问题!专业做Java、Python、小程序、安卓、大数据、爬虫、Golang、大屏等实战项目。⛽⛽实战项目:有源码或者技术上的问题欢迎在评论区一起讨论交流!⚡⚡Java、Python、微信小程序、大数据实战项目集⚡⚡文末......