Skip to content

Commit

Permalink
Merge pull request #22 from maitrakhatri/temp-dev
Browse files Browse the repository at this point in the history
New Components
  • Loading branch information
maitrakhatri authored Jul 28, 2022
2 parents fbf2713 + c5ddc18 commit ac51eea
Show file tree
Hide file tree
Showing 31 changed files with 648 additions and 47 deletions.
38 changes: 38 additions & 0 deletions CSS/Components/list/list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.list-inline li {
display: inline;
margin-right: 1rem;
}

.list-stacked {
list-style: none;
padding: 1rem;
background-color: var(--text-gray)
}

.list-stacked li {
margin-bottom: 1.5rem;
}

.stacked-component {
display: grid;
grid-template-areas:
"a t"
"a s";
width: fit-content;
background-color: var(--gray);
padding: 1rem;
border-radius: .25rem;
}

.stacked-component .avatar {
grid-area: a;
margin-right: 1rem;
}

.stacked-component .title {
grid-area: t;
}

.stacked-component .sub-title {
grid-area: s;
}
46 changes: 46 additions & 0 deletions CSS/Components/list/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List</title>
<link rel="stylesheet" href="list.css">
</head>
<body>

<ul class="list-inline">
<li>Spaced</li>
<li>Inline</li>
<li>List</li>
</ul>

<ul class="list-stacked">
<li>
<div class="stacked-component">
<img class="avatar avatar-round" src="../../../assets/avatar.svg" alt="avatar">
<div class="title">Maitra Khatri</div>
<div class="sub-title">maitrakhatri@gmail.com</div>
</div>
</li>

<li>
<div class="stacked-component">
<img class="avatar avatar-round" src="../../../assets/avatar.svg" alt="avatar">
<div class="title">Maitra Khatri</div>
<div class="sub-title">maitrakhatri@gmail.com</div>
</div>
</li>

<li>
<div class="stacked-component">
<img class="avatar avatar-round" src="../../../assets/avatar.svg" alt="avatar">
<div class="title">Maitra Khatri</div>
<div class="sub-title">maitrakhatri@gmail.com</div>
</div>
</li>

</ul>

</body>
</html>
13 changes: 13 additions & 0 deletions CSS/Components/modal/modal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.modal .card-body {
border-bottom: 0.063rem solid #000000;
}

.modal .card-action {
padding: .75rem;
display: flex;
justify-content: end;
}

.modal button {
margin: 0.25rem;
}
29 changes: 29 additions & 0 deletions CSS/Components/modal/modal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>modal</title>
<link rel="stylesheet" href="modal.css">
</head>
<body>

<div class="modal card">
<div class="card-title dismiss">
Modal Title
<img src="../../../assets/close_black_24dp.svg" alt="close button">
</div>
<div class="card-body">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate voluptates dignissimos possimus distinctio sapiente animi a, nobis officia est neque. Id quam doloribus iusto enim?
</p>
</div>
<div class="card-action">
<button class="btn btn-lightblue">Accept</button>
<button class="btn btn-red">Deny</button>
</div>
</div>

</body>
</html>
28 changes: 28 additions & 0 deletions CSS/Components/toast/toast.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.snackbar {
background-color: #333333;
border-radius: .5rem;
display: inline-flex;
align-items: center;
gap: 1rem;
padding: .15rem .75rem;
color: #ffffff;
}

.snackbar a {
text-decoration: none;
color: #8a2be2;
}

.snackbar a, .snackbar i {
padding: 0.25rem;
}

.snackbar a:hover,.snackbar i img:hover {
cursor: pointer;
background-color:#80808042;
}

.snackbar button {
padding: 1rem 2rem;
margin: 2rem;
}
19 changes: 19 additions & 0 deletions CSS/Components/toast/toast.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>toast</title>
<link rel="stylesheet" href="toast.css">
</head>
<body>

<div class="snackbar">
<p>Can't send photo. Retry in 5 seconds.</p>
<a href="#">RETRY</a>
<i><img src="../../../assets/close_black_24dp.svg" alt=""></i>
</div>

</body>
</html>
12 changes: 11 additions & 1 deletion CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
@import url(./Components/text-utilities/text-utilities.css);
@import url(./Components/navigation/navigation.css);
@import url(./Components/simplified-grid/simplified-grid.css);
@import url(./Components/list/list.css);
@import url(./Components/modal/modal.css);
@import url(./Components/toast/toast.css);

/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;600;700;900&display=swap');

/* FONT AWESOME ICONS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* APPLYING FONT */
* {
font-family: 'Source Sans Pro', sans-serif;
Expand All @@ -33,4 +39,8 @@
--yellow: #FCA311;
--gray: #FAFAFA;
--text-gray: #333333;
}
}

