Worldwide88 commited on
Commit
50bff09
·
verified ·
1 Parent(s): 4bc511a

I want to improve my website, please help me, make it more modern and beautiful

Browse files
Files changed (4) hide show
  1. README.md +8 -5
  2. components/footer.js +4 -0
  3. components/navbar.js +120 -0
  4. index.html +0 -0
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Safeswitch Evolution
3
- emoji: 😻
4
- colorFrom: red
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: SafeSwitch Evolution 🚗✨
3
+ colorFrom: purple
4
+ colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
2
+ <link rel="stylesheet" href="style.css">
3
+ <script src="components/navbar.js"></script>
4
+ <script src="components/footer.js"></script>
components/navbar.js ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ position: fixed;
9
+ top: 0;
10
+ left: 0;
11
+ right: 0;
12
+ z-index: 1000;
13
+ background: rgba(255, 255, 255, 0.98);
14
+ backdrop-filter: blur(10px);
15
+ box-shadow: 0 2px 10px rgba(0,0,0,0.05);
16
+ transition: all 0.3s ease;
17
+ }
18
+
19
+ .navbar-container {
20
+ display: flex;
21
+ justify-content: space-between;
22
+ align-items: center;
23
+ max-width: 1200px;
24
+ margin: 0 auto;
25
+ padding: 20px;
26
+ }
27
+
28
+ .logo {
29
+ height: 40px;
30
+ }
31
+
32
+ .nav-links {
33
+ display: flex;
34
+ gap: 30px;
35
+ }
36
+
37
+ .nav-link {
38
+ color: var(--dark);
39
+ text-decoration: none;
40
+ font-weight: 500;
41
+ transition: color 0.3s ease;
42
+ position: relative;
43
+ }
44
+
45
+ .nav-link:hover {
46
+ color: var(--primary);
47
+ }
48
+
49
+ .nav-link::after {
50
+ content: '';
51
+ position: absolute;
52
+ bottom: -5px;
53
+ left: 0;
54
+ width: 0;
55
+ height: 2px;
56
+ background: var(--primary);
57
+ transition: width 0.3s ease;
58
+ }
59
+
60
+ .nav-link:hover::after {
61
+ width: 100%;
62
+ }
63
+
64
+ .cta-button {
65
+ background: var(--primary);
66
+ color: white;
67
+ padding: 10px 20px;
68
+ border-radius: 50px;
69
+ font-weight: 600;
70
+ transition: all 0.3s ease;
71
+ }
72
+
73
+ .cta-button:hover {
74
+ background: var(--primary-dark);
75
+ transform: translateY(-2px);
76
+ box-shadow: 0 4px 12px rgba(58, 90, 255, 0.25);
77
+ }
78
+
79
+ .mobile-menu-button {
80
+ display: none;
81
+ background: none;
82
+ border: none;
83
+ cursor: pointer;
84
+ }
85
+
86
+ @media (max-width: 768px) {
87
+ .nav-links {
88
+ display: none;
89
+ }
90
+
91
+ .mobile-menu-button {
92
+ display: block;
93
+ }
94
+ }
95
+ </style>
96
+
97
+ <div class="navbar-container">
98
+ <a href="/">
99
+ <img src="/assets/logo.svg" alt="SafeSwitch" class="logo">
100
+ </a>
101
+
102
+ <div class="nav-links">
103
+ <a href="/#privatpersoner" class="nav-link">För privatpersoner</a>
104
+ <a href="/#foretag" class="nav-link">För företag</a>
105
+ <a href="/#about" class="nav-link">Om oss</a>
106
+ <a href="/#nyheter" class="nav-link">Nyheter</a>
107
+ <a href="/#bokademo" class="cta-button">Boka demo</a>
108
+ </div>
109
+
110
+ <button class="mobile-menu-button">
111
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor">
112
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
113
+ </svg>
114
+ </button>
115
+ </div>
116
+ `;
117
+ }
118
+ }
119
+
120
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
The diff for this file is too large to render. See raw diff