Skip to content
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

Enhancement/fe touchups #416

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/landing/src/components/NavBar.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import router from '@/composables/router'
import VueFeather from 'vue-feather'
import useScreenDimentions from '@/composables/screenDimenstions'
import useScreenDimensions from '@/composables/screenDimensions'

const { screenWidth } = useScreenDimentions()
const { screenWidth } = useScreenDimensions()
</script>

<template>
Expand Down Expand Up @@ -38,4 +38,4 @@ const { screenWidth } = useScreenDimentions()
.nav_items_active{
color: #FFFFFF;
}
</style>
</style>@/composables/screenDimensions
19 changes: 13 additions & 6 deletions apps/landing/src/composables/roadmapItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,39 @@ const roadmapItems = ref([
{
step: 1,
title: 'Internal Testnet',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
description: 'Deploy and test beta version.'
description: 'Deploy and test beta version.',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Completed'

},
{
step: 2,
title: 'Goerli Launch',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
description: 'Launch publicly for Goerli Testnet. Coming Soon!!'
description: 'Launch publicly for Goerli Testnet. Coming Soon!!',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Ongoing'
},
{
step: 3,
title: 'Mainnet Beta',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
description: 'Launch with Mainnet and selected validator set.'
description: 'Launch with Mainnet and selected validator set.',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Q3 2023'
},
{
step: 4,
title: 'Full Mainnet',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
description: 'Launch with permissionless validators on Mainnet.'
description: 'Launch with permissionless validators on Mainnet.',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Q4 2023'
},
{
step: 5,
title: 'Eigenlayer Restaking',
description: 'Integrate with Eigenlayer to enable native restaking and eigenpod creation. '
description: 'Integrate with Eigenlayer to enable native restaking and eigenpod creation. ',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Q1 2023'
},
{
step: 6,
title: 'Liquid Withdrawl Pools',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
description: 'Launch with native ETH pools to allow users instant unstaking if desired.'
description: 'Launch with native ETH pools to allow users instant unstaking if desired.',
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
projectedCompletionTime: 'Q2 2024'
},
])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const initializeComposable = ref(false)
const screenWidth = ref(0)
const screenHeight = ref(0)

