-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Schedule Generator] Add Schedule Modal #892
Merged
andxu282
merged 17 commits into
schedule-generator
from
andrew--generate-schedule-modal
Mar 11, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e1fcd22
chore: create schedule sidebar panel header
Destaq df066ff
style: also define appearance property in SchedulerPanelHeader.vue fo…
Destaq d6c6da6
docs: add inline docs to SchedulerPanelHeader
Destaq 23fed50
link icon w/header
295300f
Run Courses Script for FA23 (#856)
zachary-kent 31715cc
Spring 2024 courses script (#864)
zachary-kent 99bbab2
add header
49541fd
fix header
28ec8c2
fix header
d32249a
move into folder
0281ba5
fix full-courses
d6dc311
link modal to schedule builder icon
e1fabab
modal
afd017e
modal clickable
7c79d92
type fix and rename
72f06ee
rename
3d343fe
rename
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -330516,4 +330516,4 @@ | |
"roster": "SP24" | ||
} | ||
] | ||
} | ||
} |
111 changes: 111 additions & 0 deletions
111
src/components/ScheduleGenerate/ScheduleGenerateModal.vue
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,111 @@ | ||
<template> | ||
<div class="schedule-generate" @click="checkClickOutside" ref="modalBackground"> | ||
<div class="schedule-generate-main"> | ||
<div class="schedule-generate-content"> | ||
<div class="schedule-generate-cancel"> | ||
<button @click="cancel"> | ||
<img | ||
class="schedule-generate-cancel-icon" | ||
src="@/assets/images/x.svg" | ||
alt="x to close modal" | ||
/> | ||
</button> | ||
</div> | ||
<div class="schedule-generate-top"> | ||
<div class="schedule-generate-header"> | ||
<span | ||
><img | ||
class="schedule-generate-header-emoji" | ||
src="@/assets/images/waveEmoji.svg" | ||
alt="wave" | ||
/> | ||
Say hello to your generated schedule!</span | ||
> | ||
</div> | ||
<div class="schedule-generate-description"> | ||
Please download before closing or it won't be saved! | ||
</div> | ||
</div> | ||
</div> | ||
<div class="schedule-generate-bottom"></div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
|
||
export default defineComponent({ | ||
emits: ['closeScheduleGenerateModal'], | ||
methods: { | ||
cancel() { | ||
this.$emit('closeScheduleGenerateModal'); | ||
}, | ||
checkClickOutside(e: MouseEvent) { | ||
if (e.target === this.$refs.modalBackground) { | ||
this.cancel(); | ||
} | ||
}, | ||
}, | ||
}); | ||
</script> | ||
<style scoped lang="scss"> | ||
@import '@/assets/scss/_variables.scss'; | ||
button:hover { | ||
opacity: 0.5; | ||
} | ||
|
||
input { | ||
background-color: none; | ||
} | ||
.schedule-generate { | ||
padding: 1rem; | ||
width: 100%; | ||
&-main { | ||
background: $white; | ||
border-radius: 9px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 46rem; | ||
} | ||
|
||
&-cancel { | ||
cursor: pointer; | ||
text-align: right; | ||
position: absolute; | ||
right: 1rem; | ||
top: 1rem; | ||
z-index: 5; | ||
|
||
&-icon { | ||
margin: 11px 11px 0 0; | ||
} | ||
} | ||
|
||
&-header { | ||
font-weight: bold; | ||
font-size: 36px; | ||
color: $onboardingGray; | ||
text-align: center; | ||
|
||
&-emoji { | ||
width: 36px; | ||
height: 36px; | ||
vertical-align: text-top; | ||
} | ||
} | ||
|
||
&-description { | ||
font-weight: 300; | ||
font-size: 18px; | ||
line-height: 36px; | ||
color: $onboardingGray; | ||
text-align: center; | ||
} | ||
|
||
&-content { | ||
position: relative; | ||
padding: 1.5rem 2rem 1.5rem 2rem; | ||
} | ||
} | ||
</style> |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though... do you still need to do this before merging?