Commit 3c589b86 authored by Abdelkarim Mateos's avatar Abdelkarim Mateos

First lesson: Getting Started With Vue.js

parents
Pipeline #277 canceled with stages
.idea
*.iml
out
gen
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shopping List App</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<div id="shopping-list">
<h1>{{ header }}</h1>
<input v-model="header">
</div>
<script src="https://unpkg.com/vue"></script>
<script>
var shoppingList = new Vue({
el: '#shopping-list',
data: {
header: 'Vue is ready to party',
}
})
</script>
</body>
</html>
\ No newline at end of file
body {
background: #EFF8FF;
height: 100vh;
width: 100vw;
font-family: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
}
#shopping-list {
background: #FFF;
padding: 2rem;
margin: 1rem;
border-radius: 3px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08);
width: 95%;
max-width: 900px;
}
h1 {
color: #3D4852;
}
ul {
list-style: none;
padding: 0;
}
a {
color: #6CB2EB;
font-size: 1.25rem;
transition: all .1s ease-in;
margin-top: .5rem;
display: block;
}
a:hover {
color: #3490DC;
}
li, p {
display: flex;
align-items: center;
line-height: 1.75;
letter-spacing: .5px;
color: #3D4852;
font-size: 1.25rem;
cursor: pointer;
transition: all .1s ease-in;
}
li:hover {
color: #22292F;
}
li input {
margin: 0 .5rem 0;
}
#shopping-list > input, #shopping-list > select {
width: 100%;
border-radius: 3px;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.10);
border: 1px solid #F1F5F8;
color: #606F7B;
padding: .5rem .75rem;
box-sizing: border-box;
font-size: 1rem;
letter-spacing: .5px;
margin: .5rem 0
}
.add-item-form, .header {
display: flex;
align-items: center;
justify-content: space-between;
}
.add-item-form input {
width: 70%;
border-radius: 3px;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.10);
border: 1px solid #F1F5F8;
color: #606F7B;
padding: .5rem .75rem;
box-sizing: border-box;
font-size: 1rem;
letter-spacing: .5px;
margin: .5rem 0;
}
.btn {
border: none;
border-radius: 3px;
margin: auto 0;
padding: .5rem .75rem;
flex-shrink: 0;
cursor: pointer;
font-size: .9rem;
letter-spacing: .5px;
transition: all .1s ease-in;
}
.btn[disabled] {
background: #8795A1;
}
.btn[disabled]:hover {
background: #606F7B;
}
.btn-primary {
background: #6CB2EB;
color: #fff;
}
.btn-primary:hover {
background: #3490DC;
}
.btn-cancel {
background: #EF5753;
color: #fff;
}
.btn-cancel:hover {
background: #E3342F;
color: #fff;
}
.strikeout {
text-decoration: line-through;
color: #B8C2CC;
}
.strikeout:hover {
color: #8795A1;
}
.priority {
color: #DE751F;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment