Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://github.com/p-society/gCSB
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhaev26 committed Feb 7, 2024
2 parents 3bd8fb1 + 3a26022 commit 8f760f4
Show file tree
Hide file tree
Showing 20 changed files with 794 additions and 202 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/check_admin_app.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/check_user_app.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "admin",
"cwd": "apps\\admin",
"request": "launch",
"type": "dart"
},
{
"name": "admin (profile mode)",
"cwd": "apps\\admin",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "admin (release mode)",
"cwd": "apps\\admin",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "users",
"cwd": "apps\\users",
"request": "launch",
"type": "dart"
},
{
"name": "users (profile mode)",
"cwd": "apps\\users",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "users (release mode)",
"cwd": "apps\\users",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
Binary file added apps/admin/assets/images/bg_design_gCSB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/admin/lib/constants/colors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

146 changes: 146 additions & 0 deletions apps/admin/lib/login_admin.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
import 'package:admin/textfield_login.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class LoginPageAdmin extends StatelessWidget {
const LoginPageAdmin({super.key});

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Expanded(
child: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
//aplying gradient
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color(0xFF111114),
Color(0xFF161A3A),
Color(0xFF171D45),
],
),
),
height: double.infinity,
child: Padding(
padding: const EdgeInsets.fromLTRB(40.0, 0, 40, 0.0),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const SizedBox(
height: 70,
),
const Text(
'Create your Account',
style: TextStyle(
color: Color(0xFFE0DADD),
fontSize: 28,
fontFamily: 'Open Sans',
fontWeight: FontWeight.w800,
height: 0,
),
),
const Text(
'Fill in the details to create your account',
style: TextStyle(
color: Color(0xFFBAAFBB),
fontSize: 16,
fontFamily: 'Poppins',
fontWeight: FontWeight.w500,
height: 0,
),
),
const SizedBox(
height: 18,
),
AspectRatio(
aspectRatio: 16 / 9,
child: Image(
image: AssetImage(
'assets/images/sports_illustration_gCSB.png')),
),
const SizedBox(height: 20),
const TextfieldLogin(
aboveText: 'Name',
hintText: 'Enter your Name'), //TextField for name
const TextfieldLogin(
aboveText: 'E-mail',
hintText: 'Enter your E-mail'), //TextField for email
const TextfieldLogin(
aboveText: 'Phone Number',
hintText:
'Enter your phone number'), //TextField for phone number
const TextfieldLogin(
aboveText: 'Password',
hintText:
'Enter your password'), //TextField for password
const SizedBox(
height: 20,
),
SizedBox(
width: 320,
child: TextButton(
onPressed: () {
// _onButtonPressed();
},
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
10.0), // Adjust the radius as needed
),
backgroundColor:
const Color.fromRGBO(225, 25, 109, 1)),
child: const Text(
'Register',
style: TextStyle(color: Colors.white),
),
),
),
const SizedBox(
height: 15,
),
Center(
child: Row(
children: [
const Text(
'Already have an account? ',
style: TextStyle(
color: Colors.white,
fontSize: 15,
fontFamily: 'Open Sans',
fontWeight: FontWeight.w500,
height: 0,
),
),
GestureDetector(
//making signup text clickable
onTap: () {
print('signup clicked');
},
child: const Text(
'Sign Up',
style: TextStyle(
color: Color(0xFFC01A60),
fontSize: 15,
fontFamily: 'Open Sans',
fontWeight: FontWeight.w500,
height: 0,
),
),
)
],
),
),
],
),
),
),
),
),
),
);
}
}
Loading

0 comments on commit 8f760f4

Please sign in to comment.