Skip to content

Commit

Permalink
[Feat] Feat Background view
Browse files Browse the repository at this point in the history
  • Loading branch information
Mule129 committed Jan 26, 2024
1 parent 178dafa commit 84c3615
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import Information from '@/components/Information.vue'
import Speaker from '@/components/Speaker.vue'
import Motive from '@/components/Motive.vue'
import Footer from '@/components/Footer.vue'
import Background from '@/components/Background.vue'
</script>

<template>
<Background />
<NavbarHeader />
<div class='wrapper'>
<MainTitle />
Expand All @@ -24,6 +26,6 @@ div.wrapper {
padding: 130px 0 100px 0;
flex-direction: column;
align-items: center;
gap: 80px;
gap: 128px;
}
</style>
72 changes: 72 additions & 0 deletions src/components/Background.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<script setup lang="ts">
import Python from '@/assets/image/python_logo.png'
import Figma from '@/assets/image/figma_logo.png'
import Github from '@/assets/image/github_logo.png'
import Npm from '@/assets/image/npm_logo.png'
import Swift from '@/assets/image/swift_logo.png'
import Android from '@/assets/image/android_logo.png'
import Jabascript from '@/assets/image/javascript_logo.png'
import InteliJ from '@/assets/image/inteliJ_logo.png'
import Unity from '@/assets/image/unity_logo.png'
import Discord from '@/assets/image/discord_logo.png'
import Gpt from '@/assets/image/chatgpt_logo.png'
import Terminal from '@/assets/image/terminal_logo.png'
import Notepad from '@/assets/image/notepad_logo.png'
import Xcode from '@/assets/image/xcode_logo.png'
import Apple from '@/assets/image/apple_logo.png'
import BackgroundIcon from '@/components/BackgroundIcon.vue'
</script>

<template>
<div class="backgrounds">
<div class='background-main'>
<BackgroundIcon :icon='Python' left='221.67px' top='20.85px'/>
<BackgroundIcon :icon='Figma' right='223.64px' top='6px'/>
<BackgroundIcon :icon='Github' left='-62.75px' top='135.25px'/>
<BackgroundIcon :icon='Npm' right='-62.16px' top='142.35px'/>
<BackgroundIcon :icon='Swift' left='-40px' top='496px'/>
<BackgroundIcon :icon='Android' right='-98px' top='397px'/>
<BackgroundIcon :icon='Jabascript' right='154.77px' top='599.44px'/>

<BackgroundIcon :icon='InteliJ' left='222.42px' top='332.42px'/>
<BackgroundIcon :icon='Unity' right='133.04px' top='278.62px'/>
</div>
<div class='other'>
<BackgroundIcon :icon='Discord' left='217px' top='868px'/>
<BackgroundIcon :icon='Gpt' left='35px' top='1201px'/>
<BackgroundIcon :icon='Terminal' right='-59.03px' top='1151px'/>
<BackgroundIcon :icon='Notepad' right='151.47px' top='1680.36px'/>
<BackgroundIcon :icon='Xcode' left='211px' top='2092px'/>
<BackgroundIcon :icon='Apple' right='203.16px' top='2200px'/>
</div>
</div>
</template>

<style scoped lang="scss">
.backgrounds {
width: 100%;
display: flex;
flex-flow: column;
position: absolute;
.background-main {
opacity: 0.5;
}
.logo {
display: inline-flex;
padding: 10px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
filter: blur(6px);
position: absolute;
}
}
</style>
23 changes: 23 additions & 0 deletions src/components/BackgroundIcon.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script setup lang='ts'>
defineProps<{
icon: string,
left: string | null,
right: string | null,
top: string | null
}>()
</script>

<template>
<div class='logo'>
<img :src='icon' alt='icon' >
</div>
</template>

<style scoped lang='scss'>
.logo {
left: v-bind(left);
right: v-bind(right);
top: v-bind(top);
}
</style>

0 comments on commit 84c3615

Please sign in to comment.