当前位置: 首页 > 编程日记 > 正文

apple id无法创建_我如何为我的Apple收藏夹创建网站

apple id无法创建

A while ago I started an Apple collection. I've been following Apple hardware (and its aesthetics) since I was a teenager, but at that time I didn't the have money to own a Mac.

前一段时间,我开始了一个苹果系列。 从我十几岁起我就一直在关注Apple硬件(及其美学),但是那时我没有钱拥有Mac。

I got my first Mac when I was 19. It was an iBook 700 Mhz, acquired on an eBay-like website in Brazil. The money came from a Flash project.

我19岁时得到了第一台Mac,那是一台iBook 700 Mhz,在巴西的类似eBay的网站上获得。 钱来自Flash项目。

After living in Canada for a few years now, I have some extra money to spend on a hobby. Most of the time I buy the devices from people on Craigslist.

在加拿大生活了几年之后,我有一些额外的钱可以花在业余爱好上。 大多数时候,我都是从Craigslist上的人那里购买设备的。

After a few laptops and iDevices, I decided that I should start collecting info about my iThings. In the beginning, I created a Gist containing the model, serial number, how I got the device, the minimum/maximum OS, and so on.

在购买了几台笔记本电脑和iDevices之后,我决定应该开始收集有关iThings的信息。 在开始时,我创建了一个Gist,其中包含型号,序列号,如何获得设备,最小/最大OS等。

The list kept getting bigger and bigger, and the content started looking messy. I thought showing this content on a website would be perfect, and I didn't need to hire a developer :D

列表越来越大,内容开始显得凌乱。 我以为在网站上显示此内容将是完美的,并且我不需要雇用开发人员:D

At first, I decided I would organize my data in an SQL database, with the information distributed in different columns and tables. After that, I would create a graphQL API to provide me the data needed to populate my UI – probably written in React, compiled with Babel and packed with Webpack.

首先,我决定将数据组织在一个SQL数据库中,并将信息分布在不同的列和表中。 之后,我将创建一个graphQL API为我提供填充我的UI所需的数据-可能是用React写的,用Babel编译并用Webpack打包的。

Reading the previous paragraph aloud, you can see that there are many technologies, and that I even ignored the backend language and UI details like SASS or styled-components. It all sounded a bit overwhelming when my ultimate goal was showing a list of items in a nice design.

朗读上一段,您会发现有很多技术,而且我什至忽略了后端语言和UI详细信息,例如SASS或样式化组件。 当我的最终目标是显示精美设计中的项目列表时,这一切听起来有些不知所措。

That being said, I thought about how I can deliver this content without:

话虽如此,我想到了如何在没有以下情况的情况下提供此内容:

  • An API or any backend work

    API或任何后端工作
  • Any JS framework/library

    任何JS框架/库
  • Any JS tooling (Webpack, Babel, etc.)

    任何JS工具(Webpack,Babel等)
  • Any CSS work

    任何CSS工作

On top of these constraints, I had a few stretch goals:

除了这些限制,我还有一些延伸目标:

  • Create a website with good accessibility

    创建具有良好可访问性的网站
  • Create a website that works on old browsers, since I have computers running Mac OS 9.2 and iDevices running iOS 3

    创建一个可在旧浏览器上运行的网站,因为我有运行Mac OS 9.2的计算机和运行i​​OS 3的iDevices

Challenge accepted. One index.html, a few vanilla JS files, and no custom CSS. I'd like to share the experience of building the site with you.

接受挑战。 一个index.html,几个原始JS文件,没有自定义CSS。 我想与您分享建立网站的经验。

TL,DR:

TL,DR:

  • Final website

    最终网站

  • Source code

    源代码

Let's talk about the constraints, point by point:

让我们逐点讨论约束:

没有API或任何后端工作 (No API or any backend work)

A while ago I saw a SaaS product called Stein. You create your data inside a Google Sheets document and they give you an endpoint with your data. Their library works like Handlebars, and it looked perfect for my use case:

不久前,我看到了一种名为Stein的SaaS产品。 您在Google表格文档中创建数据,它们为您提供了数据端点。 他们的库就像把手一样,对于我的用例来说看起来很完美:

<div data-stein-url="https://api.steinhq.com/v1/storages/5cc158079ec99a2f484dcb40/Sheet1" data-stein-limit="2"><div><h1>{{title}}</h1><h6>By {{author}}</h6>{{content}}Read on <a href="{{link}}">Medium</a></div>
</div>

