Blame view

pages/compute.vue 5.28 KB
1
2
3
4
<template>
  <div class="slac-box" id="slacBox">
    <div class="top-nav">
      <div v-for="(item, index) in navList" :key="index" class="nav-item">
柏杨 authored
5
        <h2
6
7
8
9
          :class="[selNavIndex === index ? 'item-context-sel' : 'item-context']"
          @click="selNavIndex = index"
        >
          {{ item }}
柏杨 authored
10
        </h2>
11
12
13
      </div>
    </div>
    <EnergyDensityCalculator v-if="selNavIndex == 0"></EnergyDensityCalculator>
柏杨 authored
14
15
16
    <TheoreticalDataCalculator
      v-if="selNavIndex == 1"
    ></TheoreticalDataCalculator>
17
18
19
20
21
22
  </div>
  <SideBar></SideBar>
</template>

<script setup>
import EnergyDensityCalculator from "~/components/EnergyDensityCalculator.vue";
柏杨 authored
23
24
import TheoreticalDataCalculator from "~/components/TheoreticalDataCalculator.vue";
const navList = ["Energy Density Calculator", "Theoretical Data Calculator"];
25
26
27
const selNavIndex = ref(0);

useHead({
柏杨 authored
28
  title: `${navList[selNavIndex.value]} - Canrd`,
29
30
31
32
  meta: [
    {
      hid: "description",
      name: "description",
柏杨 authored
33
      content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
34
35
36
37
    },
    {
      hid: "keywords",
      name: "keywords",
柏杨 authored
38
      content: `Canrd, Canrd official website, Canrd mall, Canrd lithium sheet, Canrd electrolyte, Canrd battery shell`,
39
40
41
42
    },
    {
      hid: "og:title",
      property: "og:title",
柏杨 authored
43
      content: `${navList[selNavIndex.value]} - Canrd`,
44
45
46
47
    },
    {
      hid: "og:description",
      property: "og:description",
柏杨 authored
48
      content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
49
50
51
52
53
54
55
56
    },
  ],
});

watch(
  () => selNavIndex.value,
  (newValue) => {
    useHead({
柏杨 authored
57
      title: `${navList[selNavIndex.value]} - Canrd`,
58
59
60
61
      meta: [
        {
          hid: "description",
          name: "description",
柏杨 authored
62
          content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
63
64
65
66
        },
        {
          hid: "keywords",
          name: "keywords",
柏杨 authored
67
          content: `Canrd, Canrd official website, Canrd mall, Canrd lithium sheet, Canrd electrolyte, Canrd battery shell`,
68
69
70
71
        },
        {
          hid: "og:title",
          property: "og:title",
柏杨 authored
72
          content: `${navList[selNavIndex.value]} - Canrd`,
73
74
75
76
        },
        {
          hid: "og:description",
          property: "og:description",
柏杨 authored
77
          content: `Guangdong Canrd New Energy Technology Co., Ltd., which is the abbreviation of "helping you succeed in your scientific research", is the world's most comprehensive material supply platform in the field of energy storage research; it specifically provides button batteries, lithium-ion batteries, supercapacitors, lithium-sulfur batteries, fuel cells, lithium-air batteries and sodium-ion batteries. Research materials and related equipment, technical services, battery material performance evaluation, etc.; provide you and your team with professional, comprehensive, one-stop energy storage research services.`,
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
        },
      ],
    });
  }
);
</script>

<style scoped>
.top-nav {
  height: 72px;
  background-color: #ffffff;
  margin-top: 10px;
  border-radius: 5px;
  display: flex;
  align-items: flex-end;
}

.nav-item {
  display: flex;
  justify-content: center;
  height: 35px;
  padding: 0px 45px;
  font-size: 17px;
  color: #222222;
  font-weight: 600;
  /* border: 2px solid transparent #4f9fdd; */
}

.nav-item:last-child {
  padding: 0px 0px;
}

.item-context {
  border-bottom: 2px solid transparent;
  color: #646464;
}

.item-context-sel {
  border-bottom: 3px solid #4f9fdd;
}

.item-context:hover {
  cursor: pointer;
}

.item-context-sel:hover {
  cursor: pointer;
}

@media screen and (min-width: 0px) {
  .slac-box {
    margin-bottom: 10px;
    /* min-width: 1258.67px; */
    margin: 0 auto;
    min-width: 1200px;
    max-width: 1200px;
  }
}
</style>