Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/v1/fix seeder #7

Merged
merged 4 commits into from
Sep 2, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function sendEmail(Request $request)
'subject' => 'required|string',
'message' => 'required|string',
]);
$email_company = '[email protected]';
$email_company = env('MAIL_FROM_ADDRESS');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this .env key to "LANDY_MAIL_RECEIVER"

Mail::to($email_company)->send(new SendEmail($request));

return ApiResponse::success();
Expand Down
Binary file modified src/Images/landy-img/.DS_Store
Binary file not shown.
Binary file added src/Images/landy-img/Full-logo-badaso-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Images/landy-img/dashboard.png
Binary file not shown.
8 changes: 8 additions & 0 deletions src/Images/landy-img/dashboard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Images/landy-img/layers.png
Binary file not shown.
39 changes: 39 additions & 0 deletions src/Images/landy-img/layers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions src/Images/landy-img/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Images/landy-img/reload.jpg
Binary file not shown.
Binary file removed src/Images/landy-img/s-logo.jpeg
Binary file not shown.
8 changes: 8 additions & 0 deletions src/Images/landy-img/shortcode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Images/landy-img/tailwind.jpg
Binary file not shown.
1 change: 1 addition & 0 deletions src/Images/landy-img/tailwindcss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Providers/LandyThemeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function boot()
$this->publishes([
__DIR__.'/../Seeder' => database_path('seeders/Badaso/LandyTheme'),
__DIR__.'/../Config/badaso-landy-theme.php' => config_path('badaso-landy-theme.php'),
__DIR__.'/../Images/thumbnail-landy/' => storage_path('app/public/photos/1'),
__DIR__.'/../Images/landy-img/' => storage_path('app/public/photos/1'),
__DIR__.'/../resources/customization/' => resource_path('js/badaso/theme/landy-theme/'),
__DIR__ . '/../Tailwind/' => base_path(),
], 'BadasoLandyTheme');
Expand Down
12 changes: 6 additions & 6 deletions src/Seeder/LandyThemeContentsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function run()
"name": "title",
"label": "Title",
"type": "text",
"data": "Solid Bootstrap 5"
"data": "Solid Tailwind CSS"
},
"description": {
"name": "description",
Expand All @@ -247,7 +247,7 @@ public function run()
"name": "logo",
"label": "logo",
"type": "image",
"data": "photos/1/tailwind.jpg"
"data": "photos/1/tailwindcss.svg"
}
}
},
Expand All @@ -272,7 +272,7 @@ public function run()
"name": "logo",
"label": "logo",
"type": "image",
"data": "photos/1/s-logo.jpeg"
"data": "photos/1/shortcode.svg"
}
}
},
Expand All @@ -297,7 +297,7 @@ public function run()
"name": "logo",
"label": "logo",
"type": "image",
"data": "photos/1/dashboard.png"
"data": "photos/1/dashboard.svg"
}
}
},
Expand All @@ -322,7 +322,7 @@ public function run()
"name": "logo",
"label": "logo",
"type": "image",
"data": "photos/1/layers.png"
"data": "photos/1/layers.svg"
}
}
},
Expand All @@ -347,7 +347,7 @@ public function run()
"name": "logo",
"label": "logo",
"type": "image",
"data": "photos/1/reload.jpg"
"data": "photos/1/refresh.svg"
}
}
}
Expand Down
207 changes: 195 additions & 12 deletions src/resources/views/components/landy-layout-form.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,195 @@
<div class="container mx-auto max-w-[1280px] mt-10 lg:mt-16 lg:w-1/2 px-4">
<div class="card w-96 bg-base-100 shadow-xl">
<div class="card-body">
<p> You just got message from {{ $email }} </p>
<p> Subject : {{ $subject }} </p>
<p> Name :{{ $name }} </p>
<p> Phone :{{ $phone }} </p>
<p>Message :{{ $messages }} </p>

</div>
</div>
</div>

<!doctype html>
<html style="color: black;">

