-
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.
feat: added major css changes for mobile
- Loading branch information
1 parent
32f0676
commit d2498c2
Showing
11 changed files
with
187 additions
and
64 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
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
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
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
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 |
---|---|---|
@@ -1,29 +1,75 @@ | ||
<script setup> | ||
import { defineProps } from "vue"; | ||
import Tooltip from "@/components/global/Tooltip.vue"; | ||
const props = defineProps({ | ||
url: String, | ||
tab: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
size: { | ||
type: String, | ||
default: "large", | ||
}, | ||
text: { | ||
type: String, | ||
default: "Github", | ||
}, | ||
tooltip: { | ||
type: String, | ||
default: "Open in Github", | ||
}, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<Tooltip text="Open in Github"> | ||
<!-- Tab = true --> | ||
<!-- Mobile --> | ||
<v-btn | ||
v-if="tab" | ||
:href="url" | ||
target="_blank" | ||
color="blue-grey-darken-4" | ||
icon="mdi-github" | ||
:size="size" | ||
variant="text" | ||
class="d-flex d-sm-none" | ||
></v-btn> | ||
<!-- Non-mobile --> | ||
<v-btn | ||
v-if="tab" | ||
:href="url" | ||
target="_blank" | ||
color="blue-grey-darken-4" | ||
prepend-icon="mdi-github" | ||
:size="size" | ||
:text="text" | ||
variant="text" | ||
class="text-capitalize font-weight-medium d-none d-sm-flex" | ||
></v-btn> | ||
|
||
<!-- Tab = false --> | ||
<!-- Mobile --> | ||
<v-list-item | ||
v-if="!tab" | ||
:href="url" | ||
target="_blank" | ||
prepend-icon="mdi-github" | ||
:title="props.tooltip" | ||
class="d-flex d-sm-none" | ||
></v-list-item> | ||
<!-- Non-mobile --> | ||
<Tooltip :text="props.tooltip"> | ||
<v-btn | ||
v-if="!tab" | ||
:href="url" | ||
target="_blank" | ||
color="blue-grey-darken-4" | ||
icon="mdi-github" | ||
size="large" | ||
:size="size" | ||
variant="text" | ||
class="d-none d-sm-flex" | ||
></v-btn> | ||
</Tooltip> | ||
<v-list-item | ||
:href="url" | ||
target="_blank" | ||
prepend-icon="mdi-github" | ||
title="Open in Github" | ||
class="d-flex d-sm-none" | ||
></v-list-item> | ||
</template> | ||
|
||
<script setup> | ||
import { defineProps } from "vue"; | ||
import Tooltip from "@/components/global/Tooltip.vue"; | ||
const props = defineProps({ | ||
url: String, | ||
}); | ||
</script> |
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.