没有JS框架/库和工具 (No JS framework/library and tooling)

I decided to avoid adding a framework or library in this project since the use case didn’t need one. All JS interactions on this page are quite simple (show/hide menus, open a modal screen, handle permalinks).

我决定避免在该项目中添加框架或库,因为用例不需要。 此页面上的所有JS交互都非常简单(显示/隐藏菜单,打开模式屏幕,处理永久链接)。

Since I was not using a framework/library, I could avoid adding Webpack and Babel. No need to dig into presets and loaders.

由于我没有使用框架/库,因此可以避免添加Webpack和Babel。 无需深入研究预设和加载器。

P.S. You can argue that I could have chosen create-react-app or Next.js and get all these problems solved, but no.

PS:您可以说我可以选择create-react-app或Next.js并解决所有这些问题,但是没有。

没有CSS工作 (No CSS work)

I love writing CSS, especially when I can use SASS, but I decided not to write any CSS here. I had a few good reasons to avoid doing it:

我喜欢编写CSS,尤其是当我可以使用SASS时,但是我决定在这里不编写任何CSS。 我有几个很好的理由避免这样做:

  • I had no designs in mind, and despite the fact that I could do something decent-looking, I didn’t want to put time and energy into it

    我没有设计的想法,尽管我可以做一些看起来不错的事情,但我不想浪费时间和精力
  • I wanted to use Tailwind CSS

    我想使用Tailwind CSS

If you've never heard about Tailwind CSS, please don’t just think, “It's just an alternative to Bootstrap.” Here is a good, short explanation from their website:

如果您从未听说过Tailwind CSS,请不要只是想:“它只是Bootstrap的替代品。” 这是他们网站上的简短说明:

Most CSS frameworks do too much. … Instead of opinionated predesigned components, Tailwind provides low-level utility classes that let you build completely custom designs without ever leaving your HTML.

大多数CSS框架做得太多。 ……Tailwind提供了底层实用程序类,而不是预先设计好的组件,可让您构建完全自定义的设计,而无需离开HTML。

This is pretty much true. A quick search gives you many web apps “rebuilt” with Tailwind CSS:

这是真的。 快速搜索为您提供了许多使用Tailwind CSS“重建”的Web应用程序:

  • Whatsapp

    Whatsapp的

  • Telegram

    电报

  • Facebook

    脸书

  • Reddit

    Reddit

  • Youtube

    优酷

  • Slack

    松弛

  • Coinbase

    币库

  • Github

    Github

  • Trello

    特雷洛

  • Twitter

    推特

  • Netlify

    Netlify

创建具有良好可访问性的网站 (Create a website with good accessibility)

Last month I started taking accessibility courses at Deque University. Their content is great and it reminded me that HTML is accessible by default. By using a semantic HTML structure and testing basic things like keyboard navigation and colour contrast you eliminate several barries that move people with disabilities away from your content.

上个月,我开始在Deque大学学习无障碍课程。 它们的内容很棒,它使我想起默认情况下可以访问HTML 。 通过使用语义HTML结构并测试诸如键盘导航和颜色对比度之类的基本内容,您可以消除使残疾人远离您的内容的若干障碍。

I am not an accessibility expert, but here are a few accessibility-related things I’ve worked on for this website:

我不是辅助功能专家,但是以下是我为该网站所做的一些与辅助功能有关的事情:

  • Disable stylesheets: By disabling stylesheets you can ensure that your content follows a logical/structural way.

    禁用样式表:通过禁用样式表,可以确保您的内容遵循逻辑/结构方式。
  • VoiceOver: VoiceOver is included in macOS and iOS. It is very simple to use, and by experimenting with it you can have a better understanding of how people use this feature.

    VoiceOver:VoiceOver包含在macOS和iOS中。 它非常易于使用 ,并且通过试验,您可以更好地了解人们如何使用此功能。

  • Modals: Modals can be problematic. I decided to follow Ire Aderinokun’s approach.

    模态:模态可能有问题。 我决定遵循艾雷迪诺昆(Ire Aderinokun)的方法。

  • axe: The extension is an accessibility checker for WCAG 2 and Section 508 accessibility rules.

    ax :扩展名是WCAG 2和第508节可访问性规则的可访问性检查器。

It is not perfect -- there are a few things that I didn’t work on for my site, like adding a skip link to the main content. If you are curious, here is the Pull Request with all the changes.

