-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from SDOS2020/vidit-jain
Alpha updates
- Loading branch information
Showing
73 changed files
with
2,771 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<style lang="scss"> | ||
i { | ||
font-family: 'untitled-font-1'; | ||
} | ||
.box { | ||
width: 40%; | ||
float: left; | ||
background: #15171b; | ||
padding: .5rem 1.5rem; | ||
margin: 10px 10px 5px 0; | ||
box-shadow: inset 0 0 4px rgba(#000000, 0.8 ); | ||
border-radius: 5px; | ||
transition: all .15s ease-in-out; | ||
text-align: center; | ||
opacity: .5; | ||
.icon { | ||
} | ||
.label { | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: 0.7rem; | ||
opacity: .5; | ||
} | ||
&:hover { | ||
opacity: 1; | ||
box-shadow: inset 0 0 3px rgba(#000000, 0.6 ); | ||
} | ||
} | ||
</style> | ||
|
||
<script> | ||
export let link, icon, label; | ||
</script> | ||
<a href="{link}"> | ||
<div class="box"> | ||
<div class="icon"> | ||
<i class="icon-{icon}"></i> | ||
</div> | ||
<div class="label"> | ||
{label} | ||
</div> | ||
</div> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<style lang="scss"> | ||
section { | ||
padding-top: 0.5em; | ||
} | ||
#state { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
opacity: 0.33; | ||
font-size: 0.8em; | ||
} | ||
i { | ||
font-family: 'untitled-font-1'; | ||
} | ||
.box { | ||
width: 40%; | ||
float: left; | ||
background: #15171b; | ||
padding: .5rem 1.5rem; | ||
margin: 10px 10px 5px 0; | ||
box-shadow: inset 0 0 4px rgba(#000000, 0.8 ); | ||
border-radius: 5px; | ||
transition: all .15s ease-in-out; | ||
text-align: center; | ||
opacity: .5; | ||
.icon { | ||
} | ||
.label { | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: 0.7rem; | ||
opacity: .5; | ||
} | ||
&:hover { | ||
opacity: 1; | ||
box-shadow: inset 0 0 3px rgba(#000000, 0.6 ); | ||
} | ||
} | ||
</style> | ||
|
||
<script> | ||
import { getContext } from 'svelte'; | ||
import { fly } from 'svelte/transition'; | ||
import ClassDialog from './ClassDialog.svelte'; | ||
import CloseButton from './CloseButton.svelte'; | ||
const { open } = getContext('simple-modal'); | ||
let opening = false; | ||
let opened = false; | ||
let closing = false; | ||
let closed = false; | ||
export let link, icon, label; | ||
let class_name; | ||
let class_text; | ||
let class_topics; | ||
let status = 0; | ||
const onCancel = (text) => { | ||
name = ''; | ||
status = -1; | ||
} | ||
const onOkay = (name, text, topic) => { | ||
class_name = name; | ||
class_text = text; | ||
class_topics = topic; | ||
console.log(text) | ||
status = 1; | ||
} | ||
const showDialog = () => { | ||
open( | ||
ClassDialog, | ||
{ | ||
message: "Enter Class Details", | ||
hasForm: true, | ||
onCancel, | ||
onOkay | ||
}, | ||
{ | ||
closeButton: true, | ||
closeOnEsc: false, | ||
closeOnOuterClick: false, | ||
} | ||
); | ||
}; | ||
</script> | ||
|
||
<div class="box" on:click={showDialog}> | ||
<div class="icon"> | ||
<i class="icon-{icon}"></i> | ||
</div> | ||
<div class="label"> | ||
{label} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<style lang="scss"> | ||
section { | ||
padding-top: 0.5em; | ||
} | ||
#state { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
opacity: 0.33; | ||
font-size: 0.8em; | ||
} | ||
i { | ||
font-family: 'untitled-font-1'; | ||
} | ||
.box { | ||
width: 40%; | ||
float: left; | ||
background: #15171b; | ||
padding: .5rem 1.5rem; | ||
margin: 10px 10px 5px 0; | ||
box-shadow: inset 0 0 4px rgba(#000000, 0.8 ); | ||
border-radius: 5px; | ||
transition: all .15s ease-in-out; | ||
text-align: center; | ||
opacity: .5; | ||
.icon { | ||
} | ||
.label { | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
font-size: 0.7rem; | ||
opacity: .5; | ||
} | ||
&:hover { | ||
opacity: 1; | ||
box-shadow: inset 0 0 3px rgba(#000000, 0.6 ); | ||
} | ||
} | ||
</style> | ||
|
||
<script> | ||
import { getContext } from 'svelte'; | ||
import { fly } from 'svelte/transition'; | ||
import PostDialog from './PostDialog.svelte'; | ||
import CloseButton from './CloseButton.svelte'; | ||
const { open } = getContext('simple-modal'); | ||
let opening = false; | ||
let opened = false; | ||
let closing = false; | ||
let closed = false; | ||
export let link, icon, label, classId; | ||
let post_text; | ||
let status = 0; | ||
const onCancel = (text) => { | ||
name = ''; | ||
status = -1; | ||
} | ||
const onOkay = (text) => { | ||
post_text = text; | ||
console.log(text) | ||
status = 1; | ||
} | ||
const showDialog = () => { | ||
open( | ||
PostDialog, | ||
{ | ||
message: "Enter Post Details", | ||
hasForm: true, | ||
classId: classId, | ||
onCancel, | ||
onOkay, | ||
}, | ||
{ | ||
closeButton: true, | ||
closeOnEsc: false, | ||
closeOnOuterClick: false, | ||
} | ||
); | ||
}; | ||
</script> | ||
|
||
<div class="box" on:click={showDialog}> | ||
<div class="icon"> | ||
<i class="icon-{icon}"></i> | ||
</div> | ||
<div class="label"> | ||
{label} | ||
</div> | ||
</div> |
Oops, something went wrong.