الانتقال إلى المحتوى
الأقسام
اللغة، حاليًا العربية
نظام تصميم Rastrillo

الشاشات

شاشات تسجيل الدخول هي الجزء ‎signin‎ المرفق نفسه، معروضًا في حالاته. والشاشتان الأخيرتان مثالان للنسخ.

كل مثال يعمل فعلًا، لكن روابطه لا تؤدي إلى أي مكان.

signin signin-title live-head

تسجيل الدخول

أظهر طريقة دخول رئيسية واحدة، والبقية تحتها. ولا تفصل التسجيل عن الدخول: زر واحد يصلح للاثنين يقلّل ما تشرحه وما يمكن أن يخطئ.

طلب العنوان

حقل واحد وزر واحد. لا شيء يُحفظ ولا شيء يُسرق. ورastrillo يقوم بذلك جاهزًا.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

العودة عبر Keymail

يتذكّر المتصفح كيف دخل في المرة السابقة. نقرة واحدة ترسل العنوان المحفوظ، ويُتحقَّق منه من جديد من البداية.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

مفتاح مرور

أسرع طريق للدخول لمن يملكه، ولا شيء يُكتب. وقدّم طريقة ثانية أيضًا: الناس يفقدون أجهزتهم، والمفتاح الذي لا يعمل باب موصد.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

بعد إرسال الرابط

أعد عرض العنوان كما كُتب. فهي الفرصة الوحيدة لملاحظة خطأ مطبعي قبل انتظار رسالة لن تصل أبدًا.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

بعد إرسال الرابط، في متصفح آخر

إذا لم يكن هذا المتصفح هو من أرسل العنوان، فالصفحة لا تخمّنه.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

حين عُرض Keymail وأُرسل رابط

سطر واحد يقول إن رابطًا أُرسل هذه المرة. ولا يخمّن السبب.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

في الطريق إلى Keymail

تنتقل الصفحة وحدها، ومعها رابط تحسّبًا لألّا تفعل.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

عنوان لا يبدو صحيحًا

الرسالة تخصّ الحقل، ومنه يبدأ التركيز.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

حين لم يستطع Keymail التأكيد

يتغيّر الزر ليرسل رابطًا بدلًا من ذلك، فلا يعلق أحد.

معاينة
{{define "title"}}{{template "signin-title" (dict "State" .Signin "Brand" .Brand)}}{{end}}
{{define "content"}}{{template "signin" (dict "State" .Signin "Brand" .Brand)}}{{end}}

‏Google وApple وغيرهما

نعطيك الأزرار مرسومة كما تشترط كل شركة. أما تسجيل الدخول نفسه فلا نقدّمه: أنت من يصله بالمزوّد الذي تستخدمه.

معاينة
<section rst-box>
  <h1>تسجيل الدخول</h1>
  <div rst-signin-providers>
    <form method="post" action="/auth/google">
      <button rst-btn="block" type="submit">
        <svg aria-hidden="true" focusable="false" width="1.1em" height="1.1em" viewBox="0 0 48 48"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/></svg>
        المتابعة عبر Google
      </button>
    </form>
    <form method="post" action="/auth/apple">
      <button rst-btn="block" type="submit">
        <svg aria-hidden="true" focusable="false" width="1.1em" height="1.1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12.15 6.9c-.95 0-2.42-1.08-3.96-1.04-2.04.03-3.91 1.18-4.96 3.01-2.12 3.68-.55 9.1 1.52 12.09 1.01 1.45 2.2 3.09 3.79 3.04 1.52-.07 2.09-.99 3.94-.99 1.83 0 2.35.99 3.96.95 1.64-.03 2.68-1.48 3.68-2.95 1.15-1.69 1.63-3.33 1.66-3.42-.04-.01-3.18-1.22-3.22-4.86-.03-3.04 2.48-4.49 2.6-4.56-1.43-2.09-3.63-2.32-4.39-2.38-2-.15-3.68 1.09-4.62 1.09zm3.38-3.07c.84-1.01 1.4-2.43 1.25-3.83-1.21.05-2.66.8-3.53 1.82-.78.9-1.46 2.34-1.27 3.71 1.34.1 2.71-.69 3.55-1.7z"/></svg>
        المتابعة عبر Apple
      </button>
    </form>
    <a href="/signin">استخدم بريدك الإلكتروني بدلًا من ذلك</a>
  </div>
</section>

البريد وكلمة المرور

وإن كنت ستستخدم كلمات المرور رغم ذلك، فاحتفظ بالتخطيط نفسه ذي المدخل الرئيسي الواحد، وضع طريقة إعادة التعيين أسفل الزر مباشرة بدل إخفائها.

لا نوصي بكلمات المرور

لا يقدّم rastrillo هذه الشاشة. يعيد الناس استخدام كلمات المرور، وتتسرّب، ويقع عليك عبء حفظها بأمان. استخدم رابطًا في البريد مع مفتاح مرور، أو مفاتيح المرور وحدها. الترميز موجود هنا لأن بعض المنتجات ما زالت تحتاجه.

معاينة
<section rst-box>
  <h1>تسجيل الدخول</h1>
  <form rst-form method="post" action="/signin">
    <div rst-field>
      <label rst-field-label for="pw-email">البريد الإلكتروني</label>
      <input rst-input id="pw-email" name="email" type="email" autocomplete="email" required>
    </div>
    <div rst-field>
      <label rst-field-label for="pw-pass">كلمة المرور</label>
      <input rst-input id="pw-pass" name="password" type="password" autocomplete="current-password" required>
    </div>
    <button rst-btn="primary" type="submit">متابعة</button>
  </form>
</section>