export default function useScreenDimentions() {
export default function useScreenDimensions() {

const findScreenDimenstions = () => {
try {
Expand Down
22 changes: 11 additions & 11 deletions apps/landing/src/pages/landing/Landing.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script lang="ts" setup>
import useScreenDimentions from '@/composables/screenDimenstions'
import DummyBreakdown from './comoponents/DummyBreakdown.vue'
import DummyStaking from './comoponents/DummyStaking.vue'
import DummyChart from './comoponents/DummyChart.vue'
import Footer from './comoponents/Footer.vue'
import QuestionsAndAnswers from './comoponents/QuestionsAndAnswers.vue'
import Content from './comoponents/Content.vue'
import Roadmap from './comoponents/Roadmap.vue'
import Features from './comoponents/Features.vue'
import useScreenDimensions from '@/composables/screenDimensions'
import DummyBreakdown from './components/DummyBreakdown.vue'
import DummyStaking from './components/DummyStaking.vue'
import DummyChart from './components/DummyChart.vue'
import Footer from './components/Footer.vue'
import QuestionsAndAnswers from './components/QuestionsAndAnswers.vue'
import Content from './components/Content.vue'
import Roadmap from './components/Roadmap.vue'
import Features from './components/Features.vue'

const { screenWidth } = useScreenDimentions()
const { screenWidth } = useScreenDimensions()
</script>

<template>
Expand Down Expand Up @@ -159,4 +159,4 @@ const { screenWidth } = useScreenDimentions()
font-weight: 400;
line-height: 20px;
}
</style>
</style>@/composables/screenDimensions
111 changes: 0 additions & 111 deletions apps/landing/src/pages/landing/comoponents/Content.vue

This file was deleted.

119 changes: 119 additions & 0 deletions apps/landing/src/pages/landing/components/Content.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<script lang="ts" setup>
import useScreenDimensions from '@/composables/screenDimensions'
import { onMounted, ref, watch } from 'vue'

const { screenWidth } = useScreenDimensions()

const tabShowing = ref(1)
const interval = ref(null) as any

onMounted(() =>{
interval.value = setInterval(() =>{
tabShowing.value === 3? tabShowing.value = 1 : tabShowing.value = tabShowing.value + 1
}, 5500)
})

watch(tabShowing, ()=>{
clearInterval(interval.value)

interval.value = setInterval(() =>{
tabShowing.value === 3? tabShowing.value = 1 : tabShowing.value = tabShowing.value + 1
}, 5500)
})


</script>

<template>
<div class="w-full px-[10%]">
<div
:class="screenWidth <= 500? 'text-center px-[10%]' : 'text-center'"
>
<h1 class="text-[36px] font-[600] leading-10 mb-[20px] tracking-tight">
Why Casimir Self-Stake?
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
</h1>
</div>
<div class="flex items-start justify-center gap-[5px]">
<button
v-for="i in 3"
:key="i"
class="w-full h-[10px] bg-grey_1 rounded-[3px] overflow-hidden"
style="box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);"
@click="tabShowing = i"
>
<div :class="i === tabShowing? 'bg-primary/[0.75] expand h-full w-full' : 'w-[0px]'" />
</button>
</div>
<div class="mt-[60px] h-[300px]">
<div
v-if="tabShowing === 1"
class="text-center"
>
<span class="text-[12px] font-[600] text-primary">New </span>
<h1 class="text-[28px] font-[500] leading-10 mb-[10px] tracking-tight text-grey_3">
Decentralized
Self Staking
</h1>
<div class="flex items-center justify-center">
<p class="text-[14px] font-[400] text-grey_4 w-full max-w-[650px] tracking-wide">
Consensus Networks, a provider of blockchain infrastructure, nodes, and staking services, is
introducing Casimir SelfStake, a non-custodial Ethereum (ETH) staking platform driven by account
abstraction and distributed validator technology. Our primary objective is to establish a
permissionless solution for staking and digital asset management that upholds the core principles
of the Ethereum Protocol and the wider Web3.0 ecosystem.
</p>
</div>
</div>

<div
v-else-if="tabShowing === 2"
class="text-center"
>
<span class="text-[12px] font-[600] text-primary">Future </span>
<h1 class="text-[28px] font-[600] leading-10 mb-[10px] tracking-tight text-grey_3">
Beyond Staking
</h1>

<div class="flex items-center justify-center">
<p class="text-[14px] font-[400] text-grey_4 max-w-[650px] tracking-wide">
With Casimir's native integration at Layer 1, users
can easily engage with NFTs or DeFi protocols, whether it's creating, trading, or managing
these digital assets. By eliminating the need for additional bridges or intermediaries,
Casimir enables a more direct and efficient interaction with the NFT and DeFi space. For
emerging use cases, such as Eigenlayer, Casimir's integration at Layer 1 would enable users
to take advantage of the Eigenlayer rehypothecating functionality in a more native manner
compared to other solutions.
</p>
</div>
</div>
<div
v-else-if="tabShowing === 3"
class="text-center"
>
<span class="text-[12px] font-[600] text-primary">Assurance </span>
<h1 class="text-[28px] font-[600] leading-10 mb-[10px] tracking-tight text-grey_3">
Minimal Trust
</h1>

<div class="flex items-center justify-center">
<p class="text-[14px] font-[400] text-grey_4 w-full max-w-[650px] tracking-wide">
With Casimir's native integration at Layer 1, users
DemogorGod marked this conversation as resolved.
Show resolved Hide resolved
can easily engage with NFTs or DeFi protocols, whether it's creating, trading, or managing
these digital assets. By eliminating the need for additional bridges or intermediaries,
Casimir enables a more direct and efficient interaction with the NFT and DeFi space. For
emerging use cases, such as Eigenlayer, Casimir's integration at Layer 1 would enable users
shanejearley marked this conversation as resolved.
Show resolved Hide resolved
to take advantage of the Eigenlayer rehypothecating functionality in a more native manner
compared to other solutions.
</p>
</div>
</div>
</div>
</div>
</template>


<style scoped>
.expand {
transition: width 5.5s ease;
}
</style>@/composables/screenDimensions
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import VueFeather from 'vue-feather'
import useScreenDimentions from '@/composables/screenDimenstions'
import useScreenDimensions from '@/composables/screenDimensions'

const { screenWidth } = useScreenDimentions()
const { screenWidth } = useScreenDimensions()

</script>

Expand Down Expand Up @@ -111,4 +111,4 @@ const { screenWidth } = useScreenDimentions()
</template>


<style scoped></style>
<style scoped></style>@/composables/screenDimensions
Loading