Skip to content

Commit

Permalink
templates start
Browse files Browse the repository at this point in the history
  • Loading branch information
TNortnern committed Jan 31, 2022
1 parent b0d4369 commit c6ffcb1
Show file tree
Hide file tree
Showing 7 changed files with 607 additions and 19 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
plugins: ['prettier'],
// add your custom rules here
rules: {
'no-unused-vars': 0,
'prettier/prettier': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions components/common/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
{{ description }}
</p>
<nuxt-link
v-if="link"
:to="link"
class="
mx-8
Expand Down
3 changes: 3 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ export default {
'@nuxtjs/tailwindcss',
'@nuxtjs/composition-api/module',
],
scriptSetup: {
/* options */
},

// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@nuxtjs/axios": "^5.12.2",
"@nuxtjs/composition-api": "^0.23.4",
"@nuxtjs/composition-api": "^0.31.0",
"@nuxtjs/google-gtag": "^1.0.4",
"core-js": "^3.6.5",
"nuxt": "^2.15.3",
Expand All @@ -24,6 +24,7 @@
"@nuxtjs/eslint-config": "^4.0.0",
"@nuxtjs/eslint-module": "^3.0.0",
"@nuxtjs/tailwindcss": "4.0.0",
"@vue/runtime-dom": "^3.2.29",
"babel-eslint": "^10.1.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^6.12.0",
Expand Down
5 changes: 5 additions & 0 deletions pages/templates/_id.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>Hello</div>
</template>

<script setup></script>
205 changes: 205 additions & 0 deletions pages/templates/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
<template>
<div>
<PageHeader
:page-title="pageTitle"
:description="'Limelight devs values savings time, and you can too. View our vast collections of beautiful, ready-made, modern, and high performing templates.'"
:link="'/work'"
:link-title="'Check out packages'"
/>
<SectionContainer :default-margins="false">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div
v-for="i in 8"
:key="i"
class="duration-300 hover:scale-110 transform"
>
<article
aria-label="WeBuild - Webapp template Template"
class="flex flex-col items-center w-full"
>
<div class="relative rounded overflow-hidden w-full mt-8 md:mt-0">
<a href="/templates/webuild-react-angular-and-vue"
><img
class="w-full"
src="https://cdn.discordapp.com/attachments/852156392340455434/865262000200351754/Reels.png"
alt="WeBuild - Webapp template Template Preview"
/></a>
<div
class="
border
-mt-16
z-20
relative
rounded-lg
w-11/12
mx-auto
overflow-hidden
"
>
<div
class="
relative
bg-app-gray-1
dark:bg-gray-900
border-l border-r
rounded-lg
border-color-gradient
-mt-0.5
p-4
md:p-6
"
>
<div class="flex items-center justify-between w-full">
<div
class="
flex
justify-between
w-full
items-start
cursor-pointer
"
>
<h2 class="text-lg lg:text-xl text-gray-50 min-h-56 pr-5">
WeBuild - Webapp template
</h2>
<p
class="
text-lg
lg:text-xl
font-bold
leading-normal
xl:pt-1
text-right text-gray-800
dark:text-gray-50
"
>
$13
</p>
</div>
</div>
<p
class="
mt-3
text-xs
md:text-base
font-normal
leading-none
text-gray-400
"
>
Create websites that engage users.
</p>
<h3
class="
text-base
font-semibold
leading-none
text-gray-600
pt-5
dark:text-gray-400
"
>
Pricing
</h3>
<div class="mt-3">$3.00</div>
<div class="mt-7 w-full justify-bewteen sm:flex pb-4 sm:pb-0">
<button
id="d148b04-40ca-6418-ebae-7c17a272cd"
class="
mb-4
sm:mb-0
sm:w-1/2
w-full
focus:outline-none
py-2
px-6
border
rounded
text-sm
md:text-base
md:font-normal
text-gray-200
mr-3
leading-4
hover:bg-gray-800
focus:bg-gray-800
"
>
Preview</button
><button
id="de4bc40-efd3-1b7a-c04a-485040613dd"
class="
justify-center
w-full
sm:w-1/2
flex
items-center
flex-shrink-0
text-white
focus:outline-none
templateDetialsbtn
rounded-md
py-2
px-3
bg-red-500
hover:bg-red-400
duration-200
"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-shopping-cart"
width="24"
height="24"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
>
<path
stroke="none"
d="M0 0h24v24H0z"
fill="none"
></path>
<circle cx="9" cy="19" r="2"></circle>
<circle cx="17" cy="19" r="2"></circle>
<path
d="M3 3h2l2 12a3 3 0 0 0 3 2h7a3 3 0 0 0 3 -2l1 -7h-15.2"
></path></svg
><span
class="
flex-shrink-0
ml-2
font-medium
leading-none
dark:text-white
text-sm
2xl:text-base
"
>Add to cart</span
>
</button>
</div>
</div>
</div>
</div>
</article>
</div>
</div>
</SectionContainer>
</div>
</template>

<script setup>
import PageHeader from '~/components/common/PageHeader.vue'
import SectionContainer from '~/components/common/SectionContainer.vue'
const hello = 'world'
const pageTitle = 'Our Templates'
const description =
'We believe in bringing structure and competence to your business with no red tape and deliver custom solutions designed to fit both your needs and budget. Choose from our wide range of packages especially crafted keeping every type of business in mind.'
const link = '/packages'
const linkTitle = 'Check our packages'
</script>
Loading

1 comment on commit c6ffcb1

@vercel
Copy link

@vercel vercel bot commented on c6ffcb1 Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.