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

Css changes for desktop version and Update on Readme file #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ Inspired from paper dialog seen on YouTube during COVID-19 outbreak.
title="Dialog title"
description="Dialog description"
imgSrc="sample.png"
imgWidth="300px"
imgHeight="200px"
position="bottom-left"
link="example.com"
txtColor="red"
></robomx-webdialogalert>


Expand All @@ -44,11 +43,9 @@ Inspired from paper dialog seen on YouTube during COVID-19 outbreak.
| `title` | `Dialog title` | `string content` | Specify title of the dialog |
| `description` | `Dialog description ` | `string content` | Give brief information about the dialog. |
| `imgSrc` | `null` | `Image path` | Specify image source url or relative path. |
| `imgWidth` | `300px` | `px, em, %` | Specify width of the image. |
| `imgHeight` | `200px` | `px, em, %` | Specify height of the image. |
| `position` | `bottom-left` | `top-left, top-right, bottom-left, bottom-right, center` | Specify position of the dialog box. |
| `darkMode` | `false` | `boolean` | Dark mode setup. |
| `bgColor` | `Hex Code, RGB` | `#fff` | Backgroung color of dialog box. |
| `txtColor` | `Hex Code, RGB` | `#373737` | Text color of dialog content. |
| `btnColor` | `Hex Code, RGB` | `#6c6b6b` | Button color of 'Later'. |


15 changes: 12 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@

<body>

<robomx-webdialogalert title="Dialog title" description="Dialog description" imgSrc="assets/sample.png" imgWidth="" imgHeight="100px" position="bottom-left" darkMode="false" bgColor="" txtColor="" btnColor=""></robomx-webdialogalert>
<robomx-webdialogalert title="Dialog title" description="Dialog description"
imgSrc="https://pngimg.com/uploads/duck/duck_PNG5011.png" position="bottom-right" darkMode="false" bgColor=""
txtColor="">
</robomx-webdialogalert>

<script src="src/webdialogalert.js"></script>

<h1>HTML Ipsum Presents</h1>

<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci,
<p><strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas.
Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam
egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et
sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet,
wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci,
sagittis tempus lacus enim ac dui. <a href="#">Donec non enim</a> in turpis pulvinar facilisis. Ut felis.</p>

<h2>Header Level 2</h2>
Expand All @@ -26,7 +33,9 @@ <h2>Header Level 2</h2>
</ol>

<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue.
Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus
est malesuada tellus, at luctus
turpis elit sit amet quam. Vivamus pretium ornare est.</p>
</blockquote>

Expand Down
Loading