<head style="color: black;">
<meta name="viewport" content="width=device-width" style="color: black;">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" style="color: black;">
<title style="color: black;">Email template</title>
<style style="color: black;">
* {
color: black;
}

@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}

table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span,
table[class=body] a {
font-size: 16px !important;
}

table[class=body] .wrapper,
table[class=body] .article {
padding: 10px !important;
}

table[class=body] .content {
padding: 0 !important;
}

table[class=body] .container {
padding: 0 !important;
width: 100% !important;
}

table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}

table[class=body] .btn table {
width: 100% !important;
}

table[class=body] .btn a {
width: 100% !important;
}

table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}

@media all {
.ExternalClass {
width: 100%;
}

.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}

.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}

#MessageViewBody a {
color: inherit;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: inherit;
}

.btn-primary table td:hover {
background-color: #34495e !important;
}

.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
}

.btnRowBlock {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.btnRowBlock .btnWrapper {
padding: 0 2px;
}

.btnWrapper {
display: block;
}

.badaso-btn.btn-primary {
border: 1px solid #06bbd3;
border-radius: 3px;
color: #06bbd3;
display: inline-block;
font-size: 16px;
font-weight: 400;
line-height: 1.2em;
padding: 10px 20px;
text-decoration: none !important;
transition: background .3s, color .3s;
margin-bottom: 16px;
}

.has-text-weight-bold {
font-weight: 700 !important;
}

.btn-primary {
background: #06bbd3 !important;
color: #fff !important;
}

.separator {
margin: 32px 0;
border: 1px solid #c4c4c4;
}

.gray {
color: #999999 !important;
}
}
</style>
</head>

<body class="" style="box-sizing: border-box; position: relative; color: #718096; height: 100%; width: 100% !important; background-color: #f1f1f1; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-top: 4px solid #06bbd3;">
<span class="preheader" style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;"></span>
<table border="0" cellpadding="0" cellspacing="0" class="body" style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; border-bottom: 1px solid #edf2f7; border-top: 1px solid #edf2f7; margin: 0; padding: 0; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background-color: #f1f1f1;">
<tr style="color: black;">
<td style="color: black; box-sizing: border-box; position: relative; font-family: sans-serif; font-size: 14px; vertical-align: top;"> </td>
<td class="container" style="color: black; box-sizing: border-box; position: relative; font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; Margin: 0 auto; max-width: 580px; padding: 10px; width: 580px;">
<div style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; text-align: center;"><img src="http://localhost:8000/storage/photos/shares/logo-144px.png" width="25%" alt="Logo Badaso" style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; max-width: 100%;"></div>
<div class="content" style="color: black; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0; width: 100%; box-sizing: border-box; display: block; Margin: 0 auto; max-width: 580px; padding: 10px;">

<table class="main" style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%; background: #ffffff; border-radius: 3px;">
<tr style="color: black;">
<td class="wrapper" style="color: black; position: relative; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; background-color: #edf2f7; margin: 0; width: 100%; font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; padding: 20px;">
<table border="0" cellpadding="0" cellspacing="0" style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;">
<tr style="color: black;">
<td style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative;">
<p style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">You just got message from {{ $email }} ,</p>

<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">Subject : {{ $subject }}</h1>

<h1 style="box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; color: #3d4852; font-size: 18px; font-weight: bold; margin-top: 0; text-align: left;">Message : </h1>

<p style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">{{ $messages }}</p>

<p style="color: black; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; position: relative; font-size: 16px; line-height: 1.5em; margin-top: 0; text-align: left;">Regards,<br style="color: black;">{{ $name }}<br style="color: black;">{{ $phone}}</p>
</td>
</tr>
</table>
</td>
</tr>

</table>

</div>
</td>
<td style="color: black; box-sizing: border-box; position: relative; font-family: sans-serif; font-size: 14px; vertical-align: top;"> </td>
</tr>
</table>
</body>

</html>


Loading