这不是完美的-我在网站上没有做过一些事情,例如添加了指向主要内容的跳过链接。 如果您感到好奇, 这里是带有所有更改的请求请求 。

创建一个可在旧浏览器中运行的网站 (Create a website that works in old browsers)

I couldn’t achieve this objective since I had no control over scripts and styles. However, it doesn’t seem to be impossible. A few things I noticed:

我无法控制脚本和样式,因此无法实现这一目标。 但是,这似乎并非不可能。 我注意到了几件事:

  • Expedite (Stein client) uses fetch, which was only added in Safari 10. The request to their server could be probably replaced with an XMLHttpRequest.

    Expedite (Stein客户端)使用fetch (仅在Safari 10中添加) 。 向其服务器的请求可能会替换为XMLHttpRequest。

  • Tailwind uses Flexbox in many elements. Safari only started supporting Flexbox in iOS 7. Maybe I could write a few properties for their existing elements to achieve a decent look.

    Tailwind在许多元素中使用Flexbox。 Safari才开始在iOS 7中支持Flexbox。也许我可以为它们的现有元素编写一些属性,以实现美观的外观。
  • SSL Certificates may be an issue for old browsers.

    SSL证书可能是旧浏览器的问题。

结论 (Conclusions)

Making this website was super fun. Having this kind of pet project gave me a good reason to work with tech that I don't use in my job. Maybe in the future, Stein and/or TailwindCSS will be useful to prototype a feature or build a hackathon project.

使这个网站超级有趣。 拥有这种宠物项目使我有充分的理由使用我在工作中不使用的技术。 也许在将来,Stein和/或TailwindCSS将对功能原型或构建hackathon项目很有用。

The fact that I added “constraints” to my project made me think outside the box. Even though I didn't achive all my objectives, it helped me understand more and more about how all the pieces are connected.

我在项目中添加了“约束”这一事实使我跳出了框框。 即使我没有实现我的所有目标,它也帮助我越来越了解所有各部分之间的联系。

I totally recommend doing something like this to give you a chance to play with different tech. It doesn't need to be an Apple collection -- you can create a site to list your favourite books or the best hikes you've done. In this case, the journey matters more than the goal.

我完全建议您这样做,让您有机会使用其他技术。 它不一定是Apple收藏的书,您可以创建一个网站来列出自己喜欢的书或您所做的最佳远足。 在这种情况下,旅程比目标更重要。

Out of curiosity, I tracked my time using Clockify and between coding, creating the data, testing and writing this post I’ve worked 13 hours on this.

出于好奇,我使用Clockify跟踪了我的时间,并在编码,创建数据,测试和撰写我为此工作了13个小时的这篇文章之间进行了跟踪。

Also posted on my blog. Follow me on Twitter

也张贴在我的博客上 。 在Twitter上关注我

翻译自: https://www.freecodecamp.org/news/creating-a-website-for-my-apple-collection/

apple id无法创建

相关文章:

bzoj1562[NOI2009]变换序列——2016——3——12

任意门&#xff1a;http://www.lydsy.com/JudgeOnline/problem.php?id1562 题目&#xff1a; 对于0,1,…,N-1的N个整数&#xff0c;给定一个距离序列D0,D1,…,DN-1&#xff0c;定义一个变换序列T0,T1,…,TN-1使得每个i,Ti的环上距离等于Di。一个合法的变换序列应是0,1,…,N-1的…

把view或者div绘制 canvas ,导出图片功能实现完整源码附效果图(兼容H5和小程序)

先看下效果图&#xff1a;&#xff08;上面灰色块内的用div和CSS写出来的&#xff0c;然后绘制到canvas&#xff09; 实现此功能需要使用到一个微信小程序的插件&#xff0c;插件官方文档地址&#xff1a; wxml-to-canvas | 微信开放文档 本博客代码环境&#xff0c;uniapp&a…

C 语言中的 switch 语句 case 后面是否需要加大括号

事件原由为编辑器的自动缩进&#xff0c;当 case 换行后不自动缩进。 于是在在想可以可否在 case 后面再大括号&#xff0c;让其自动缩进。 查了资料&#xff0c;发现 case 是可以加大括号的&#xff0c;相当于代码块。 而且还有另外一个用途&#xff0c;可以代码块头部定义变量…

问题 c: 插入排序_插入排序:它是什么,以及它如何工作

