-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added new components and changed the route
- Loading branch information
Showing
5 changed files
with
179 additions
and
5 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,27 @@ | ||
<template> | ||
<img :src="flag" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "LangButton", | ||
props: ["flag"], | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
button { | ||
background-image: inherit; | ||
} | ||
img { | ||
display: block; | ||
position: absolute; | ||
top: 10%; | ||
left: 10%; | ||
width: 55%; | ||
min-height: 10%; | ||
min-width: 10%; | ||
transform: translate(-50%, -50%); | ||
resize: both; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<dialog open v-if="open"> | ||
<!-- @link="setLink" --> | ||
<slot></slot> | ||
</dialog> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "LangDialog", | ||
props: ["open"], | ||
// data(){ | ||
// return{ | ||
// links:'' | ||
// } | ||
// }, | ||
// methods: { | ||
// setLink(linkUrl){ | ||
// links=linkUrl | ||
// } | ||
// }, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
dialog { | ||
position: fixed; | ||
top: 30vh; | ||
width: 30rem; | ||
left: calc(50% - 15rem); | ||
margin: 0; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); | ||
border-radius: 12px; | ||
padding: 1rem; | ||
background-color: white; | ||
z-index: 100; | ||
border: none; | ||
/* animation: modal 0.3s ease-out forwards; */ | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div> | ||
<img :src="link" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "BaseLogo", | ||
props: ["link"], | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
img { | ||
display: block; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: 52%; | ||
min-height: 20%; | ||
min-width: 20%; | ||
transform: translate(-50%, -50%); | ||
resize: both; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<div> | ||
<div id="container"> | ||
<base-logo :link="link"> </base-logo> | ||
<!-- <lang-dialog @click="$emit('open')" v-if="dialogIsVisible"></lang-dialog> --> | ||
<lang-dialog @close="hideDialog" :open="dialogIsVisible"> | ||
<ul> | ||
<li v-for="link in linkFlags" :key="link" @click="hideDialog"> | ||
<img :src="link" /> | ||
</li> | ||
</ul> | ||
</lang-dialog> | ||
<section @click="showDialog"> | ||
<lang-button :flag="flag" class="lang"></lang-button> | ||
</section> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import BaseLogo from "./BaseLogo.vue"; | ||
import LangButton from "../UI/LangButton.vue"; | ||
import LangDialog from "../UI/LangDialog.vue"; | ||
export default { | ||
name: "TheFirst", | ||
components: { BaseLogo, LangButton, LangDialog }, | ||
name: "TheFirst", | ||
emit: ["open"], | ||
data() { | ||
return { | ||
link: "stereumLogoExtern.png", | ||
flag: "SelectLang.png", | ||
dialogIsVisible: false, | ||
linkFlags: ["Img/Flag/ENGLISH.png", "Img/Flag/ENGLISH.png"], | ||
}; | ||
}, | ||
methods: { | ||
showDialog() { | ||
this.dialogIsVisible = true; | ||
}, | ||
hideDialog() { | ||
this.dialogIsVisible = false; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
#container { | ||
border-radius: 40px; | ||
padding: 1rem; | ||
margin: 2rem auto; | ||
width: 95vw; | ||
height: 95vh; | ||
background-color: #336666; | ||
} | ||
div { | ||
background-color: #000; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
display: flex; | ||
} | ||
.lang { | ||
position: fixed; | ||
top: 81vh; | ||
left: 86%; | ||
width: 4em; | ||
z-index: 100; | ||
resize: both; | ||
} | ||
</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