add new layout

This commit is contained in:
paoloGuagnano
2024-03-08 15:32:42 +01:00
parent 2d5fba8897
commit e8b04d0155
14 changed files with 13 additions and 69 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,4 +0,0 @@
<svg width="64" height="70" viewBox="0 0 64 70" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M38 4.1547C34.2872 2.01111 29.7128 2.01111 26 4.1547L8.28719 14.3812C4.57437 16.5248 2.28719 20.4863 2.28719 24.7735V45.2265C2.28719 49.5137 4.57437 53.4752 8.28719 55.6188L26 65.8453C29.7128 67.9889 34.2872 67.9889 38 65.8453L55.7128 55.6188C59.4256 53.4752 61.7128 49.5137 61.7128 45.2265V24.7735C61.7128 20.4863 59.4256 16.5248 55.7128 14.3812L38 4.1547Z" fill="white" stroke="black" stroke-width="4"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 30.4345V44H47V30.4345L32.6575 39.8288L32 40.2595L31.3425 39.8288L17 30.4345ZM45.8 26H32H18.2V28.3515L32 37.3905L45.8 28.3515V26Z" fill="black"/>
</svg>

Before

Width:  |  Height:  |  Size: 716 B

View File

@@ -22,18 +22,3 @@ final List<Course> courses = [
color: const Color(0xFF80A4FF),
),
];
final List<Course> recentCourses = [
Course(title: "State Machine"),
Course(
title: "Animated Menu",
color: const Color(0xFF9CC5FF),
iconSrc: "assets/icons/code.svg",
),
Course(title: "Flutter with Rive"),
Course(
title: "Animated Menu",
color: const Color(0xFF9CC5FF),
iconSrc: "assets/icons/code.svg",
),
];

View File

@@ -20,7 +20,7 @@ class HomePage extends StatelessWidget {
Padding(
padding: const EdgeInsets.all(20),
child: Text(
"Courses",
"TRADUTTORE ITALIANO DIALETTO MTTOLESE",
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
color: Colors.black, fontWeight: FontWeight.bold),
),
@@ -42,25 +42,6 @@ class HomePage extends StatelessWidget {
.toList(),
),
),
Padding(
padding: const EdgeInsets.all(20),
child: Text(
"Recent",
style: Theme.of(context).textTheme.headlineSmall!.copyWith(
color: Colors.black, fontWeight: FontWeight.bold),
),
),
...recentCourses
.map((course) => Padding(
padding: const EdgeInsets.only(
left: 20, right: 20, bottom: 20),
child: SecondaryCourseCard(
title: course.title,
iconsSrc: course.iconSrc,
colorl: course.color,
),
))
.toList(),
],
),
),

View File

@@ -35,7 +35,7 @@ class AnimatedBtn extends StatelessWidget {
const Icon(CupertinoIcons.arrow_right),
const SizedBox(width: 8),
Text(
"Start the course",
"Vai al Traduttore",
style: Theme.of(context).textTheme.labelLarge,
)
],

View File

@@ -41,7 +41,7 @@ void showCustomDialog(BuildContext context, {required ValueChanged onValue}) {
child: Column(
children: [
const Text(
"Sign in",
"Accedi",
style: TextStyle(
fontSize: 34,
fontFamily: "Poppins",
@@ -51,7 +51,7 @@ void showCustomDialog(BuildContext context, {required ValueChanged onValue}) {
const Padding(
padding: EdgeInsets.symmetric(vertical: 16),
child: Text(
"Access to 240+ hours of content. Learn design and code, by building real apps with Flutter and Swift.",
"Immergetevi nella conoscenza dello splendido dialetto Mottolese. Accedi con Email e Password.",
textAlign: TextAlign.center,
),
),
@@ -64,7 +64,7 @@ void showCustomDialog(BuildContext context, {required ValueChanged onValue}) {
Padding(
padding: EdgeInsets.symmetric(horizontal: 16),
child: Text(
"OR",
"OPPURE",
style: TextStyle(
color: Colors.black26,
fontWeight: FontWeight.w500,
@@ -77,7 +77,7 @@ void showCustomDialog(BuildContext context, {required ValueChanged onValue}) {
const Padding(
padding: EdgeInsets.symmetric(vertical: 24),
child: Text(
"Sign up with Email, Apple or Google",
"Registrati con un indirizzo email valido, è gratuito.",
style: TextStyle(color: Colors.black54),
),
),
@@ -93,24 +93,6 @@ void showCustomDialog(BuildContext context, {required ValueChanged onValue}) {
width: 64,
),
),
IconButton(
onPressed: () {},
padding: EdgeInsets.zero,
icon: SvgPicture.asset(
"assets/icons/apple_box.svg",
height: 64,
width: 64,
),
),
IconButton(
onPressed: () {},
padding: EdgeInsets.zero,
icon: SvgPicture.asset(
"assets/icons/google_box.svg",
height: 64,
width: 64,
),
),
],
),
],

View File

@@ -152,7 +152,7 @@ class _SignInFormState extends State<SignInForm> {
singIn(context);
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFF77D8E),
backgroundColor: const Color(0xFF03490E),
minimumSize: const Size(double.infinity, 56),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
@@ -165,9 +165,9 @@ class _SignInFormState extends State<SignInForm> {
),
icon: const Icon(
CupertinoIcons.arrow_right,
color: Color(0xFFFE0037),
color: Color(0xFFFFFFFF),
),
label: const Text("Sign In"),
label: const Text("Accedi"),
),
),
],

View File

@@ -72,9 +72,9 @@ class _OnbodingScreenState extends State<OnbodingScreen> {
child: Column(
children: [
Text(
"Learn design & code",
"Benvenuti nel traduttore Mottolese",
style: TextStyle(
fontSize: 60,
fontSize: 45,
fontWeight: FontWeight.w700,
fontFamily: "Poppins",
height: 1.2,
@@ -82,7 +82,7 @@ class _OnbodingScreenState extends State<OnbodingScreen> {
),
SizedBox(height: 16),
Text(
"Dont skip design. Learn design and code, by building real apps with Flutter and Swift. Complete courses about the best tools.",
"Ideato e creato da: Kagir, Ken ",
),
],
),
@@ -118,7 +118,7 @@ class _OnbodingScreenState extends State<OnbodingScreen> {
const Padding(
padding: EdgeInsets.symmetric(vertical: 24),
child: Text(
"Purchase includes access to 30+ courses, 240+ premium tutorials, 120+ hours of videos, source files and certificates."),
"Per maggiori informazioni contattare Marco all'indirizzo email: marco@esempio.com. Tell: +39 111 2233 444"),
)
],
),