问题 c: 插入排序Insertion sort is a simple sorting algorithm for a small number of elements.插入排序是一种针对少量元素的简单排序算法。 例&#xff1a; (Example:) In Insertion sort, you compare the key element with the previous elements. If the previous ele…

在Java连接hbase时出现的问题

问题1&#xff1a; java.net.ConnectException: Connection refused: no further information zookeeper.ClientCnxn: Session 0x0 for server null zookeeper未启动&#xff0c;或无法连接&#xff0c;从查看各节点zookeeper启动状态、端口占用、防火墙等方面查看原因。问题2&…

codeforces 8C. Looking for Order 状压dp

题目链接 给n个物品的坐标&#xff0c; 和一个包裹的位置&#xff0c; 包裹不能移动。 每次最多可以拿两个物品&#xff0c; 然后将它们放到包里&#xff0c; 求将所有物品放到包里所需走的最小路程。 直接状压dp就好了。 #include <iostream> #include <vector> #…

H5刷新当前页面

location.reload();

sql的外键约束和主键约束_SQL主键约束用示例解释

sql的外键约束和主键约束A primary key is a column or a set of columns that uniquely identifies each row in a table.主键是一列或一组列&#xff0c;它们唯一地标识表中的每一行。 It’s called a “constraint” because it causes the system to restrict the data al…

str.format() 格式化字符串函数

语法 它通过{}和:来代替%。 “映射”示例 通过位置 In [1]: {0},{1}.format(kzc,18) Out[1]: kzc,18 In [2]: {},{}.format(kzc,18) Out[2]: kzc,18 In [3]: {1},{0},{1}.format(kzc,18) Out[3]: 18,kzc,18字符串的format函数可以接受不限个参数&#xff0c;位置可以…

css学习任务二:切图写代码

今天的任务是根据UI给的图进行切图&#xff0c;然后写出相应的页面&#xff0c;UI如下&#xff1a; 收获&#xff1a;学习前端知识一年有余&#xff0c;却因为老是找不到实战项目而得不到实际的提高&#xff0c;直到今天的学习我才知道切图是怎么一回事&#xff0c;明白了你看到…

Vue mixins(混入) 附代码示例详解

mixins 我们称它为 “混入” &#xff1b; 官方的解释&#xff1a; 混入 (mixin) 提供了一种非常灵活的方式&#xff0c;来分发 Vue 组件中的可复用功能。一个混入对象可以包含任意组件选项。当组件使用混入对象时&#xff0c;所有混入对象的选项将被“混合”进入该组件本身的…

软件开发面试_如何为成功的软件开发工作面试做准备

软件开发面试Job interviews are stressful for many people. Besides the pressure of getting hired, you have to answer various questions before and during the interview – like what to wear, how to get prepared, how much money to ask for, and much more.求职面…

bzoj1070————2016——3——14

传送门&#xff1a;http://www.lydsy.com/JudgeOnline/problem.php?id1070&#xff1b; 题目概括&#xff1a; Description 同一时刻有N位车主带着他们的爱车来到了汽车维修中心。维修中心共有M位技术人员&#xff0c;不同的技术人员对不同的车进行维修所用的时间是不同的。现…

CSS兼容性汇总

http://www.jb51.net/css/469020.html CSS属性Hack 把属性hack分为 前缀属性hack和 后缀属性hack CSS属性Hack&#xff08;前缀&#xff09;针对的浏览器_color:red;IE6及其以下的版本*color:red ;或者 color:red;IE7及其以下的版本CSS属性Hack&#xff08;后缀&#xff09;针对…

Vue 过渡组件,可实现组件或者页面的动画过渡或者css过渡

使用过渡效果&#xff0c;可以优化用户体验&#xff0c;Vue给我们封装了一个很好用的组件&#xff0c;专门用来处理过渡效果&#xff0c;下面我们来看看怎么使用它&#xff1b; Vue 提供了 transition 的封装组件&#xff0c;在下列情形中&#xff0c;可以给任何元素和组件添加…

解释型和编译型编程语言_解释型和编译型编程语言:有什么区别?

解释型和编译型编程语言Every program is a set of instructions, whether it’s to add two numbers or send a request over the internet. Compilers and interpreters take human-readable code and convert it to computer-readable machine code. 每个程序都是一组指令&a…

Beta 冲刺 (1/7)