.checked {
color: orange;
}
49 changes: 26 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
# gozo-UI
Simple Reasy to use CSS Component Library
## getting-started
## Getting-started
copy paste this code in your `<head>` section to use the CSS library
- `<link rel="stylesheet" type="text/css" href="https://gozo-ui.netlify.app/CSS/style.css">`

head over to the documentation website for details on how to use components
- [Documentation Website](https://gozo-ui.netlify.app/docs/components.html)
## components
- alert
- avatar
- badge
- button
- card
- image
- input
- navigation
- simplified grid
- slider
- text utilities
- utilities
## website
### homepage
## Components
- Alert
- Avatar
- Badge
- Button
- Card
- Image
- Input
- Navigation
- Simplified grid
- Slider
- List
- Rating
- Modal
- Snackbar
- Text utilities
- Utilities
## Documentation Website
### Homepage
![gozo UI Homepage - Maitra Khatri](https://user-images.githubusercontent.com/54719132/153269251-45bb95c0-743a-4a13-94d4-227246bf0df5.png)
### getting started
![gozo UI Getting Started - Maitra Khatri](https://user-images.githubusercontent.com/54719132/153269307-3853ec1e-d074-45d9-8bf9-c24e3a3225e5.png)
### sample1 - colors
![gozo UI Design System - Maitra](https://user-images.githubusercontent.com/54719132/153269389-9eeb80fe-5490-49f7-a5c4-c4aa5cec7ab8.png)
### sample2 - avatar
![gozo UI Avatar - Maitra Khatri](https://user-images.githubusercontent.com/54719132/153269464-ff2562ed-85a2-4da3-8f1c-1ce86c5b94bf.png)

### Getting Started
![Screenshot 2022-03-30 at 20-24-43 gozo UI Getting Started](https://user-images.githubusercontent.com/54719132/160865201-c6cbce46-0c97-4974-869c-2087101bd95d.png)
### Sample1 - Colors
![Screenshot 2022-03-30 at 20-25-15 gozo UI Design System](https://user-images.githubusercontent.com/54719132/160865303-7349cc49-381d-46a0-aacf-f2677e757d32.png)
### Sample2 - Avatar
![Screenshot 2022-03-30 at 20-25-53 gozo UI Avatar](https://user-images.githubusercontent.com/54719132/160865369-237800c6-57fc-4fc7-9093-1521c050bbcd.png)
## time spend on Coding
[![wakatime](https://wakatime.com/badge/user/05f14298-6a22-4625-9558-d6e0c3d352b9/project/506cfb98-cafc-47bd-929a-7d3d495a49a9.svg)](https://wakatime.com/badge/user/05f14298-6a22-4625-9558-d6e0c3d352b9/project/506cfb98-cafc-47bd-929a-7d3d495a49a9)
Binary file added assets/toast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Newly added components
- List
- Rating
- Modal
- Toast
8 changes: 8 additions & 0 deletions docs/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
<a class="sidebar-components" href="./components/navigation.html">Navigation</a>
<a class="sidebar-components" href="./components/simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./components/slider.html">Slider</a>
<a class="sidebar-components" href="./components/list.html">List</a>
<a class="sidebar-components" href="./components/rating.html">Rating</a>
<a class="sidebar-components" href="./components/modal.html">Modal</a>
<a class="sidebar-components" href="./components/snackbar.html">Snackbar</a>
<a class="sidebar-components" href="./components/text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./components/utilities.html"> Utilities</a>
</aside>
Expand All @@ -64,6 +68,10 @@ <h1 class="page-title">Components</h1>
<a class="btn btn-outline-lightblue" href="./components/navigation.html">Navigation</a>
<a class="btn btn-outline-lightblue" href="./components/simplified-grid.html">Simplified Grid</a>
<a class="btn btn-outline-lightblue" href="./components/slider.html">Slider</a>
<a class="btn btn-outline-lightblue" href="./components/list.html">List</a>
<a class="btn btn-outline-lightblue" href="./components/rating.html">Rating</a>
<a class="btn btn-outline-lightblue" href="./components/modal.html">Modal</a>
<a class="btn btn-outline-lightblue" href="./components/snackbar.html">Snackbar</a>
<a class="btn btn-outline-lightblue" href="./components/text-utilities.html">Text Utilities</a>
<a class="btn btn-outline-lightblue" href="./components/utilities.html"> Utilities</a>

Expand Down
34 changes: 19 additions & 15 deletions docs/components/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,25 @@

<aside class="sidebar">

<a href="../gettingStarted.html">Getting Started</a>
<a href="../designSystem.html">Design System</a>
<a class="sidebar-header" href="../components.html">Components</a>
<a class="sidebar-components" href="./alert.html" id="active">Alert</a>
<a class="sidebar-components" href="./avatar.html">Avatar</a>
<a class="sidebar-components" href="./badge.html">Badge</a>
<a class="sidebar-components" href="./button.html">Button</a>
<a class="sidebar-components" href="./card.html">Card</a>
<a class="sidebar-components" href="./image.html">Image</a>
<a class="sidebar-components" href="./input.html">Input</a>
<a class="sidebar-components" href="./navigation.html">Navigation</a>
<a class="sidebar-components" href="./simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./slider.html">Slider</a>
<a class="sidebar-components" href="./text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./utilities.html"> Utilities</a>
<a href="../gettingStarted.html">Getting Started</a>
<a href="../designSystem.html">Design System</a>
<a class="sidebar-header" href="../components.html">Components</a>
<a class="sidebar-components" href="./alert.html" id="active">Alert</a>
<a class="sidebar-components" href="./avatar.html">Avatar</a>
<a class="sidebar-components" href="./badge.html">Badge</a>
<a class="sidebar-components" href="./button.html">Button</a>
<a class="sidebar-components" href="./card.html">Card</a>
<a class="sidebar-components" href="./image.html">Image</a>
<a class="sidebar-components" href="./input.html">Input</a>
<a class="sidebar-components" href="./navigation.html">Navigation</a>
<a class="sidebar-components" href="./simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./slider.html">Slider</a>
<a class="sidebar-components" href="./list.html">List</a>
<a class="sidebar-components" href="./rating.html">Rating</a>
<a class="sidebar-components" href="./modal.html">Modal</a>
<a class="sidebar-components" href="./snackbar.html">Snackbar</a>
<a class="sidebar-components" href="./text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./utilities.html"> Utilities</a>
</aside>

<main>
Expand Down
6 changes: 5 additions & 1 deletion docs/components/avatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<a href="../designSystem.html">Design System</a>
<a class="sidebar-header" href="../components.html">Components</a>
<a class="sidebar-components" href="./alert.html">Alert</a>
<a class="sidebar-components" href="./avatar.html" id="active">Avatar</a>
<a class="sidebar-components" href="./avatar.html" id="active">Avatar</a>
<a class="sidebar-components" href="./badge.html">Badge</a>
<a class="sidebar-components" href="./button.html">Button</a>
<a class="sidebar-components" href="./card.html">Card</a>
Expand All @@ -44,6 +44,10 @@
<a class="sidebar-components" href="./navigation.html">Navigation</a>
<a class="sidebar-components" href="./simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./slider.html">Slider</a>
<a class="sidebar-components" href="./list.html">List</a>
<a class="sidebar-components" href="./rating.html">Rating</a>
<a class="sidebar-components" href="./modal.html">Modal</a>
<a class="sidebar-components" href="./snackbar.html">Snackbar</a>
<a class="sidebar-components" href="./text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./utilities.html"> Utilities</a>
</aside>
Expand Down
6 changes: 5 additions & 1 deletion docs/components/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@
<a class="sidebar-header" href="../components.html">Components</a>
<a class="sidebar-components" href="./alert.html">Alert</a>
<a class="sidebar-components" href="./avatar.html">Avatar</a>
<a class="sidebar-components" href="./badge.html" id="active">Badge</a>
<a class="sidebar-components" href="./badge.html" id="active">Badge</a>
<a class="sidebar-components" href="./button.html">Button</a>
<a class="sidebar-components" href="./card.html">Card</a>
<a class="sidebar-components" href="./image.html">Image</a>
<a class="sidebar-components" href="./input.html">Input</a>
<a class="sidebar-components" href="./navigation.html">Navigation</a>
<a class="sidebar-components" href="./simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./slider.html">Slider</a>
<a class="sidebar-components" href="./list.html">List</a>
<a class="sidebar-components" href="./rating.html">Rating</a>
<a class="sidebar-components" href="./modal.html">Modal</a>
<a class="sidebar-components" href="./snackbar.html">Snackbar</a>
<a class="sidebar-components" href="./text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./utilities.html"> Utilities</a>
</aside>
Expand Down
4 changes: 4 additions & 0 deletions docs/components/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
<a class="sidebar-components" href="./navigation.html">Navigation</a>
<a class="sidebar-components" href="./simplified-grid.html">Simplified Grid</a>
<a class="sidebar-components" href="./slider.html">Slider</a>
<a class="sidebar-components" href="./list.html">List</a>
<a class="sidebar-components" href="./rating.html">Rating</a>
<a class="sidebar-components" href="./modal.html">Modal</a>
<a class="sidebar-components" href="./snackbar.html">Snackbar</a>
<a class="sidebar-components" href="./text-utilities.html">Text Utilities</a>
<a class="sidebar-components" href="./utilities.html"> Utilities</a>
</aside>
Expand Down
Loading

0 comments on commit ac51eea

Please sign in to comment.