队名&#xff1a;天机组 组员1友林 228&#xff08;组长&#xff09; 今日完成&#xff1a;查找了相关资料及api文档。明天计划&#xff1a;继续相关资料及源码。剩余任务&#xff1a;优化网络通讯机制主要困难&#xff1a;查找的代码调试较为困难。收获及疑问&#xff1a;暂无…

Vue全局路由侦听beforeEach路由守卫附代码使用示例

使用路由守卫beforeEach&#xff0c;可以实现路由侦听&#xff1b; 全局侦听路由跳转的实现代码&#xff1a; app.vue onLaunch: function(e) {this.$router.beforeEach((to, from, next) > {console.log($router,to,from);next();}); } to 是跳转路由之后的page对象&am…

Debug模式下加载文件,运行程序异常的慢

今天在进行单元测试的时候&#xff0c;debug模式下加载速度很慢&#xff0c;但是run模式下速度很快。 原因&#xff1a;在debug模式下&#xff0c;断点位置不当&#xff0c;解决办法 移除编译器中的所有断点。转载于:https://www.cnblogs.com/nww57/p/5277113.html

如何在Python中对字符串进行子字符串化

Python offers many ways to substring a string. It is often called ‘slicing’.Python提供了许多对字符串进行子字符串化的方法。 它通常被称为“切片”。 It follows this template:它遵循以下模板&#xff1a; string[start: end: step]Where,哪里&#xff0c; start:…

HttpPost导包遇到的问题

直接在当前项目 build.gradle文件修改如下 android { useLibrary org.apache.http.legacy compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.ican.subjects" minSdkVe…

真相也许是这样

这两天同学们陆续上传了自己编写的小程序&#xff0c;等老师审查给成绩的时候才发现一部分同学是负分。原因就是他们有抄袭之嫌。恰巧我当时就在一位得了负分的同学旁边&#xff0c;他一脸郁闷的对我说”没道理啊&#xff0c;这是我自己编的啊“。这个我知道&#xff0c;的确是…

微信小程序全局监听路由变化

小程序有一个API可以侦听全局路由跳转&#xff0c;官方文档里面没有但是可以使用。 wx.onAppRoute((res) > { console.log(路由监听,{res}) })

c语言面向对象编程中的类_C ++中的面向对象编程

c语言面向对象编程中的类Object oriented programming, OOP for short, aims to implement real world entities like inheritance, hiding and polymorphism in programming. 面向对象的编程&#xff0c;简称OOP&#xff0c;旨在在编程中实现诸如继承&#xff0c;隐藏和多态性…

Maven build标签

前言&#xff1a; <build >设置&#xff0c;主要用于编译设置 1.分类 在Maven的pom.xml文件中&#xff0c;存在如下两种<build>&#xff1a; &#xff08;1&#xff09;全局配置&#xff08;project build&#xff09; 针对整个项目的所有情况都有效 &#xff08;2…

Ant Design Vue 表格内编辑(附完整源码及效果图)

效果图&#xff1a; 实现关键代码就是表单的 columns 属性对象下标的 scopedSlots&#xff1a; scopedSlots: {customRender: } 实现完整代码&#xff1a; <template><div><div class"table-wrapper"><!--每个列的宽度必须比列名总长度大才能…

shell基本用法

#!/bin/bash #使用哪个shell执行echo "hello world" username"tom" echo $username#chmod x ./test.sh 设置可以执行文件#for循环输出 for skill in Ada Coffe Action Java; doecho "I am good at ${skill}Script" done #for file in ls /etc; d…

brad wu_一百万归功于Brad Traversy

brad wuBrad Traversy is one of the most appreciated web development teachers on YouTube and he is getting close to 1 Million subscribers. We decided to help him reach this goal by the end of 2019.布拉德特拉弗西 ( Brad Traversy)是YouTube上最受赞赏的网络开发…

CSS常见布局解决方案

最近要准备移动端项目&#xff0c;大半年没好好写过CSS了&#xff0c;今天恶补了一下CSS的一些布局&#xff0c;下面做一些分享。 水平居中布局 1.margin 定宽 <div class"parent"><div class"child">Demo</div> </div><style…

java.io.EOFException java.io.ObjectInputStream$PeekInputStream.readFully 错误

omcat 启动时报以下错误: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully 错误 这个错误 碰到好几次了&#xff0c;我的tomcat使用非常频繁&#xff0c;而且部署项目比较多&#xff0c;经常会出一些自己看不懂的问题&#xff0c; 今天解决了这…